You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#141 - Copy the contents of a Buffer into memory it owns,
instead of returning a view over the original's memory. Buffer overrides slice with one that does not copy, so
mutating the copy previously mutated the original.
#141 - Use a null prototype for the internal map of
tag-specific copiers, so that a value carrying a custom Symbol.toStringTag cannot resolve to an inherited Object.prototype member as its copier. Tags such as toString, valueOf, or hasOwnProperty previously produced a
garbage copy or threw.
#137 - Add maxDepth option to createCopier, bounding the
number of nested objects traversed (defaults to 1000, pass Infinity to traverse without a limit)
#137 - Throw the new MaxDepthExceededError when a value is
nested more deeply than maxDepth, instead of exhausting the call stack with a native RangeError; the error extends RangeError, so existing handling continues to work
The State object passed to custom methods now includes a depth property. This is maintained internally and
should not be modified, but it is a required property on the exported State type, so any code constructing a State
directly (such as a test mock) will need to provide it.
Bito didn't auto-review this change because the PR contains excluded label: renovate. No action is needed if you didn't intend for the agent to review it. To trigger a review manually, type /review in a comment and save.
You can change this by removing the label from Filters → Exclude Labels setting here, or from the labels_excluded field in the .bito.yaml file (if repo-level configurations are enabled), or contact your workspace admin at michael.pearce@contentful.com.
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: package-lock.json
npm warn cli npm v12.0.2 does not support Node.js v18.20.8. This version of npm supports the following node versions: `^22.22.2 || ^24.15.0 || >=26.0.0`. You can find the latest version at https://nodejs.org/.
npm error code ERR_REQUIRE_ESM
npm error require() of ES Module /opt/containerbase/tools/npm/12.0.2/18.20.8/node_modules/npm/node_modules/@npmcli/agent/node_modules/http-proxy-agent/dist/index.js from /opt/containerbase/tools/npm/12.0.2/18.20.8/node_modules/npm/node_modules/@npmcli/agent/lib/proxy.js not supported.
npm error Instead change the require of index.js in /opt/containerbase/tools/npm/12.0.2/18.20.8/node_modules/npm/node_modules/@npmcli/agent/lib/proxy.js to a dynamic import() which is available in all CommonJS modules.
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2026-09-15T22_40_19_082Z-debug-0.log
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
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:
^3.0.2→^4.0.0Release Notes
planttheidea/fast-copy (fast-copy)
v4.1.1Compare Source
Bufferinto memory it owns,instead of returning a view over the original's memory.
Bufferoverridesslicewith one that does not copy, somutating the copy previously mutated the original.
nullprototype for the internal map oftag-specific copiers, so that a value carrying a custom
Symbol.toStringTagcannot resolve to an inheritedObject.prototypemember as its copier. Tags such astoString,valueOf, orhasOwnPropertypreviously produced agarbage copy or threw.
v4.1.0Compare Source
maxDepthoption tocreateCopier, bounding thenumber of nested objects traversed (defaults to
1000, passInfinityto traverse without a limit)MaxDepthExceededErrorwhen a value isnested more deeply than
maxDepth, instead of exhausting the call stack with a nativeRangeError; the error extendsRangeError, so existing handling continues to workThanks to @lenny-ts for identifying this.
Internal changes
Stateobject passed to custommethodsnow includes adepthproperty. This is maintained internally andshould not be modified, but it is a required property on the exported
Statetype, so any code constructing aStatedirectly (such as a test mock) will need to provide it.
v4.0.4Compare Source
for...inloop withhasOwnPropertycheck tojust use
Object.keys(slight hit to small object iterations, but big win in large objects)forloops to instead befor...of(flat orimproved across the board)
.forEach()loops to instead befor...ofv4.0.3Compare Source
Uint64Arrayin favor ofBigInt64Array/
BigUint64Array) (fixes #128)v4.0.2Compare Source
#111)
v4.0.1Compare Source
package
v4.0.0Compare Source
BREAKING CHANGES
copymethod is now a named export, and the default export has been removed.Symbol,WeakMap, andRegExp.prototype.flagsare now expected to bepresent.
createCopiernow receives an object of options. The methods passed previously are namespaced under themethodskeyin that options object.
createStrictCopierhas been removed; please use thestrictoption passed tocreateCopierv3.1.0: Release 3.1.0Compare Source
359c008)0078ed5)f1cc924)Configuration
📅 Schedule: (UTC)
* 0-4,22-23 * * 1-5)* * * * 0,6)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.