Skip to content

Latest commit

Β 

History

History
207 lines (117 loc) Β· 3.4 KB

File metadata and controls

207 lines (117 loc) Β· 3.4 KB

6.2.0

Features

  • Add a custom option to choose the name of the customization method. By default, it is 'beautiful'.

6.1.0

Features

6.0.0

Breaking changes

  • Previously, if the props option was false, nested errors (error.cause and error.errors) were not printed. To achieve the same behavior, the cause option must now be set to false.

Features

  • Nested errors are now printed on their own, which result in a prettier output.

5.3.0

Features

  • Add option log to customize printing the error message.

5.2.1

Bug fixes

  • Fix issues printing errors that include ] in their message, when the stack option is false.

5.2.0

Features

5.1.0

Features

  • Split the core logic into a separate package: beautiful-error. It can be used if you want to prettify an error but not exit the process.

5.0.1

Documentation

  • Improve documentation in README.md

5.0.0

Breaking changes

  • Minimal supported Node.js version is now 18.18.0

4.0.2

Dependencies

  • Upgrade internal dependencies

4.0.1

Dependencies

  • Upgrade internal dependencies

4.0.0

Breaking changes

  • Minimal supported Node.js version is now 16.17.0

3.1.1

Bug fixes

  • Fix TypeScript types

3.1.0

Features

  • Improve tree-shaking support

3.0.1

Bug fixes

  • Fix handling of errors that do not have any stack trace

3.0.0

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.

2.5.1

Bug fixes

  • Fix package.json

2.5.0

  • Switch to MIT license

2.4.2

Bug fixes

  • Revert browsers support

2.4.1

Bug fixes

  • Fix error validation message

2.4.0

Features

  • Improve options validation

2.3.0

Features

  • Improve options validation

2.2.0

Features

  • Ensure error properties and colors are printed

2.1.0

Features

  • Browsers support

2.0.0

Breaking changes

1.1.1

Bug fixes

  • Print error name and message on Firefox and Safari

1.1.0

Features

  • Reduce npm package size

1.0.1

Initial release