Changelog
2.1.6 - Fri Apr 02 2021 20:34:42
Contributor: dependabot[bot]
Changelog
2.1.5 - Sat Mar 20 2021 05:11:00
Contributor: Theo Gravity
BaseError#setConfig()
not being chainableIt was returning void rather than the instance back. This fixes that.
Changelog
2.1.4 - Fri Mar 19 2021 04:22:07
Contributor: Theo Gravity
ErrorRegistry#withContext()
The return type of withContext()
was being inferred as any
by Typescript. This now appropriately set to return ErrorRegistry<HLErrors, LLErrors>
.
Changelog
2.1.3 - Fri Mar 19 2021 02:55:37
Contributor: Theo Gravity
Changelog
2.1.2 - Fri Mar 19 2021 02:53:03
Contributor: Theo Gravity
Changelog
2.1.1 - Fri Mar 19 2021 02:47:52
Contributor: Theo Gravity
You can now create child registries with context via ErrorRegistry#withContext()
that will create
errors with the predefined context.
The use-case is if your code block throws many errors, and you want to use the same metadata without setting it each time, so code is not duplicated.
See readme for more information.
Changelog
2.0.2 - Sun Mar 14 2021 22:12:56
Contributor: Theo Gravity
The instructions for Apollo GraphQL was not correct and has been updated with an internally tested example.
Changelog
2.0.1 - Sun Mar 14 2021 05:42:56
Contributor: Theo Gravity
For most users, this new major version should not break your existing code.
You may have to make adjustments if you happen to use generics in ErrorRegistry
.
ErrorRegistry
generics by removing unused generics and moving the definitions to an interfacemessage
in a high level definition. This is used with ErrorRegistry#newBareError
if no message is defined.message
parameter of ErrorRegistry#newBareError
optional. See readme for behavior when the parameter is omitted.Changelog
1.3.1 - Sun Mar 14 2021 03:09:54
Contributor: Theo Gravity
This is useful if you need to convert the errors created by this library into another type, such as a GraphQLError
when going outbound to the client.
See the README for more details.
Changelog
1.2.10 - Fri Mar 12 2021 02:21:26
Contributor: Theo Gravity