Skip to content

Commit ae4b0c4

Browse files
release v6.0.0
1 parent 6901452 commit ae4b0c4

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@ All notable changes will be documented in this file.
44
`ono` adheres to [Semantic Versioning](http://semver.org/).
55

66

7+
[v6.0.0](https://github.com/JS-DevTools/ono/tree/v6.0.0) (2019-12-28)
8+
----------------------------------------------------------------------------------------------------
9+
10+
### Breaking Changes
11+
12+
- 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)
13+
14+
- Removed `ono.formatter`. It has been replaced with [the `format` option](https://github.com/JS-DevTools/ono#format-option)
15+
16+
- 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.
17+
18+
### New Features
19+
20+
- 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
21+
22+
- 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
23+
24+
- The [`format` option](https://github.com/JS-DevTools/ono#format-option) lets you provide a custom function for replacing placeholders in error messages
25+
26+
27+
[Full Changelog](https://github.com/JS-DevTools/ono/compare/v5.1.0...v6.0.0)
28+
29+
730
[v5.1.0](https://github.com/JS-DevTools/ono/tree/v5.1.0) (2019-09-10)
831
----------------------------------------------------------------------------------------------------
932

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ono",
3-
"version": "5.1.0",
3+
"version": "6.0.0",
44
"description": "Throw better errors.",
55
"keywords": [
66
"throw",

0 commit comments

Comments
 (0)