Skip to content

Conversation

@safaiyeh
Copy link
Member

Summary

Upgrades the repository to use Node.js 22 LTS (the current Long-Term Support version).

Changes

File Before After
.nvmrc lts/fermium (Node 14) 22
package.json No engines field "engines": { "node": ">=22" }
example/package.json "node": ">=18" "node": ">=22"
.github/workflows/codeql.yml node-version: "lts/*" node-version: "22"

Why

  • Node.js 14 (Fermium) reached end-of-life in April 2023
  • Node.js 22 is the current LTS version (codename "Jod")
  • Explicit version in CI ensures reproducible builds

- Update .nvmrc from lts/fermium (Node 14) to Node 22
- Add engines field to root package.json (>=22)
- Update engines field in example/package.json (>=22)
- Pin CI workflow to Node 22 for reproducible builds
@greptile-apps
Copy link

greptile-apps bot commented Dec 27, 2025

Greptile Summary

This PR cleanly upgrades the project from Node.js 14 (EOL April 2023) to Node.js 22 LTS. All changes are consistent and properly updated across configuration files.

Key Changes:

  • .nvmrc: lts/fermium22
  • package.json: Added engines.node: ">=22"
  • example/package.json: Updated engines.node from >=18 to >=22
  • .github/workflows/codeql.yml: Pinned to explicit version 22 for reproducible CI builds

Note: .circleci/config.yml still uses Node 20.18.3 (lines 9, 19, 31, 43) and should be updated in a follow-up to maintain consistency across all CI environments.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • All Node.js version updates are straightforward and consistent across configuration files. React Native 0.76.2, TypeScript 5.6.3, and ESLint 9.20.1 all support Node.js 22. The changes are well-documented and align with the stated goal of upgrading to the current LTS version.
  • No files require special attention

Important Files Changed

Filename Overview
.nvmrc Updated from Node 14 (lts/fermium) to Node 22, aligning with modern LTS version
package.json Added engines field with node: >=22 requirement
example/package.json Updated engines.node from >=18 to >=22
.github/workflows/codeql.yml Updated Node.js version from lts/* to explicit 22 for reproducible builds

@safaiyeh safaiyeh force-pushed the node-lts branch 3 times, most recently from 71c5648 to 67a7831 Compare December 27, 2025 23:43
BREAKING CHANGE: Minimum Node.js version is now 22.12.0

- Update .nvmrc from lts/fermium (Node 14) to 22.12.0
- Add engines field to root package.json (>=22)
- Update engines field in example/package.json (>=22)
- Update CI workflows to use Node 22.12.0
@safaiyeh safaiyeh merged commit ddba249 into master Dec 27, 2025
7 checks passed
@safaiyeh safaiyeh deleted the node-lts branch December 27, 2025 23:51
safaiyeh pushed a commit that referenced this pull request Dec 27, 2025
# [4.0.0](v3.3.0...v4.0.0) (2025-12-27)

### chore

* upgrade to Node.js 22 LTS ([#582](#582)) ([ddba249](ddba249))

### BREAKING CHANGES

* Minimum Node.js version is now 22.12.0

- Update .nvmrc from lts/fermium (Node 14) to 22.12.0
- Add engines field to root package.json (>=22)
- Update engines field in example/package.json (>=22)
- Update CI workflows to use Node 22.12.0
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.

2 participants