A safe and fast alternative to JSON.stringify for serializing JavaScript objects, including cases with circular references. It supports the same stringify-style options (replacer, space, and options like depth/edge limits) and can produce a deterministic, stable output via a stableStringify variant.
Project status
- The repository appears to be in a maintenance or low-activity state, even though there was a recent upstream push on 2024-12-21, the most recent published
updatesreflected in the provided history are from 2021 (v2.1.1, v2.1.0, v2.0.8). - Apparent
updatescadence is low, with version-tag updates not shown after 2021-09-08, suggesting a long gap relative to today (2026-08-12).
AI summary generated
Recent updates
v2.1.1
v2.1.1 increases the default serialization limits used by fast-safe-stringify. The release notes state this is intended to prevent breakage caused by the previous depth and edge caps being too low.
v2.1.0
v2.1.0 introduces safeguards to prevent serialization from traversing arbitrarily deep or wide object graphs. The release notes describe adding max depth and max edges limits, and the code implements this by truncating traversal and replacing exceeded nodes with a placeholder string.
Featuresv2.0.8
v2.0.8 focuses on ensuring that objects are left in a consistent state when serialization errors occur. The implementation also adds more robust handling for circular references involving getters, including restoring temporarily modified properties.
Featuresv2.0.6
Release v2.0.6 updates the package's TypeScript type definitions. This may affect developers by changing compile-time typings, potentially requiring minor code or type adjustments if you see new TypeScript errors after upgrading.