-
Notifications
You must be signed in to change notification settings - Fork 29
chore: update Node.js to 20.x LTS #1021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
d2ee3da to
d148d82
Compare
edd2c07 to
c670ac5
Compare
d148d82 to
39a93ec
Compare
aymeric-giraudet
approved these changes
Feb 3, 2026
Update build tooling for shipjs-lib: - rollup: 2.14.0 → 4.34.8 - rollup-plugin-commonjs → @rollup/[email protected] - rollup-plugin-node-resolve → @rollup/[email protected] Updated rollup.config.js to use the new scoped plugin packages and createRequire for JSON imports (ESM compatible). Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update linting tooling: ESLint: - eslint: 7.2.0 → 8.57.1 - eslint-config-algolia: 16.0.0 → 20.0.0 - eslint-config-prettier: 6.11.0 → 8.10.0 - eslint-plugin-import: 2.20.2 → 2.31.0 - eslint-plugin-jest: 23.13.2 → 27.9.0 - eslint-plugin-prettier: 3.1.3 → 4.2.1 - eslint-plugin-jsdoc: added 46.10.1 Parser: - babel-eslint → @babel/[email protected] Updated .eslintrc.cjs to use @babel/eslint-parser and disable removed/incompatible rules. Note: Prettier remains at 2.x due to ESM compatibility issues with Jest. Prettier 3.x upgrade can be done in a future PR. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Auto-fixed lint errors from ESLint 8 stricter rules: - import/order: Sorted imports by group (builtin, external, internal) - import/newline-after-import: Added newlines after imports - no-else-return: Removed unnecessary else after return - jest/prefer-to-be: Use toBe/toBeNull for primitive checks Also fixed a buggy mock in updateVersionMonorepo.spec.js that was attempting to spy on a non-existent property. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update testing and transpilation tooling: Jest ecosystem: - jest: 26.0.1 → 29.7.0 - babel-jest: 26.0.1 → 29.7.0 - jest-watch-typeahead: 0.6.0 → 2.2.2 Babel ecosystem (required for Jest 29 compatibility): - @babel/core: 7.10.2 → 7.26.9 - @babel/preset-env: 7.10.2 → 7.26.9 - @babel/plugin-transform-runtime: 7.10.1 → 7.26.9 - @babel/runtime: ^7.6.3 → ^7.28.6 Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Convert require() to dynamic import() in updateChangelog.js - Replace .toString() with 'utf-8' encoding parameter in readFileSync calls - Fix 'require' to 'import' in updateChangelog.spec.js Co-Authored-By: Claude Opus 4.5 <[email protected]>
Exclude test directories from security-focused rules. Tests legitimately use dynamic paths (e.g., __dirname + path.resolve) to load fixtures, which triggers false positive "path injection" warnings. Co-Authored-By: Claude Opus 4.5 <[email protected]>
c670ac5 to
c2deda9
Compare
- Update .nvmrc and .node-version to Node 20 - Update engines field in root and shipjs package.json to >=20 - Update CircleCI config to use cimg/node:20.18 Co-Authored-By: Claude Opus 4.5 <[email protected]>
39a93ec to
db3b45e
Compare
Haroenv
approved these changes
Feb 3, 2026
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
.nvmrcand.node-versionto Node 20enginesfield in root and shipjspackage.jsonto>=20cimg/node:20.18Node.js 20.x is the current LTS version (Active LTS until October 2024, Maintenance until April 2026).
Files changed
.nvmrc-18.20.5→20.node-version-18.20.5→20/package.json-engines.nodefrom>=18to>=20/packages/shipjs/package.json-engines.nodefrom>=18to>=20/.circleci/config.yml-cimg/node:18.20→cimg/node:20.18