Skip to content

Commit

Permalink
release v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Dec 28, 2019
1 parent 6901452 commit ae4b0c4
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,29 @@ All notable changes will be documented in this file.
`ono` adheres to [Semantic Versioning](http://semver.org/).


[v6.0.0](https://github.com/JS-DevTools/ono/tree/v6.0.0) (2019-12-28)
----------------------------------------------------------------------------------------------------

### Breaking Changes

- Dropped support for IE8 and other JavaScript engines that don't support [`Object.getOwnPropertyDescriptor()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor)

- Removed `ono.formatter`. It has been replaced with [the `format` option](https://github.com/JS-DevTools/ono#format-option)

- When using the default `ono()` function to wrap an error, it will now try to match the error's type, rather than simply using the base `Error` class.

### New Features

- The [`Ono` constructor](https://github.com/JS-DevTools/ono#onoerror-options) now accepts an optional [options parameter](https://github.com/JS-DevTools/ono#options), which lets you customize the behavior of Ono

- The [`concatMessages` option](https://github.com/JS-DevTools/ono#concatmessages-option) lets you control whether the original error's message is appended to your error message

- The [`format` option](https://github.com/JS-DevTools/ono#format-option) lets you provide a custom function for replacing placeholders in error messages


[Full Changelog](https://github.com/JS-DevTools/ono/compare/v5.1.0...v6.0.0)


[v5.1.0](https://github.com/JS-DevTools/ono/tree/v5.1.0) (2019-09-10)
----------------------------------------------------------------------------------------------------

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ono",
"version": "5.1.0",
"version": "6.0.0",
"description": "Throw better errors.",
"keywords": [
"throw",

0 comments on commit ae4b0c4

Please sign in to comment.