breaking: Update dependencies (binaryen v125) #2976
+2,923
−3,227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main motivation of this PR is the update of binaryen from v123 to v125.
Updates binaryen to 125.0.0-nightly.20251209 with corresponding ExpressionId enum changes in src/module.ts. Also upgrades ESLint to v9 with flat config migration, TypeScript, and other dependencies.
Refactors catch blocks in JS files to omit unused error variables for cleaner code (due to new ts version).
Introduces a new eslint.config.js (v9) using the flat config format with tailored rules for JavaScript, TypeScript, AssemblyScript, and test files.
Changes proposed in this pull request:
⯈ Binaryen 123.0.0-nightly.20250530 -> 125.0.0-nightly.20251209:
⯈ ESLint 8.57.1 -> 9.39.2 with flat config migration:
⯈ Other dependency upgrades:
⯈ Node engine >=20 -> >=24 (LTS):
Node 20 will be deprecated on April 30, 2026.
Required for @types/node 25.x compatibility
Allows catch {} syntax (without variable) to fix unused variable warnings
Fixed in: cli/index.js, lib/loader/tests/index.js, tests/allocators/index.js, tests/allocators/runner.js
I've read the contributing guidelines
I've added my name and email to the NOTICE file