Repository navigation
feat: add Node 24 support, drop Node 18 - #18185
Conversation
📝 WalkthroughWalkthroughUpdate Node.js runtime targets across the repo: CI matrix expanded to Node 20/22/24; esbuild/test targets moved from node18 to node20; package Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (9)
.github/workflows/ci.ymlbuild-packages.mjspackages/cli/package.jsonpackages/core/package.jsonpackages/core/test/support.tspackages/core/test/unit/import-models/import-models.test.tspackages/core/test/unit/sql/where.test.tspackages/utils/package.jsontest/register-esbuild.js
- 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]>
Co-authored-by: Alyx <[email protected]>
* 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) ...
Pull Request Checklist
Description of Changes
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
Tests