Skip to content

FOR-801 Upgrade to Node 24#61

Merged
leonardobishop-hmpo merged 1 commit intomasterfrom
FOR-801-node-24
Mar 10, 2026
Merged

FOR-801 Upgrade to Node 24#61
leonardobishop-hmpo merged 1 commit intomasterfrom
FOR-801-node-24

Conversation

@leonardobishop-hmpo
Copy link
Copy Markdown
Contributor

@leonardobishop-hmpo leonardobishop-hmpo commented Mar 5, 2026

  • Changed CI job to node 24
  • Changed required engine version in package.json to node 24
  • Upgraded all deps to latest
    • Added overrides to pin transitive dependencies "serialize-javascript" and "diff" of mocha to 7.0.4 and 8.0.3 respectively
  • Updated regex in pretty.js:60 to make the capture of "[Object: null prototype] " optional as as sort-object-keys 2.x no longer recreates the object with a null prototype
  • Updated imports across project where there were breaking changes in deps

Copy link
Copy Markdown

@ntotten-hmpo ntotten-hmpo left a comment

Choose a reason for hiding this comment

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

Looks good!

Updated regex in pretty.js:60 to make the capture of "[Object: null prototype] "
optional as as sort-object-keys 2.x no longer recreates the object with a
null prototype.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates this package to target Node.js 24 and refreshes dependencies, including small compatibility changes in formatters and test setup.

Changes:

  • Bump supported/runtime Node version to 24 (CI + engines + .nvmrc).
  • Upgrade runtime/dev dependencies and add npm overrides for mocha transitive deps.
  • Adjust formatter/test imports and update pretty formatter’s metadata-stripping regex for new dependency behavior.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/helper.js Updates sinon-chai plugin import shape for newer sinon-chai.
package.json Sets Node 24 engine, upgrades deps/devDeps, adds mocha overrides.
lib/formatters/pretty.js Updates sort-object-keys import, chalk instantiation, and regex handling for inspect output.
lib/formatters/logstash.js Updates sort-object-keys import shape.
.nvmrc Pins local Node version to 24.14.0.
.github/workflows/ci.yaml Runs CI on Node 24.x only.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leonardobishop-hmpo leonardobishop-hmpo merged commit b815163 into master Mar 10, 2026
5 checks passed
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.

7 participants