Repository navigation
Test and declare Node.js 24 and 26 LTS support - #21
Merged
Merged
Conversation
- run the test (pull requests) and build (push on main) workflows on a Node.js 22.x, 24.x and 26.x matrix - add a "test" job summing up the matrix result, so the check required by the branch protection rule of main keeps working - upgrade actions/checkout and actions/setup-node from v2 to v7 (actions based on Node.js 20 are deprecated on GitHub runners)
Improve description and keywords, add bugs URL and repository type, move author and drop homepage.
Broaden the "engines" field of all workspace manifests (and of their package-lock.json records) to the Node.js LTS lines. As already done for Node.js 22, the lower bound of each line is its first LTS release with the bundled npm version: - node: ^22.11.0 || ^24.11.0 || ^26.13.0 - npm: ^10.9.0 || ^11.6.1 The package-lock.json record of the library workspace is also synced with its current version (3.5.7 -> 3.5.8).
|
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Closes #20
Summary
Reactylon already works on Node.js 24 and 26:
npm ci, the Jest suite and the production build pass without code changes. The problem was the declaredenginesfield, which makes npm printEBADENGINEwarnings for contributors and for consumers installingreactylonon Node.js 24/26. This PR adds the three LTS lines to CI and broadensenginesto match.Node.js release lines today:
Changes
CI (
test.yml,build.yml):22.x,24.xand26.xmatrix withfail-fast: false.actions/checkoutandactions/setup-nodefrom v2 to v7. This removes the runner annotation "Node.js 20 is deprecated".Required check: the branch protection rule of
mainrequires a check namedtest.test.ymltherefore keeps atestjob that sums up the matrix: it runs withif: always()and fails if any Node.js version fails or is cancelled. The branch protection rule doesn't need to change.enginesof all workspace manifests and of theirpackage-lock.jsonrecords:^22.11.0 || ^24.11.0 || ^26.13.0^10.9.0 || ^11.6.1As with the existing
^22.11.0, each lower bound is the line's first LTS release with its bundled npm. A plain^24would also accept 24.0.0–24.2.0, wherenpm run buildfails. Those releases expose Node's native.tsloader inrequire.extensions, so webpack-cli (through rechoir) doesn't register ts-node.webpack.config.tsthen fails to load withSyntaxError: The requested module 'webpack' does not provide an export named 'Configuration'.Library package metadata: improved description and keywords, added bugs URL and repository type, moved author.
Testing
Local runs on macOS arm64 with the official Node.js builds. Each run did
npm ci, the Jest suite and the production webpack build of the library:EBADENGINEwarningsnpm run buildof the workspaces also passed, and the generator output was unchanged. commitlint,tsc --noEmitand Prettier passed too.reactylon@3.5.8prints theEBADENGINEwarning.engines.nodeexcludes any of the new lower bounds.The matrix in this PR covers Linux for
npm ciand Jest. Thebuild.ymlmatrix runs on push tomain.Notes
npm run buildfrom the root) printsExperimentalWarning: localStorage is not available because --localstorage-file was not provided. It comes from Babylon.js running in Node.js and is harmless.reactylonis published."node": "^22.11.0"and"npm": "^10.9.0".