Skip to content

fix: bump node to v22#3694

Merged
mrlubos merged 1 commit into
mainfrom
fix/node-22
Apr 6, 2026
Merged

fix: bump node to v22#3694
mrlubos merged 1 commit into
mainfrom
fix/node-22

Conversation

@mrlubos

@mrlubos mrlubos commented Apr 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@mrlubos mrlubos marked this pull request as ready for review April 6, 2026 01:52
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot

changeset-bot Bot commented Apr 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e930278

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@hey-api/json-schema-ref-parser Minor
@hey-api/codegen-core Minor
@hey-api/openapi-ts Minor
@hey-api/shared Minor
@hey-api/openapi-python Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Apr 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hey-api-docs Ready Ready Preview, Comment Apr 6, 2026 2:01am

Request Review

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. internal ⚙️ Internal development work. labels Apr 6, 2026
@pullfrog

pullfrog Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

TL;DR — Drops Node 20 support and bumps the minimum required Node version to 22.13.0 across all packages, CI, and documentation. This is a breaking change shipped as a minor bump via changesets for @hey-api/openapi-ts, @hey-api/shared, @hey-api/codegen-core, and @hey-api/json-schema-ref-parser.

Key changes

  • Bump minimum Node engine to >=22.13.0 — Updates the engines.node field in all 16 package.json files (root, dev, and every package) from >=20.19.0 to >=22.13.0.
  • Update CI matrix to test Node 22 and 24 — Replaces the Node 20.19.0 / 22.12.0 test matrix with 22.13.0 / 24.14.0; bumps .nvmrc from 24.14.0 to 24.14.1.
  • Add migration guide and changeset — Documents the breaking change in docs/openapi-ts/migrating.md under a new v0.96.0 section and adds a changeset for the four affected published packages.
  • Update documentation and README — Changes "Node.js 20+" references to "Node.js 22+" in the getting-started docs, the @hey-api/openapi-ts README, and CLAUDE.md.

Summary | 23 files | 1 commit | base: mainfix/node-22


Engine constraint raised to Node 22.13

Before: All packages required node >=20.19.0; CI tested against Node 20.19.0 and 22.12.0 (plus the .nvmrc version).
After: All packages require node >=22.13.0; CI tests Node 22.13.0 and 24.14.0; .nvmrc bumped to 24.14.1.

The change is uniform — every package.json with an engines field gets the same >=22.13.0 floor. The CI matrix drops the Node 20 row and shifts the tested versions up by one major each.

package.json · .nvmrc · .github/workflows/ci.yml


Migration guide and changeset

Before: No migration entry for v0.96.0.
After: docs/openapi-ts/migrating.md has a new "Removed Node 20 support" section; a changeset marks this as a minor (breaking) release for four packages.

docs/openapi-ts/migrating.md · .changeset/thin-otters-rest.md

Pullfrog  | View workflow run | Triggered by Pullfrog𝕏

@pkg-pr-new

pkg-pr-new Bot commented Apr 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

@hey-api/codegen-core

npm i https://pkg.pr.new/@hey-api/codegen-core@3694

@hey-api/json-schema-ref-parser

npm i https://pkg.pr.new/@hey-api/json-schema-ref-parser@3694

@hey-api/nuxt

npm i https://pkg.pr.new/@hey-api/nuxt@3694

@hey-api/openapi-ts

npm i https://pkg.pr.new/@hey-api/openapi-ts@3694

@hey-api/shared

npm i https://pkg.pr.new/@hey-api/shared@3694

@hey-api/spec-types

npm i https://pkg.pr.new/@hey-api/spec-types@3694

@hey-api/types

npm i https://pkg.pr.new/@hey-api/types@3694

@hey-api/vite-plugin

npm i https://pkg.pr.new/@hey-api/vite-plugin@3694

commit: e930278

@codecov

codecov Bot commented Apr 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.39%. Comparing base (64a3048) to head (e930278).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3694   +/-   ##
=======================================
  Coverage   39.39%   39.39%           
=======================================
  Files         520      520           
  Lines       19278    19278           
  Branches     5714     5708    -6     
=======================================
  Hits         7594     7594           
  Misses       9445     9445           
  Partials     2239     2239           
Flag Coverage Δ
unittests 39.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrlubos mrlubos merged commit 80c73d6 into main Apr 6, 2026
12 checks passed
@mrlubos mrlubos deleted the fix/node-22 branch April 6, 2026 02:07
@hey-api hey-api Bot mentioned this pull request Apr 6, 2026
@hey-api hey-api Bot mentioned this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal ⚙️ Internal development work. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant