Skip to content

Releases: sindresorhus/serialize-error

v13.0.1

18 Jan 13:13

Choose a tag to compare

  • Fix plain objects in error properties not being recursively processed 667d958
  • Fix circular reference detection performance 30bb730
  • Fix NonError deserialization round-trip 4b56cb5

v13.0.0...v13.0.1

v13.0.0

16 Jan 14:48

Choose a tag to compare

Breaking

Improvements

  • Add factory function support for incompatible error constructors (#114) d196952
  • Make addKnownErrorConstructor work with minified code (#113) adbdd79
  • Serialize non-error values to NonError error (#112) fda78b8
  • Preserve complex values during deserialization (#111) 6fd0ad0

v12.0.0...v13.0.0

v12.0.0

05 Jan 00:39

Choose a tag to compare

Breaking

Improvements

Fixes

  • Stop making non-Error properties non-enumerable (#102) 1d8395b
  • Fix return type for unknown input (#105) 64ce883

v11.0.3...v12.0.0

v11.0.3

10 Nov 07:16

Choose a tag to compare

  • Improve compatibility with Next.js (#94) 6729be5

v11.0.2...v11.0.3

v11.0.2

25 Aug 14:47

Choose a tag to compare

  • Fix compatibility with DOMException 26fc52b

v11.0.1...v11.0.2

v11.0.1

02 Aug 11:35

Choose a tag to compare

  • Fix handling of non-extensible objects fdfe034

v11.0.0...v11.0.1

v11.0.0

13 May 08:18

Choose a tag to compare

Breaking

  • Expect a message property at a minimum to be interpreted as an Error (#77) 0720121

Improvements

v10.0.0...v11.0.0

v10.0.0

18 Apr 12:04

Choose a tag to compare

Breaking

  • Require Node.js 14 22b9bd4
  • Preserve error constructor (#70) 49db63a
    • Previously it did not preserve built-in errors. It does now. So a TypeError might have been deserialized as a Error before, but is now deserialized as a TypeError.

Improvements

v9.1.1...v10.0.0

v9.1.1

21 Mar 18:19

Choose a tag to compare

v9.1.0...v9.1.1

v9.1.0

14 Feb 11:11

Choose a tag to compare

  • Handle streams attached to an error by replacing them with '[object Stream]' (#57) b589f8e

v9.0.0...v9.1.0