Skip to content

Version 18.0.0

Latest

Choose a tag to compare

@jaydenseric jaydenseric released this 03 Aug 06:47

Major

  • Updated Node.js support to ^22.13.0 || ^24.0.0 || >=26.0.0.

  • Updated the optional peer dependency @types/express to ^5.0.0.

  • Updated the optional peer dependency @types/koa to ^3.0.0.

  • Updated the peer dependency graphql to ^17.0.0.

  • Migrated the scalar GraphQLUpload to the graphql v17 scalar method names:

    • parseValuecoerceInputValue.
    • parseLiteralcoerceInputLiteral.
    • serializecoerceOutputValue.
  • Changed imports from graphql to deep imports, for slightly more optimal JavaScript module design. This can be further improved once graphql/graphql-js#4442 is implemented.

  • The type FileUpload is no longer re-exported from graphql-upload/GraphQLUpload.mjs. To migrate TypeScript type imports:

    - import type { FileUpload } from "graphql-upload/GraphQLUpload.mjs";
    + import type { FileUpload } from "graphql-upload/processRequest.mjs";

Patch

  • Removed the package field devEngines as the development and runtime supported Node.js versions are the same again.
  • Updated package scripts.
  • Updated GitHub Actions CI config:
    • Improved the triggers.
    • Renamed the job tests to test.
    • Run tests with the lower and upper bounds of each supported major Node.js version.
    • Removed conditionality for Node.js < v22 support.
  • Removed no longer necessary polyfills for global File, Promise.withResolvers, and Request.prototype.bytes in tests.
  • Removed no longer necessary Node.js version conditionality in tests.
  • Refactored tests from describe and it to suite and test.
  • Implemented a new test helper function serverClose to ensure tests await the proper closing of servers and all connections, speeding up test runs (particularly in older Node.js versions).
  • Added an end-to-end test.
  • Added a .gitattributes file to enforce LF line endings.
  • Sorted config in .editorconfig.
  • Edited the changelog for consistency.