unstale

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 init

@unstale/cli 0.2.8 on npm

serialize-error 139 changes

Breaking changes 2

  • Node.js 20 is now required to run serialize-error.

    13.0.0release notes

  • Non-error values are now serialized to a NonError error.

    13.0.0release notes

New APIs and options 1

  • Factory functions can now be used for incompatible error constructors.

    13.0.0release notes

Performance 1

  • Circular reference detection performance is fixed.

    13.0.1release notes

Fixes and other changes 5

  • A throwing toJSON() no longer prevents later calls for the same object.

    13.0.2release notes

  • Plain objects in error properties are now recursively processed.

    13.0.1release notes

  • NonError deserialization now round-trips correctly.

    13.0.1release notes

  • The function now works with minified code.

    13.0.0release notes

  • Deserialization now preserves complex values.

    13.0.0release notes