- [Feature] Add
defaultexport. - [Internal] Update dependencies.
- [Feature] Expose default formatter and increase its inspection depth.
- [Internal] Update Typescript 3.2
- [Internal] Update dependencies
- [Internal] Run tests on ESM
- [Internal] Update dependencies
- [Feature] Add support for ES Modules
- [Fix] Keep original stack when converting native error to incident instance
- [Internal] Enable greenkeeper integration
- [Internal] Add code coverage support
- [Internal] Enable codecoverage integration
- [Internal] Complete code coverage
- [Breaking change] Require error name.
- [Breaking change] Drop support for browser build (es5): use your own transpiler if you need it.
- [Breaking change] Change order of generic parameters to
<Data, Name, Cause>(from<Name, Data, Cause>). - [Feature] If present, use
datato generate the default message. - [Feature] Provide default values for interface parameters
- [Fix] Support strict variance of the formatter function.
- [Internal] Add a few tests to ensure that the prototype chain is preserved.
- [Internal] Update project tools and enable continuous deployment.
- [Internal] Add
yarn.lock.
- [Breaking feature] Use the Incident name as a discriminant property for the data and cause.
This changes the signature from
Incident<Data>toIncident<Name, Data, Cause> - [Breaking change] Remove the setter methods:
setName,setMessage,setCause,setData. Use a simple assignation instead (incident.name = "foo"). - [Breaking change] A missing cause is now represented by
undefinedinstead ofnull. - [Feature]
Incident(error: Error)can now convert to instances of the currentIncidentconstructor. - [Feature] A simple function call allows to create errors that do not capture the stack.
new Incidentcaptures the stack but notnew Incident. - [Fix] Define the public exports in a separate file (
src/lib/index.ts)
- [Fix] Fix library path in package.json
- [Fix] Print error name and message in the stack trace. (Regression in 1.2.0)
- [Feature] Support lazy messages. You can now pass a formatter of type
(D) => stringinstead of astringfor the message. It will be called only if the error is actually thrown or you read the message. - [Internal] Update the build-tools from
0.13.0-alpha.0to0.13.0-beta.5 - [Internal] Drop dev-dependency on
typings - [Internal] Run the tests before each commit
- [Fix] Declare entry point for type definitions in
package.json.
- [Change] When using Typescipt interfaces, require type parameters for the
dataproperty. - [Internal] Update project structure and build tools
- [Internal] Add Travis support
- [Internal] Create
CHANGELOG.mdfile