Skip to content

Drop Node 20 support and remove the node-gyp pin it requires #18327

Open

Description

@WikiRik

Summary

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.


🤖 This issue was generated with Claude Code

https://claude.ai/code/session_01EgPPfqYYk6PFGbanp5mAFh

Activity

  1. added
    pending-approval
    on Sep 3, 2026
  2. added
    type: refactor
    and removed
    pending-approval
    on Sep 3, 2026
  3. self-assigned this
    on Sep 3, 2026
  4. WikiRik commented on Sep 7, 2026

    @WikiRik
    MemberAuthor

    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.

    🤖 Comment drafted with Claude Code

  5. added a commit that references this issue on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: refactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions