Version 4.1.2
Patch
-
Updated dev dependencies.
-
Updated Prettier related package scripts.
-
Configured Prettier option
semito the default,true. -
Ensure GitHub Actions run on pull request.
-
Minor v0.1.0 changelog entry tweak.
-
For clarity, manually specify a
500HTTP status code even though it’s the default when throwing errors viahttp-errors. -
Changed the error that the
executeKoa middleware throws when there are GraphQL execution errors:-
The error is no longer created using
http-errors, which doesn’t easily accept a200status. This allowed the removal of thecreateHttpErrorfunction workaround. -
Changed the error message (an internal change as this message is not exposed to the client by the
errorHandlerKoa middleware):- GraphQL errors. + GraphQL execution errors.
-
-
Updated the
errorHandlerKoa middleware, fixing #8:- It can now handle a non enumerable object error, e.g.
null. - The
extensionsproperty of an error is now always exposed to the client in the payloaderrorsarray, even if the error message is not exposed via anexposeproperty. - Added new
ErrorKoaMiddlewareandErrorGraphQLResolverJSDoc typedefs to better document the special properties errors may have for theerrorHandlerKoa middleware to use to determine how the error appears in the response payloaderrorsarray and the response HTTP status code. - Documented that additional custom Koa middleware can be used to customize the response.
- It can now handle a non enumerable object error, e.g.
-
Renamed the
startServertest helper tolisten.