Skip to content

Release 3.0.0

Compare
Choose a tag to compare
@ehmicky ehmicky released this 16 Oct 13:38
· 386 commits to main since this release

Breaking changes

  • Renamed the short option to stack. 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 is false.

Features

  • The colors option has been added to show colors. It defaults to true 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.