Skip to content

feat: add Node 24 support, drop Node 18 - #18185

Merged
WikiRik merged 4 commits into
mainfrom
WikiRik/node-24
Apr 4, 2026
Merged

WikiRik merged 4 commits into
mainfrom
WikiRik/node-24

Conversation

@WikiRik

@WikiRik WikiRik commented Apr 3, 2026 •

Copy link
Copy Markdown
Member

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description of Changes

  • Update CI matrix to test Node 20, 22, and 24 (drop 18)
  • Update engines.node in core, cli, utils to ^20.19.0 || ^22.13.0 || >=24.0.0
  • Update esbuild and tsc targets from node18 to node20
  • Fix unit tests broken by Node 24's util.inspect change (Symbol keys no longer wrapped in brackets: [Symbol(x)] → Symbol(x)); use util.inspect() dynamically in test expectations so they work across all supported Node versions
  • Fix import-models test that relied on non-deterministic callback ordering from Promise.all; use order-independent assertions instead

Manual changes needed

We'll need to change which CI checks are required before we can merge this one

List of Breaking Changes

Node 18 support dropped.

Summary by CodeRabbit

  • Chores

    • CI and build pipelines updated to target newer Node runtimes and to download artifacts for Node 24; package engine ranges were widened to support Node 20/22/24.
    • Build/compile targets moved to Node 20.
    • Logging inspection behavior refined to limit object inspection depth.
  • Tests

    • Tests made more resilient (order-independent assertions) and adjusted error-message expectations to use stringified inspection; additional deprecation codes added to test baseline.

@coderabbitai

coderabbitai Bot commented Apr 3, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Update Node.js runtime targets across the repo: CI matrix expanded to Node 20/22/24; esbuild/test targets moved from node18 to node20; package engines.node ranges broadened; tests updated for additional ignored deprecations and adjusted error/assertion text formatting.

Changes

Cohort / File(s) Summary
CI Workflow
.github/workflows/ci.yml
Expanded CI Node matrix to [20,22,24]; updated artifact download runtime to 24.14.0 and artifact names to reference Node 24.
Build / Test Transpilation
build-packages.mjs, test/register-esbuild.js
Changed esbuild/transform target from node18 to node20; sourcemap and cjs output preserved.
Package Engines
packages/cli/package.json, packages/core/package.json, packages/utils/package.json
Broadened engines.node constraints from >=18.20.8 to composite ranges (Node 20/22/>=24).
Test Infrastructure
packages/core/test/support.ts
Added deprecation codes DEP0040 and DEP0169 to ignored deprecations list.
Unit Tests — import models
packages/core/test/unit/import-models/import-models.test.ts
Relaxed ordering-dependent assertions: search calls for expected exports instead of relying on fixed indices.
Unit Tests — where
packages/core/test/unit/sql/where.test.ts
Updated error-message assertions to use util.inspect(...) representations and changed one expectation to TypeError; adjusted messages to include depth-limited inspection.
Logger util
packages/core/src/utils/logger.ts
Removed explicit showHidden option when calling util.inspect, leaving { depth: 1 }.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐇 I nibbled at targets, hopped from eighteen to twenty,

