CTFNote
CTFNote copied to clipboard
Bump apollo-upload-client and @types/apollo-upload-client in /front
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
createUploadLink
optionuri
type, 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/client
peer dependency to^3.8.0
.Updated the
extract-files
dependency to v13.
React Native is no longer supported out of the box.
The class
ReactNativeFile
is 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
, andFormData
globals in the React Native environment.To migrate, React Native projects that are unable to use the standard globals can manually implement a class
ReactNativeFile
and match it with a custom functionisReactNativeFile
for use with the functioncreateUploadLink
optionisExtractableFile
.“Plain” objects in the GraphQL operation that aren’t
Object
instances (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
, andResponse
APIs available in modern Node.js and removed the dev dependenciesabort-controller
,formdata-node
, andnode-fetch
.Public modules are now individually listed in the package
files
andexports
fields.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
createUploadLink
optionuri
type, 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/client
peer dependency to^3.8.0
.Updated the
extract-files
dependency to v13.
React Native is no longer supported out of the box.
The class
ReactNativeFile
is 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
, andFormData
globals in the React Native environment.To migrate, React Native projects that are unable to use the standard globals can manually implement a class
ReactNativeFile
and match it with a custom functionisReactNativeFile
for use with the functioncreateUploadLink
optionisExtractableFile
.“Plain” objects in the GraphQL operation that aren’t
Object
instances (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
, andResponse
APIs available in modern Node.js and removed the dev dependenciesabort-controller
,formdata-node
, andnode-fetch
.Public modules are now individually listed in the package
files
andexports
fields.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
5e6d5c1
Version 18.0.1.0274489
Correct the functioncreateUploadLink
optionuri
type.5c21ed6
Prefix unused parameters with_
.f44feaf
Fix a typo in the changelog entry for v18.0.0.0b7551c
Version 18.0.0.dc323d3
Update thepackage.json
fieldrepository
to conform to new npm requirements.e3db4c2
Add a new optionprint
for the functioncreateUploadLink
.37dbf10
Refactor example code in the readme.4a60069
Integrat the ESLint plugineslint-plugin-optimal-modules
.1490df4
Use 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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)