A structuredClone polyfill that provides an environment-agnostic serializer and deserializer for cloning values beyond JSON, including support for recursion and additional JavaScript types (with noted limitations for some browser types). It is useful when you need a structured clone-like behavior in environments without a native structuredClone, either by importing the polyfill directly or by optionally adding it to the globalThis object conditionally.
Project status
- Actively maintained, with the most recent upstream push on 2026-06-23 and a fresh update released on 2026-06-23 (v1.3.2), indicating current work rather than dormancy.
- Apparent update cadence is fairly recent, with updates in 2026-05-06 (v1.3.1) and 2026-06-23 (v1.3.2), suggesting a cycle on the order of weeks to about a month.
AI summary generated
Recent updates
v1.3.3
v1.3.3 has no release notes provided. The code changes are centered on how the polyfill serializes and deserializes Error instances to better match native structuredClone behavior, plus minor test additions and devDependency/version bumps in the lockfile.
v1.3.2
Release v1.3.2 makes structured clone serialization handle invalid Date values (NaN timestamps) without throwing, and ensures they round-trip correctly. It also updates CI to run on Node.js 22 and refreshes build tooling dependencies (notably rollup).
v1.3.1
v1.3.1 introduces a change in deserialization behavior intended to prevent creation of certain dangerous built-ins (for example Function and eval). Release notes were not provided, so the behavioral change is not documented here. The patch also updates several dev dependency versions used for building/testing.
BreakingSecurityv1.3.0
v1.3.0 adds support for additional Structured Clone types, specifically ArrayBuffer and DataView, across both the CommonJS and ESM builds. The implementation serializes them as byte arrays (Uint8Array-backed) and reconstructs them on deserialization. Release notes were not provided, so the functional change is not documented.
Featuresv1.2.1
Release v1.2.1 was published on 2024-12-07, but the publisher did not provide any release notes or change descriptions. As a result, there is no documented information about new features, bug fixes, breaking changes, or dependency updates for this version.
v1.2.0
Release v1.2.0 contains no published release notes. The code diff mainly updates the documented options surface for the structured clone polyfill (notably adding json alongside lossy, and making transfer optional), and upgrades the build toolchain dependencies and configuration.
v1.1.2
Release v1.1.2 contains essentially no documented changes because no release notes were provided. The code diff shows only minor TypeScript declaration updates and version metadata updates.
v1.1.1
Release v1.1.1 contains no documented release notes from the publisher. The only code diff changes provided are version bumps and TypeScript declaration updates for the library entrypoints.
v1.1.0
v1.1.0 introduces published TypeScript declaration files for the main polyfill entrypoint and the `./json` helper. The runtime JS logic appears unchanged, with most JS diffs limited to removed/updated JSDoc and formatting, while packaging and typing infrastructure was expanded and build tooling was updated.
BreakingFeaturesv1.0.2
Release v1.0.2 appears to be a metadata-only update. The diff shows changes limited to README badge text and the package version fields in package.json and package-lock.json, with no functional source code changes present in the provided diff.
v1.0.1
Release v1.0.1 is a very small update with no release notes provided. The code diff shows only comment and documentation changes around the JSON helpers, plus a version bump in package metadata.
v1.0.0
This release is tagged v1.0.0, but no release notes were provided by the publisher. As a result, there is no documented information about new features, bug fixes, breaking changes, security updates, or migration steps in the release text.