fix(deps): update dependency canonicalize to v5 - #18236
Merged
Merged
Conversation
Copilot started reviewing on behalf of
OpenCTI Platform (OpenCTI-Platform)
September 11, 2026 21:43
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the backend canonicalize dependency from v4 to v5 for improved JSON canonicalization and Node.js 22 compatibility.
Changes:
- Bumps
canonicalizefrom 4.0.0 to 5.0.0. - Refreshes the Yarn lockfile resolution and checksum.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
opencti-platform/opencti-graphql/yarn.lock |
Locks canonicalize v5.0.0 and its checksum. |
opencti-platform/opencti-graphql/package.json |
Updates the dependency version. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #18236 +/- ##
==========================================
- Coverage 36.76% 36.75% -0.02%
==========================================
Files 3470 3470
Lines 141349 141349
Branches 38175 38175
==========================================
- Hits 51962 51946 -16
- Misses 89387 89403 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
force-pushed
the
renovate/canonicalize-5.x
branch
2 times, most recently
from
September 16, 2026 23:56
f1d11b7 to
367e8ea
Compare
renovate
Bot
force-pushed
the
renovate/canonicalize-5.x
branch
from
September 17, 2026 19:29
367e8ea to
afb0405
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.0.0→5.0.0Release Notes
erdtman/canonicalize (canonicalize)
v5.0.0Compare Source
Breaking Changes
representation emitted the bare token
undefined, and sparse arrays emittedholes — neither parses:
{ key: undefined }produced{"key":undefined}, now{}[ , , 1]produced[,,1], now[null,null,1][function () {}]produced[]— losing an element — now[null]JSON.stringifydoes:
new Number(5)was{}and is now5;new String('x')was{"0":"x"}and is now
"x".toJSON()returningundefinednow drops the property instead of emitting{"k":undefined}.>=18floor was alreadybroken, since
String.prototype.isWellFormed()needs Node 20+.Any of these change the canonical form, and therefore any signature over it. If
you have stored signatures produced by 4.0.0 over documents in these shapes, they
will not verify against 5.0.0 output.
Fixes
so nesting depth is bounded by heap rather than call stack. 4.0.0 threw above
~1,000 levels; 50,000+ now works. This closes a denial-of-service vector for
untrusted input.
Performance
~1.3x faster than 4.0.0 depending on payload
Documentation
duplicate property names are resolved before
canonicalize()sees the data.Configuration
📅 Schedule: (in timezone Europe/Paris)
* 0-4,22-23 * * 1-5)* * * * 0,6)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.