npm / serialize-error
serialize-error
What changed in serialize-error 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
2 breaking1 new APIs and options1 performance5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initserialize-error 139 changes
Breaking changes 2
Node.js 20 is now required to run serialize-error.
Non-error values are now serialized to a NonError error.
New APIs and options 1
Factory functions can now be used for incompatible error constructors.
Performance 1
Circular reference detection performance is fixed.
Fixes and other changes 5
A throwing toJSON() no longer prevents later calls for the same object.
Plain objects in error properties are now recursively processed.
NonError deserialization now round-trips correctly.
The function now works with minified code.
Deserialization now preserves complex values.