Releases: ehmicky/handle-cli-error
Releases Β· ehmicky/handle-cli-error
v5.0.0
v4.0.2
v4.0.1
v4.0.0
v3.1.1
Release 3.1.0
Features
- Improve tree-shaking support
Release 3.0.1
Bug fixes
- Fix handling of errors that do not have any stack trace
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.
Release 2.5.1
Bug fixes
- Fix
package.json
Release 2.5.0
- Switch to MIT license