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 effectively dormant as of today (2026-08-13). The last upstream push was 2024-12-21, but the most recent published updates shown here are from 2021-09, indicating long stretches without user-facing updates.
- Update cadence is irregular and long-paused, with several updates concentrated in 2018 to 2021 and then no evidence of continued releases/updates in the intervening period.
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.