You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drop Node 20 support and remove the node-gyp pin it requires #18327
Drop Node 20 once it is out of maintenance, and remove the workarounds that only exist to keep it building.
Node 20 reaches end-of-life on 2026-04-30. We currently test on Node 20, 22 and 24, and @sequelize/core declares "node": "^20.9.0 || ^22.11.0 || >=24.0.0".
This issue is to track the changes that we'll need to do then. It will be picked up by @WikiRik or one of the other maintainers. This one is not one for the community to take on.
What to change
Drop 20 from every node-version matrix in .github/workflows/ci.yml (the install/build, unit test, Windows, and per-dialect jobs all list it).
Update the engines.node range in packages/core/package.json (and any other package that declares one) to drop ^20.9.0.
Remove the node-gyp resolution from the root package.json:
"node-gyp@npm:latest": "11.5.0"
This pin exists only because node-gyp@latest is now 13, which requires Node >= 22, while pg-native builds through node-gyp and CI still tests Node 20. Once Node 20 is gone, the pin can go and node-gyp can float again. It is worth removing promptly: holding a build tool back is the kind of thing that quietly rots, and the reason for it is not discoverable from the JSON itself.
Re-run yarn install to refresh the lockfile, and confirm pg-native still builds.
Context
The node-gyp pin was introduced alongside a lockfile refresh. It is a deliberate, temporary hold rather than a considered version choice, and this issue exists so it does not outlive its reason.
Dropping Node 20 also unblocks bumping tedious in @sequelize/mssql to v20, which requires Node 22 or newer. Adding it here so it gets picked up in the same follow-up:
Bump tedious to ^20 in packages/mssql/package.json.
One thing to verify when doing that bump. Tedious 20 replaced the 64-bit NUMERIC parameter writer with a 128-bit BigInt one. With that encoder the inflated scale from the old getScale no longer throws, and the exact scale from #18310 instead loses about one ulp on values with 16 or 17 significant digits, such as 20.95 - 20. That is an acceptable trade for values that are floating-point noise anyway, but the numeric round-trip integration tests should be run against tedious 20 to confirm nothing else shifts.
Activity
meta: refresh the lockfile and catch up with the new driver typings
WikiRik commentedon Sep 7, 2026
Dropping Node 20 also unblocks bumping
tediousin@sequelize/mssqlto v20, which requires Node 22 or newer. Adding it here so it gets picked up in the same follow-up:tediousto^20inpackages/mssql/package.json.One thing to verify when doing that bump. Tedious 20 replaced the 64-bit NUMERIC parameter writer with a 128-bit BigInt one. With that encoder the inflated scale from the old
getScaleno longer throws, and the exact scale from #18310 instead loses about one ulp on values with 16 or 17 significant digits, such as20.95 - 20. That is an acceptable trade for values that are floating-point noise anyway, but the numeric round-trip integration tests should be run against tedious 20 to confirm nothing else shifts.🤖 Comment drafted with Claude Code
meta: retry image pulls in the database start scripts
meta: update node-gyp to v13