graphql-tools
graphql-tools copied to clipboard
Bump apollo-upload-client and @types/apollo-upload-client
Bumps apollo-upload-client and @types/apollo-upload-client. These dependencies needed to be updated together.
Updates apollo-upload-client from 17.0.0 to 18.0.1
Release notes
Sourced from apollo-upload-client's releases.
Version 18.0.1
Patch
- Corrected the function
createUploadLinkoptionuritype, fixing #316.- Prefixed unused parameters with
_, fixing #317.- Fixed a typo in the changelog entry for v18.0.0.
Version 18.0.0
Major
Updated Node.js support to
^18.15.0 || >=20.4.0.Updated the
@apollo/clientpeer dependency to^3.8.0.Updated the
extract-filesdependency to v13.
React Native is no longer supported out of the box.
The class
ReactNativeFileis no longer exported, or matched by the functionisExtractableFile.This class was bloating non React Native environments with an extra module, increasing bundle sizes when building and adding an extra step to ESM loading waterfalls in browsers.
It’s the responsibility of Facebook to adhere to web standards and implement spec-complaint
Blob,File, andFormDataglobals in the React Native environment.To migrate, React Native projects that are unable to use the standard globals can manually implement a class
ReactNativeFileand match it with a custom functionisReactNativeFilefor use with the functioncreateUploadLinkoptionisExtractableFile.“Plain” objects in the GraphQL operation that aren’t
Objectinstances (e.g.Object.create(null)) are now also deep cloned when searching for extractable files.Updated dev dependencies, some of which require newer Node.js versions than previously supported.
Use the Node.js test runner API and remove the dev dependency
test-director.Refactored tests to use the standard
AbortController,AbortSignal,File,FormData, andResponseAPIs available in modern Node.js and removed the dev dependenciesabort-controller,formdata-node, andnode-fetch.Public modules are now individually listed in the package
filesandexportsfields.Removed the package main index module; deep imports must be used. To migrate:
- import { - createUploadLink, - formDataAppendFile, - isExtractableFile - } from "apollo-upload-client"; + import createUploadLink from "apollo-upload-client/createUploadLink.mjs"; + import formDataAppendFile from "apollo-upload-client/formDataAppendFile.mjs"; + import isExtractableFile from "apollo-upload-client/isExtractableFile.mjs";Shortened public module deep import paths, removing the
/public/. To migrate:- import createUploadLink from "apollo-upload-client/public/createUploadLink.js"; + import createUploadLink from "apollo-upload-client/createUploadLink.mjs";
- import formDataAppendFile from "apollo-upload-client/public/formDataAppendFile.js";
... (truncated)
Changelog
Sourced from apollo-upload-client's changelog.
18.0.1
Patch
- Corrected the function
createUploadLinkoptionuritype, fixing #316.- Prefixed unused parameters with
_, fixing #317.- Fixed a typo in the changelog entry for v18.0.0.
18.0.0
Major
Updated Node.js support to
^18.15.0 || >=20.4.0.Updated the
@apollo/clientpeer dependency to^3.8.0.Updated the
extract-filesdependency to v13.
React Native is no longer supported out of the box.
The class
ReactNativeFileis no longer exported, or matched by the functionisExtractableFile.This class was bloating non React Native environments with an extra module, increasing bundle sizes when building and adding an extra step to ESM loading waterfalls in browsers.
It’s the responsibility of Facebook to adhere to web standards and implement spec-complaint
Blob,File, andFormDataglobals in the React Native environment.To migrate, React Native projects that are unable to use the standard globals can manually implement a class
ReactNativeFileand match it with a custom functionisReactNativeFilefor use with the functioncreateUploadLinkoptionisExtractableFile.“Plain” objects in the GraphQL operation that aren’t
Objectinstances (e.g.Object.create(null)) are now also deep cloned when searching for extractable files.Updated dev dependencies, some of which require newer Node.js versions than previously supported.
Use the Node.js test runner API and remove the dev dependency
test-director.Refactored tests to use the standard
AbortController,AbortSignal,File,FormData, andResponseAPIs available in modern Node.js and removed the dev dependenciesabort-controller,formdata-node, andnode-fetch.Public modules are now individually listed in the package
filesandexportsfields.Removed the package main index module; deep imports must be used. To migrate:
- import { - createUploadLink, - formDataAppendFile, - isExtractableFile - } from "apollo-upload-client"; + import createUploadLink from "apollo-upload-client/createUploadLink.mjs"; + import formDataAppendFile from "apollo-upload-client/formDataAppendFile.mjs"; + import isExtractableFile from "apollo-upload-client/isExtractableFile.mjs";Shortened public module deep import paths, removing the
/public/. To migrate:- import createUploadLink from "apollo-upload-client/public/createUploadLink.js"; + import createUploadLink from "apollo-upload-client/createUploadLink.mjs";
... (truncated)
Commits
5e6d5c1Version 18.0.1.0274489Correct the functioncreateUploadLinkoptionuritype.5c21ed6Prefix unused parameters with_.f44feafFix a typo in the changelog entry for v18.0.0.0b7551cVersion 18.0.0.dc323d3Update thepackage.jsonfieldrepositoryto conform to new npm requirements.e3db4c2Add a new optionprintfor the functioncreateUploadLink.37dbf10Refactor example code in the readme.4a60069Integrat the ESLint plugineslint-plugin-optimal-modules.1490df4Use the Node.js test runner API and remove the dev dependencytest-director.- Additional commits viewable in compare view
Updates @types/apollo-upload-client from 17.0.5 to 18.0.0
Commits
- See full diff in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.