Skip to content

Update to Node.js 22 LTS#103

Merged
kraftbj merged 3 commits intotrunkfrom
update-node-22
Mar 18, 2026
Merged

Update to Node.js 22 LTS#103
kraftbj merged 3 commits intotrunkfrom
update-node-22

Conversation

@kraftbj
Copy link
Collaborator

@kraftbj kraftbj commented Mar 18, 2026

Summary

  • Update from Node.js 20 to Node.js 22 LTS across .nvmrc, CI workflows, and package.json engines
  • Drop the npm engine constraint — Node 22 ships with a compatible version
  • Regenerate package-lock.json with Node 22

Node 20 reaches EOL on 2026-04-30. Node 22 LTS is supported until 2027-04-30.

Test plan

  • npm ci installs cleanly on Node 22
  • Unit tests pass (npm test)
  • E2E tests pass (npm run test:e2e)
  • CI workflows pass on this PR

Node 20 reaches EOL on 2026-04-30. Move to Node 22 LTS (EOL 2027-04-30)
across .nvmrc, CI workflows, and package.json engines. The npm engine
constraint is removed since Node 22 ships with a compatible npm version.
@kraftbj kraftbj added this to the 2.1.0 milestone Mar 18, 2026
@kraftbj kraftbj requested a review from Copilot March 18, 2026 22:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repo’s Node.js baseline to Node 22 LTS to keep local development and CI aligned with the supported runtime as Node 20 approaches EOL.

Changes:

  • Bump the required Node version in package.json engines to >=22 and drop the explicit npm engine constraint.
  • Update .nvmrc to Node 22.
  • Update GitHub Actions workflows to run tests and release builds on Node 22.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
package.json Updates Node engine requirement to Node 22 and removes npm engine constraint.
.nvmrc Updates local Node version target to 22.
.github/workflows/test.yml Runs JS, lint, and E2E workflows using Node 22.
.github/workflows/release.yml Builds release artifacts using Node 22.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

kraftbj and others added 2 commits March 18, 2026 17:20
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The other three jobs were already updated; this was the remaining
hardcoded instance.
@kraftbj kraftbj marked this pull request as ready for review March 18, 2026 22:21
@kraftbj kraftbj requested a review from Copilot March 18, 2026 22:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s JavaScript toolchain baseline to Node.js 22 LTS and aligns local development and GitHub Actions CI to use a single Node version source of truth.

Changes:

  • Bump Node engine requirement to >=22 and remove the explicit npm engine constraint.
  • Update .nvmrc to Node 22.
  • Switch CI workflows to read the Node version from .nvmrc via actions/setup-node’s node-version-file.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
package.json Updates engines to require Node 22+ and drops the npm engine constraint.
.nvmrc Sets local Node version to 22.
.github/workflows/test.yml Uses .nvmrc for Node setup across test/lint/e2e jobs to prevent version drift.
.github/workflows/release.yml Uses .nvmrc for Node setup in the release build workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kraftbj kraftbj merged commit 91c934b into trunk Mar 18, 2026
11 checks passed
@kraftbj kraftbj deleted the update-node-22 branch March 18, 2026 23:18
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