Skip to content

Latest commit

 

History

History
123 lines (65 loc) · 1.68 KB

CHANGELOG.md

File metadata and controls

123 lines (65 loc) · 1.68 KB

10.0.0

Breaking changes

  • Minimal supported Node.js version is now 18.18.0

9.0.0

Breaking changes

  • Minimal supported Node.js version is now 16.17.0

8.4.0

Features

  • Improve tree-shaking support

8.3.0

Features

  • Add browser support

8.2.1

Bug fixes

  • Fix package.json

8.2.0

  • Switch to MIT license

8.1.0

Features

  • Improve TypeScript types

8.0.0

Features

  • Remove unused dependency

7.0.0

Breaking changes

6.1.0

Features

  • Error props are now deep merged

6.0.0

Breaking changes

  • The onCreate and ParentClass options have been removed. Please use error-class-utils instead.

5.0.0

Breaking changes

  • The onCreate and ParentClass positional parameters are now named parameters inside an options object.

4.1.0

Feature

  • Allow specifying the parent error class

4.0.0

Breaking changes

  • The project was renamed from error-type to error-custom-class

3.0.0

Breaking changes

  • Error properties are now set by default using new CustomError('message', { props: { ... } }) instead of new CustomError('message', { ... })

2.0.1

Bug fixes

  • Fix types

2.0.0

Breaking changes

  • Split ErrorType type into ErrorConstructor and ErrorInstance
  • Add a template parameter ErrorName to all types

1.3.1

Bug fixes

  • Fix main function's return value's type

1.3.0

Features

  • Reduce npm package size

1.2.0

Features

  • Do not allow errors named 'Warning' or 'UnhandledPromiseRejection'