Skip to content

Releases: ehmicky/modern-errors-serialize

v6.1.0

11 Jun 03:43
Compare
Choose a tag to compare

Features

v6.0.0

28 Oct 22:34
Compare
Choose a tag to compare

Breaking changes

  • Minimal supported Node.js version is now 18.18.0

v5.0.0

14 May 00:57
Compare
Choose a tag to compare

Breaking changes

  • Minimal supported modern-errors version is now 6.0.0

v4.0.0

14 May 00:02
Compare
Choose a tag to compare

Breaking changes

  • Minimal supported Node.js version is now 16.17.0

Release 3.0.0

20 Nov 20:10
Compare
Choose a tag to compare

Breaking changes

  • BaseError.toJSON() was renamed to BaseError.serialize()
  • BaseError.fromJSON() was renamed to BaseError.parse()
  • When serializing/parsing a value that is not an error instance or an error plain object, it is now automatically converted to one

Features

  • Added the shallow option to serialize/parse shallowly
  • Added the loose option to prevent converting the argument to an error instance or an error plain object if it is not one

Release 2.3.0

19 Nov 22:32
Compare
Choose a tag to compare

Release 2.2.0

19 Nov 21:04
Compare
Choose a tag to compare

Features

Release 2.1.0

19 Nov 14:21
Compare
Choose a tag to compare

Features

  • Upgrade to the latest version of modern-errors

Release 2.0.0

18 Nov 23:43
Compare
Choose a tag to compare

Breaking changes

  • modern-errors@5 is now required
  • If the argument passed to BaseError.parse(value) is not an error object, it is not converted to one anymore. Also, if it is an unknown error, it is not normalized anymore.
  • If an error class uses custom option and a constructor is defined, that constructor is not called anymore. However, any property previously set by that constructor is still preserved, providing it is serializable and enumerable.
  • The serialization format has changed: instead of serializing the constructor arguments as constructorArgs, the plugins options are now serialized as pluginsOpts. Those properties are undocumented and mostly internal.

Release 1.4.0

11 Nov 18:45
Compare
Choose a tag to compare

Features

  • Improve tree-shaking support