Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2022-06-28 | 2.2 kB | |
Version 9.0.0 source code.tar.gz | 2022-06-28 | 70.6 kB | |
Version 9.0.0 source code.zip | 2022-06-28 | 79.9 kB | |
Totals: 3 Items | 152.7 kB | 0 |
Major
- Updated Node.js support to
^14.17.0 || ^16.0.0 || >= 18.0.0
. - Updated dev dependencies, some of which require newer Node.js versions than previously supported.
- Public modules are now individually listed in the package
files
andexports
fields. - Removed
./package
from the packageexports
field; the fullpackage.json
filename must be used in arequire
path. - Removed the package main index module; deep imports must be used.
- Shortened public module deep import paths, removing the
/public/
. - The
errorHandler
Koa middleware no longer exposes errorlocations
andpath
properties within the GraphQL response bodyerrors
array for errors that aren’t GraphQL validation or execution errors. - Implemented TypeScript types via JSDoc comments.
Patch
- Updated dependencies.
- Removed the
isobject
dependency. - Simplified dev dependencies and config for ESLint.
- Removed the
jsdoc-md
dev dependency and the packagedocs-update
anddocs-check
scripts, replacing the readme “API” section with a manually written “Exports” section. - Check TypeScript types via a new package
types
script. - Simplified package scripts.
- Updated GitHub Actions CI config:
- Run tests with Node.js v14, v16, v18.
- Updated
actions/checkout
to v3. - Updated
actions/setup-node
to v3. - Reorganized the test file structure.
- Improved tests and test helpers.
- Stopped using deprecated
GraphQLError
constructor parameters in tests. - Updated the
execute
Koa middleware to throw an appropriate HTTP error when the GraphQL operationoperationName
is invalid. - Implemented a more reliable system based on a new
GraphQLAggregateError
class for throwing a GraphQL validation or execution aggregate error in theexecute
Koa middleware for special handling in theerrorHandler
Koa middleware. - Updated the
errorHandler
Koa middleware to overwrite an existing Koa contextresponse.body
if it’s not a suitable object when handling an error. - Configured Prettier option
singleQuote
to the default,false
. - Improved documentation.
- Added a
license.md
MIT License file.