set-error-props

Properly update an error's properties

MIT License

Downloads
26.7K
Stars
3
Committers
2

Bot releases are visible (Hide)

set-error-props - v6.0.0 Latest Release

Published by ehmicky 12 months ago

Breaking changes

  • Minimal supported Node.js version is now 18.18.0
set-error-props - v5.0.0

Published by ehmicky over 1 year ago

Breaking changes

  • Minimal supported Node.js version is now 16.17.0
set-error-props - Release 4.0.0

Published by ehmicky almost 2 years ago

Breaking changes

  • Properties can now be set as non-enumerable by prefixing their name with _
  • Properties' descriptors (enumerable, writable, configurable, get/set) are now preserved
set-error-props - Release 3.5.0

Published by ehmicky almost 2 years ago

Features

  • Improve tree-shaking support
set-error-props - Release 3.4.0

Published by ehmicky almost 2 years ago

Features

  • Add browser support
set-error-props - Release 3.3.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix package.json
set-error-props - Release 3.3.0

Published by ehmicky about 2 years ago

  • Switch to MIT license
set-error-props - Release 3.2.0

Published by ehmicky about 2 years ago

Features

set-error-props - Release 3.1.0

Published by ehmicky about 2 years ago

Features

  • Setting an undefined value now deletes its key as well
set-error-props - Release 3.0.0

Published by ehmicky about 2 years ago

Breaking changes

  • Remove deep merging
set-error-props - Release 2.0.0

Published by ehmicky about 2 years ago

Breaking changes

  • The error is not normalized anymore
  • Rename lowPriority option to soft

Features

  • The first argument can now be a plain object
  • Improve prototype pollution check
set-error-props - Release 1.1.0

Published by ehmicky about 2 years ago

Features

  • Normalize and return error
  • Validate arguments
  • Improve TypeScript types
set-error-props - Release 1.0.1

Published by ehmicky about 2 years ago

Bug fixes

  • Fix lowPriority option not working when error properties are undefined
  • Fix typo in types
set-error-props - Release 1.0.0

Published by ehmicky about 2 years ago

Initial release

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