Repository navigation
Support Node.js 24 and 26 LTS and upgrade webpack-dev-server to v6 - #2
Merged
Merged
Conversation
Broaden the "engines" field of the web template to the Node.js LTS lines (from the first LTS release of each line, with its bundled npm), in line with Reactylon (simonedevit/reactylon#20): node ^22.11.0 || ^24.11.0 || ^26.13.0, npm ^10.9.0 || ^11.6.1.
webpack-dev-server 6 no longer depends on sockjs, which brought the vulnerable uuid 8 (GHSA-w5hq-g745-h8pq) into every generated app. It requires Node.js >= 22.15.0 and webpack >= 5.101.0, so the template now declares node ^22.15.0 || ^24.11.0 || ^26.13.0 and webpack ^5.101.0.
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.
Summary
The web template declares
"node": "^22.11.0", so every app scaffolded on Node.js 24 or 26 gets anEBADENGINEwarning for its ownpackage.json. This PR aligns the template with the Node.js LTS lines supported by Reactylon (simonedevit/reactylon#20). It also removes a vulnerable dependency chain from every generated app.Changes
enginesof the web template:^22.15.0 || ^24.11.0 || ^26.13.0^10.9.0 || ^11.6.1^6.1.0(was^5.0.4). v6 no longer depends onsockjs, which brought the vulnerableuuid8 (GHSA-w5hq-g745-h8pq) into every new app.webpack ^5.101.0.npm startscript, with no configuration change.The native template is unchanged: its
package.jsoncomes from the React Native CLI.Testing
On Node.js 22.15.0, 24.11.0, 24.22.3, 26.13.0 and 26.13.1, I scaffolded an app with the CLI from this branch. On every version these passed:
npm installnpm run buildnpm start, with an HTTP check of the served pageThe generated app no longer warns about its own
engines. On Node.js 24/26, npm still warns aboutreactylon@3.5.8; that warning goes away with the next Reactylon release, which includes simonedevit/reactylon#21.npm auditon a new app goes from 5 to 2 moderate findings. Both come fromfork-ts-checker-webpack-plugin9.2.0 (the latest release), which depends onminimatch9 (GHSA-g3hv-75wg-m249).overridesto the template, to avoid pinning versions inside users' projects.