CI now dances on twenty-two and twenty-four aplenty.
Warnings hushed, tests retuned, builds now hum with glee,
A little rabbit patch — nimble, neat, and free. 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add Node 24 support, drop Node 18' directly and specifically summarizes the main changes: adding Node 24 support and dropping Node 18 support, which are the primary objectives of the PR.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch WikiRik/node-24

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread packages/core/test/support.ts Resolved
@WikiRik
WikiRik marked this pull request as ready for review April 4, 2026 18:43
@WikiRik
WikiRik requested a review from a team as a code owner April 4, 2026 18:43
@WikiRik
WikiRik requested review from ephys and sdepold April 4, 2026 18:43

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/core/test/unit/sql/where.test.ts`:
- Line 3980: Update the test expectation to match production: replace the
generic Error construction with a TypeError and use the same inspect options as
production by calling logger.inspect(...) instead of util.inspect(...).
Concretely, change the expectation that currently uses new Error(`Could not
guess type of value ${util.inspect({ [Op.in]: [1, 2] })}`) to new
TypeError(`Could not guess type of value ${logger.inspect({ [Op.in]: [1, 2]
})}`) so it asserts the correct constructor (TypeError) and the same inspect
output (logger.inspect uses {showHidden: false, depth: 1}).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 808dd6cc-01a6-4512-b9ea-d9cda8812d7c

📥 Commits

Reviewing files that changed from the base of the PR and between df8e8fc and 3e8be96.

📒 Files selected for processing (9)
  • .github/workflows/ci.yml
  • build-packages.mjs
  • packages/cli/package.json
  • packages/core/package.json
  • packages/core/test/support.ts
  • packages/core/test/unit/import-models/import-models.test.ts
  • packages/core/test/unit/sql/where.test.ts
  • packages/utils/package.json
  • test/register-esbuild.js

Rik Smale and others added 3 commits April 4, 2026 21:10
- Update CI matrix to test Node 20, 22, and 24 (drop 18)
- Update engines.node in core, cli, utils to ^20.9.0 || ^22.11.0 || >=24.0.0
- Update esbuild and tsc targets from node18 to node20
- Fix unit tests broken by Node 24's util.inspect change (Symbol keys
  no longer wrapped in brackets: [Symbol(x)] → Symbol(x)); use
  util.inspect() dynamically in test expectations so they work across
  all supported Node versions
- Fix import-models test that relied on non-deterministic callback
  ordering from Promise.all; use order-independent assertions instead

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

@ephys ephys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you 👍

Comment thread packages/cli/package.json Resolved
@WikiRik
WikiRik enabled auto-merge (squash) April 4, 2026 19:28
@WikiRik
WikiRik requested a review from ephys April 4, 2026 20:00
@WikiRik
WikiRik merged commit d499344 into main Apr 4, 2026
79 checks passed
@WikiRik
WikiRik deleted the WikiRik/node-24 branch April 4, 2026 20:06
@coderabbitai coderabbitai Bot mentioned this pull request Apr 6, 2026
5 tasks
papandreou added a commit to papandreou/sequelize that referenced this pull request Apr 15, 2026
* main: (200 commits)
  meta: update actions/upload-artifact action to v7.0.1 (sequelize#18212)
  meta: update sequelize AUTHORS (sequelize#18208)
  feat(cli): add migration generate, run, status & undo (sequelize#18193)
  feat(core): Drop the ability to specify the dialect as a string (sequelize#18204)
  feat: update some dialect adapters (sequelize#18189)
  feat(postgres): replace pg-hstore with inline hstore parser (sequelize#18151)
  feat(core): add `sql.random`, improve `Order` typing (sequelize#18203)
  meta: use Sequelize Bot for drafting PRs (sequelize#18201)
  meta: automatically mark unfinished PRs as draft (sequelize#18197)
  meta: update dependency @oclif/test to v4.1.18 (sequelize#18198)
  fix(core): replace @typeparam with @template in JSDoc (sequelize#18094)
  feat(core): Add support for UUID v7 (sequelize#17832)
  meta: update sequelize AUTHORS (sequelize#18190)
  meta: update dependency @oclif/plugin-help to ^6.2.43 (sequelize#18195)
  meta: update dependency esbuild to v0.28.0 (sequelize#18192)
  meta: update dependency @oclif/plugin-help to ^6.2.42 (sequelize#18191)
  meta: update dependency @oclif/core to ^4.10.5 (sequelize#18187)
  meta: update sequelize AUTHORS (sequelize#18158)
  feat: add Node 24 support, drop Node 18 (sequelize#18185)
  feat(core): add support for readonly attribute arrays (sequelize#18186)
  ...
@wikirik-agent wikirik-agent mentioned this pull request Sep 17, 2026
4 of 5 tasks
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