error-custom-class

Create custom error classes

MIT License

Downloads
30.7K
Stars
4
Committers
2

Bot releases are visible (Hide)

error-custom-class - v10.0.0 Latest Release

Published by ehmicky 12 months ago

Breaking changes

  • Minimal supported Node.js version is now 18.18.0
error-custom-class - v9.0.0

Published by ehmicky over 1 year ago

Breaking changes

  • Minimal supported Node.js version is now 16.17.0
error-custom-class - Release 8.4.0

Published by ehmicky almost 2 years ago

Features

  • Improve tree-shaking support
error-custom-class - Release 8.3.0

Published by ehmicky almost 2 years ago

Features

  • Add browser support
error-custom-class - Release 8.2.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix package.json
error-custom-class - Release 8.2.0

Published by ehmicky about 2 years ago

  • Switch to MIT license
error-custom-class - Release 8.1.0

Published by ehmicky about 2 years ago

Features

  • Improve TypeScript types
error-custom-class - Release 8.0.0

Published by ehmicky about 2 years ago

Features

  • Remove unused dependency
error-custom-class - Release 7.0.0

Published by ehmicky about 2 years ago

Breaking changes

error-custom-class - Release 6.0.0

Published by ehmicky about 2 years ago

Breaking changes

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

Published by ehmicky about 2 years ago

Breaking changes

error-custom-class - Release 4.1.0

Published by ehmicky about 2 years ago

Feature

error-custom-class - Release 4.0.0

Published by ehmicky about 2 years ago

Breaking changes

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

Published by ehmicky about 2 years ago

Breaking changes

  • Error properties are now set by default using new ErrorType('message', { props: { ... } }) instead of new ErrorType('message', { ... })
error-custom-class - Release 2.0.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix types
error-custom-class - Release 2.0.0

Published by ehmicky about 2 years ago

Breaking changes

  • Split ErrorType type into ErrorConstructor and ErrorInstance
  • Add a template parameter ErrorName to all types
error-custom-class - Release 1.3.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix main function's return value's type
error-custom-class - Release 1.3.0

Published by ehmicky about 2 years ago

Features

  • Reduce npm package size
error-custom-class - Release 1.2.0

Published by ehmicky over 2 years ago

Features

  • Do not allow errors named 'Warning' or 'UnhandledPromiseRejection'
error-custom-class - Release 1.1.10

Published by ehmicky over 2 years ago

  • Validate against more error names (a943600)
  • Upgrade error-cause-polyfill 1.0.1 -> 1.0.3 (d2af919)
  • Add more tests (bbd7087)
  • Move files (03aefec)
  • Upgrade @ehmicky/dev-tasks 1.0.76 -> 1.0.77 (d263026)
  • Add a test (01b5f67)
  • Add comment (346d71a)
Package Rankings
Top 8.22% on Npmjs.org
Badges
Extracted from project README
Node Browsers TypeScript Codecov Minified size Mastodon Medium