set-error-class

Properly update an error's class.

MIT License

Downloads
29.9K
Stars
3
Committers
2

Bot releases are visible (Hide)

set-error-class - v3.0.0 Latest Release

Published by ehmicky 12 months ago

Breaking changes

  • Minimal supported Node.js version is now 18.18.0
set-error-class - v2.0.0

Published by ehmicky over 1 year ago

Breaking changes

  • Minimal supported Node.js version is now 16.17.0
set-error-class - v1.6.0

Published by ehmicky almost 2 years ago

Features

  • Improve TypeScript types
set-error-class - Release 1.5.0

Published by ehmicky almost 2 years ago

Documentation

  • Undocument the third argument
set-error-class - Release 1.4.0

Published by ehmicky almost 2 years ago

Features

  • Improve tree-shaking support
set-error-class - Release 1.3.0

Published by ehmicky almost 2 years ago

Features

  • Add browser support
set-error-class - Release 1.2.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix package.json
set-error-class - Release 1.2.0

Published by ehmicky about 2 years ago

  • Switch to MIT license
set-error-class - Release 1.1.0

Published by ehmicky about 2 years ago

Bug fixes

  • Allow ErrorClass.prototype.constructor to mismatch ErrorClass, in order to support polyfills like error-cause-polyfill
set-error-class - Release 1.0.1

Published by ehmicky about 2 years ago

Bug fixes

  • Improve how error.name is set when the class has not changed
set-error-class - Release 1.0.0

Published by ehmicky about 2 years ago

Initial release.

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