Repository navigation
Conversation
Weekly Dependency Update
…t of the sandbox The reviver snapshots a holder's own keys, then reads each queued value with Reflect.get. A callback runs with the holder as `this` between the snapshot and the read, so deleting a still-queued key let the read fall through to the host Object.prototype and handed the callback a live host reference, bypassing the member guard. Resolve the own data descriptor per visit instead; a missing or inherited key reads as undefined.
…throwing A reviver callback can freeze its holder, after which the walk's plain assignment and defineProperty write-back threw a host TypeError that escaped the run as an uncatchable error. Write back through Reflect, whose define and delete return false rather than throwing, so a refused write is left as it is. This matches the host, which ignores the failed write and keeps the original value.
…out of the sandbox stringify reads a plain object's queued values and an array's elements with a plain member access. A replacer runs with the holder as `this` between the key snapshot and that read, so deleting a still-queued key let the read fall through to the host prototype and handed the replacer a live host reference. Read the own data descriptor per key instead, matching the reviver.
…'t fake a value ownDataValue used `'value' in descriptor`, but a descriptor's own prototype is the host Object.prototype, so a `value` the embedding page added there would misread an accessor as a data property. Use Object.hasOwn, which reads the descriptor's own fields only.
Keep host prototype functions away from JSON revivers and replacers
📋 Release PreviewChangelog0.7.2 (2026-11-25)🩹 Bug Fixes
🏗 Dependency Updates
|
NetWin
marked this pull request as ready for review
November 25, 2026 11:28
|
🎉 This PR is included in version 0.7.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Summary
Releases everything merged into
incrementsince 0.7.1:Highlights
of its holder before that key was visited used to receive the host's own function of that name,
such as
Object.prototype.hasOwnProperty— a reference the script could hold but not call. BothJSON statics now read the holder's own data only, so such a key reads as
undefined. A reviverthat freezes, seals or locks its holder mid-walk no longer ends the run with an uncatchable error:
the refused write is skipped and the value kept, as in JavaScript.
Behaviour changes for hosts
key a callback deletes before its visit, native JavaScript reads the prototype; Maple gives
undefined. Scripts that do not delete holder keys during the walk are unaffected. Documented inpackages/maple/docs/divergences.md.Tooling
@angular/build22.2.7, Tailwind 4.3.5, oxfmt 0.79,oxlint 1.94, tsdown 0.23.7, vitest 5.1, and pnpm 12.22.0. No runtime dependencies change and the
acornpeer range stays at^8.19.0.