Releases: sindresorhus/serialize-error
Releases · sindresorhus/serialize-error
v13.0.1
v13.0.0
Breaking
- Require Node.js 20 4d32b0a
Improvements
- Add factory function support for incompatible error constructors (#114) d196952
- Make
addKnownErrorConstructorwork with minified code (#113) adbdd79 - Serialize non-error values to
NonErrorerror (#112) fda78b8 - Preserve complex values during deserialization (#111) 6fd0ad0
v12.0.0
v11.0.3
v11.0.2
- Fix compatibility with
DOMException26fc52b
v11.0.1
- Fix handling of non-extensible objects fdfe034
v11.0.0
v10.0.0
Breaking
- Require Node.js 14 22b9bd4
- Preserve error constructor (#70) 49db63a
- Previously it did not preserve built-in errors. It does now. So a
TypeErrormight have been deserialized as aErrorbefore, but is now deserialized as aTypeError.
- Previously it did not preserve built-in errors. It does now. So a