Skip to content

Add missing definitions for index.d.ts#120

Merged
MaxGraey merged 8 commits into
mainfrom
update-definitions
Apr 5, 2026
Merged

Add missing definitions for index.d.ts#120
MaxGraey merged 8 commits into
mainfrom
update-definitions

Conversation

@MaxGraey
Copy link
Copy Markdown
Member

@MaxGraey MaxGraey commented Apr 5, 2026

No description provided.

@MaxGraey MaxGraey merged commit 9494b17 into main Apr 5, 2026
2 checks passed
@MaxGraey MaxGraey deleted the update-definitions branch April 5, 2026 19:15
nerdalytics added a commit to nerdalytics/tinywhale that referenced this pull request Apr 20, 2026
The stable binaryen@129.0.0 runtime expects i64.const(bigint) but ships
an index.d.ts still declaring the old (low, high) signature. Switching
to nightly 129.0.0-nightly.20260419 picks up the corrected types from
upstream PR AssemblyScript/binaryen.js#120 and lets the i64Const
wrapper go away.

The same nightly carries a separate syntax error in index.d.ts on
the i64.atomic.load8_u signature (missing closing paren), which tsc
cannot parse. Applied via a one-line pnpm patch. Reported upstream:
AssemblyScript/binaryen.js#125.

Temporary: remove both the nightly pin and the patch once a stable
release carrying PR #120 and the load8_u fix is published.
nerdalytics added a commit to nerdalytics/tinywhale that referenced this pull request Apr 20, 2026
* chore(deps): update all direct dependencies to latest

Direct deps:
- @adonisjs/ace: 13.4.0 -> 14.1.0
- @biomejs/biome: 2.3.12 -> 2.4.12
- @types/node:   25.0.10 -> 25.6.0
- binaryen:      125.0.0 -> 129.0.0
- fast-check:    4.5.3 -> 4.7.0
- ohm-js:        17.3.0 -> 17.5.0
- typescript:    5.9.3 -> 6.0.3

Tooling:
- node: 24.13.0 -> 24.15.0 (latest LTS)
- pnpm: 10.28.0 -> 10.33.0

Breaking-change fixes:
- tsconfig: drop deprecated baseUrl (TS6 would error);
  add types: ["node"] so Node globals like performance and
  @types/node ambient modules remain visible under stricter TS6
  default resolution.
- codegen: binaryen 129 replaced i64.const(low, high) with
  i64.const(bigint); added i64Const() wrapper that also works
  around the bundled .d.ts still declaring the old signature.
  combine32BitPartsToBigInt() helper added to reverse the
  existing split storage in Inst.arg0/arg1.

Side effects:
- picomatch is now 2.3.2 via pnpm update -r, closing the two
  open Dependabot alerts (high + medium) on trunk.
- biome 2.4.12 applied formatter/organizeImports auto-fixes in
  two files (declarations.ts, compile.property.test.ts).

Verification: mise run ci is green (857 tests passing).

* chore(deps): pin binaryen to nightly with fixed i64.const types

The stable binaryen@129.0.0 runtime expects i64.const(bigint) but ships
an index.d.ts still declaring the old (low, high) signature. Switching
to nightly 129.0.0-nightly.20260419 picks up the corrected types from
upstream PR AssemblyScript/binaryen.js#120 and lets the i64Const
wrapper go away.

The same nightly carries a separate syntax error in index.d.ts on
the i64.atomic.load8_u signature (missing closing paren), which tsc
cannot parse. Applied via a one-line pnpm patch. Reported upstream:
AssemblyScript/binaryen.js#125.

Temporary: remove both the nightly pin and the patch once a stable
release carrying PR #120 and the load8_u fix is published.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant