fix(deps): update dependency apollo-upload-client to v19 #9697
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^17.0.0->^19.0.017.0.5->19.0.0Release Notes
jaydenseric/apollo-upload-client (apollo-upload-client)
v19.0.0Compare Source
Major
Updated Node.js support to
^20.9.0 || >=22.0.0.Use the TypeScript v5.5+ JSDoc tag
@importto import types in modules. To migrate: Upgrade TypeScript to v5.5+.Updated the peer dependency
@apollo/clientto^4.0.0, fixing #359.Added a new peer dependency
rxjsat^7.3.0. This is an Apollo Client v4 requirement.The function
createUploadLinkhas been removed and the upload terminating Apollo Link is now the exported classUploadHttpLinkthat extendsApolloLink. To migrate:Updated dev dependencies, some of which require newer Node.js versions than previously supported.
Minor
createUploadLinkoptionincludeUnusedVariablesdefaulting tofalseto toggle including unused GraphQL variables in the request (similar to the ApolloBaseHttpLinkoptionincludeUnusedVariables), via #348.Patch
createSignalIfSupported.Observerthat’s returned regardless of errors.npm runwithnode --run.actions/checkoutto v5.actions/setup-nodeto v4.npm runwithnode --run.noUnusedLocalsandnoUnusedParameters.File.ApolloLink.frominstead of the deprecated Apollo Link utility functionconcat.browserslistto match what’s documented in the readme.v18.0.1Compare Source
Patch
createUploadLinkoptionuritype, fixing #316._, fixing #317.v18.0.0Compare Source
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:
Shortened public module deep import paths, removing the
/public/. To migrate:The API is now ESM in
.mjsfiles instead of CJS in.jsfiles, accessible viaimportbut notrequire.Implemented TypeScript types via JSDoc comments.
Types published in
@types/apollo-upload-clientshould no longer be used.Projects must configure TypeScript to use types from the ECMAScript modules that have a
// @​ts-checkcomment:compilerOptions.allowJsshould betrue.compilerOptions.maxNodeModuleJsDepthshould be reasonably large, e.g.10.compilerOptions.moduleshould be"node16"or"nodenext".Internally, use the function
selectHttpOptionsAndBodyInternalthat was added in@apollo/clientv3.5.5.Minor
printfor the functioncreateUploadLink, to customize how the GraphQL query or mutation AST prints to a string for transport. It works like the same option forHttpLink.Patch
eslint-plugin-optimal-modules.typesscript.jsdoc-mddev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section.package.jsonfieldrepositoryto conform to new npm requirements.actions/checkoutto v4.actions/setup-nodeto v3.node:URL scheme for Node.js builtin module imports.headersthat as of@apollo/clientv3.7.0 is a null-prototype object, use the assertiondeepEqualinstead ofdeepStrictEqual.Configuration
📅 Schedule: Branch creation - "before 7am on Tuesday,before 7am on Wednesday" in timezone Australia/Sydney, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.