Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@ehmicky ehmicky released this 18 Nov 23:43
· 363 commits to main since this release

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.