Packages

graphql-upload

18.0.1 · 2 Oct 2026MIT482.2k / weekRepositoryHomepagenpmAtom feed

Your version

18.0.0

major3 Aug 2026Where it was published

18.0.1 is the newest release of 18.x.

In short

3 new8 fixed7 changed

Release note

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:

    • parseValue → coerceInputValue.

    • parseLiteral → coerceInputLiteral.

    • serialize → coerceOutputValue.

  • 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.