modern-errors-serialize

`modern-errors` plugin to serialize/parse errors.

MIT License

Downloads
3K
Stars
11
Committers
2

Bot releases are hidden (Show)

modern-errors-serialize - v6.1.0 Latest Release

Published by ehmicky 4 months ago

Features

modern-errors-serialize - v6.0.0

Published by ehmicky 12 months ago

Breaking changes

  • Minimal supported Node.js version is now 18.18.0
modern-errors-serialize - v5.0.0

Published by ehmicky over 1 year ago

Breaking changes

  • Minimal supported modern-errors version is now 6.0.0
modern-errors-serialize - v4.0.0

Published by ehmicky over 1 year ago

Breaking changes

  • Minimal supported Node.js version is now 16.17.0
modern-errors-serialize - Release 3.0.0

Published by ehmicky almost 2 years ago

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
modern-errors-serialize - Release 2.3.0

Published by ehmicky almost 2 years ago

Features

modern-errors-serialize - Release 2.2.0

Published by ehmicky almost 2 years ago

Features

modern-errors-serialize - Release 2.1.0

Published by ehmicky almost 2 years ago

Features

  • Upgrade to the latest version of modern-errors
modern-errors-serialize - Release 2.0.0

Published by ehmicky almost 2 years ago

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.
modern-errors-serialize - Release 1.4.0

Published by ehmicky almost 2 years ago

Features

  • Improve tree-shaking support
modern-errors-serialize - Release 1.3.0

Published by ehmicky almost 2 years ago

Features

  • Add browser support
modern-errors-serialize - Release 1.2.0

Published by ehmicky almost 2 years ago

Features

modern-errors-serialize - Release 1.1.0

Published by ehmicky almost 2 years ago

Documentation

Improve README.

modern-errors-serialize - Release 1.0.0

Published by ehmicky almost 2 years ago

Initial release.

Package Rankings
Top 8.89% on Npmjs.org
Badges
Extracted from project README
Node Browsers TypeScript Codecov Minified size Mastodon Medium