- Minimal supported Node.js version is now
18.18.0
- Upgrade internal dependencies
- Upgrade internal dependencies
- Minimal supported Node.js version is now
16.17.0
- Fix TypeScript types
- Improve tree-shaking support
- Fix handling of errors that do not have any stack trace
- Renamed the
short
option tostack
. Its value is inverted.
Before:
handleCliError(error, { short: true })
After:
handleCliError(error, { stack: false })
- The error's name is now always logged even if
stack
isfalse
.
- The
colors
option has been added to show colors. It defaults totrue
in terminals. - Quoted strings in the error message are now colorized.
- An icon is now prepended to the error's name. This can be configured using the
icon
option. - The error's icon and name are now logged in red by default. This can be
configured using the
header
option. - The
props
option has been added to hide error properties.
- Fix
package.json
- Switch to MIT license
- Revert browsers support
- Fix error validation message
- Improve options validation
- Improve options validation
- Ensure error properties and colors are printed
- Browsers support
- Rename
types
option toclasses
- Print error
name
andmessage
on Firefox and Safari
- Reduce npm package size
Initial release