Release 3.0.0
Breaking changes
- 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
.
Features
- 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.