Download Latest Version Version 9.1.3 source code.zip (82.2 kB)
Email in envelope

Get an email when there's a new version of graphql-api-koa

Home / v9.0.0
Name Modified Size InfoDownloads / 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 and exports fields.
  • Removed ./package from the package exports field; the full package.json filename must be used in a require 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 error locations and path properties within the GraphQL response body errors 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 package docs-update and docs-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 operation operationName is invalid.
  • Implemented a more reliable system based on a new GraphQLAggregateError class for throwing a GraphQL validation or execution aggregate error in the execute Koa middleware for special handling in the errorHandler Koa middleware.
  • Updated the errorHandler Koa middleware to overwrite an existing Koa context response.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.
Source: README.md, updated 2022-06-28