refactor: upgrade @apollo/client from 3.4.17 to 3.5.7 #7797
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.
Snyk has created this PR to upgrade @apollo/client from 3.4.17 to 3.5.7.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @apollo/client
-
3.5.7 - 2022-01-10
-
3.5.6 - 2021-12-07
-
3.5.5 - 2021-11-23
-
3.5.4 - 2021-11-19
- Remove
-
-
-
-
-
- Fix useMutation execute function returning non-identical execution functions when passing similar options.
- Remove npm from dependencies, and avoid referencing graphql-js enum value.
-
-
-
-
-
-
-
-
-
-
-
-
- The
- The
- The
- Calling
- Calling the
- Calling
- Prevent
-
3.5.3 - 2021-11-17
-
3.5.2 - 2021-11-10
-
3.5.1 - 2021-11-09
-
3.5.0 - 2021-11-08
-
3.5.0-rc.3 - 2021-11-03
-
3.5.0-rc.2 - 2021-10-22
-
3.5.0-rc.1 - 2021-10-04
-
3.5.0-rc.0 - 2021-10-04
-
3.5.0-beta.18 - 2021-10-01
-
3.5.0-beta.17 - 2021-09-27
-
3.5.0-beta.16 - 2021-09-20
-
3.5.0-beta.15 - 2021-09-17
-
3.5.0-beta.14 - 2021-09-17
-
3.5.0-beta.13 - 2021-09-13
-
3.5.0-beta.12 - 2021-09-10
-
3.5.0-beta.11 - 2021-08-30
-
3.5.0-beta.10 - 2021-08-30
-
3.5.0-beta.9 - 2021-08-26
-
3.5.0-beta.8 - 2021-08-24
-
3.5.0-beta.7 - 2021-08-23
-
3.5.0-beta.6 - 2021-08-18
-
3.5.0-beta.5 - 2021-08-09
-
3.5.0-beta.4 - 2021-08-04
-
3.5.0-beta.3 - 2021-08-03
-
3.5.0-beta.2 - 2021-08-02
-
3.5.0-beta.1 - 2021-07-29
-
3.5.0-beta.0 - 2021-07-28
-
3.4.17 - 2021-11-08
from @apollo/client GitHub release notesBump @ apollo/client npm version to 3.5.7.
Bump @ apollo/client npm version to 3.5.6.
Bump @ apollo/client npm version to 3.5.5.
Apollo Client 3.5.5 (2021-11-23)
Bug Fixes
printer: Printerpositional parameter from publicly-exportedselectHttpOptionsAndBodyfunction, whose addition in #8699 was a breaking change (starting in Apollo Client 3.5.0) for direct consumers ofselectHttpOptionsAndBody.@ benjamn in #9103
Apollo Client 3.5.4 (2021-11-19)
Notices
[Relevant if you use Apollo Client with React Native] Since Apollo Client v3.5.0, CommonJS bundles provided by
@ apollo/clientuse a.cjsfile extension rather than.cjs.js, so Node.js won't interpret them as ECMAScript modules. While this change should be an implementation detail, it may cause problems for the Metro bundler used by React Native, whoseresolver.sourceExtsconfiguration does not include thecjsextension by default.As a workaround until this issue is resolved, you can configure Metro to understand the
.cjsfile extension by creating ametro.config.jsfile in the root of your React Native project:Improvements
Restore the ability to pass
onError()andonCompleted()to the mutation execution function.@ brainkim in #9076
Work around webpack 5 errors of the form
by ensuring
import ... from 'ts-invariant/process'is internally written toimport ... from 'ts-invariant/process/index.js'.@ benjamn in #9083
Apollo Client 3.5.3 (2021-11-17)
Avoid rewriting non-relative imported module specifiers in
config/rewriteModuleIds.tsscript, thereby allowing bundlers to resolve those imports as they see fit.@ benjamn in #9073
Ensure only current file is matched when running VSCode debugger.
@ eps1lon in #9050
Apollo Client 3.5.2 (2021-11-10)
@ brainkim in #9093
Apollo Client 3.5.1 (2021-11-09)
@ brainkim in #9030
Apollo Client 3.5.0 (2021-11-08)
Improvements
Add
updateQueryandupdateFragmentmethods toApolloCache, simplifying commonreadQuery/writeQuerycache update patterns.@ wassim-k in #8382
Field directives and their arguments can now be included along with field argument names when using field policy
keyArgs: [...]notation. For example, if you have aQuery.feedfield that takes an argument calledtypeand uses a@ connection(key:...)directive to keepfeeddata from different queries separate within the cache, you might configure both using the followingInMemoryCachefield policy:@ benjamn in #8678
Report single
MissingFieldErrorinstead of a potentially very largeMissingFieldError[]array for incomplete cache reads, improving performance and memory usage.@ benjamn in #8734
When writing results into
InMemoryCache, each written object is now identified usingpolicies.identifyafter traversing the fields of the object (rather than before), simplifying identification and reducing duplicate work. If you have customkeyFieldsfunctions, they still receive the raw result object as their first parameter, but theKeyFieldsContextparameter now providescontext.storeObject(theStoreObjectjust processed byprocessSelectionSet) andcontext.readField(a helper function for reading fields fromcontext.storeObjectand anyReferences it might contain, similar toreadFieldforread,merge, andcache.modifyfunctions).@ benjamn in #8996
Ensure
cache.identifynever throws when primary key fields are missing, and include the source object in the error message whenkeyFieldsprocessing fails.@ benjamn in #8679
The
HttpLinkconstructor now accepts an optionalprintfunction that can be used to customize how GraphQLDocumentNodeobjects are transformed back into strings before they are sent over the network.@ sarahgp in #8699
Make
@ apollo/client/testinga fully-fledged, independent entry point, instead of re-exporting@ apollo/client/utilities/testing(which was never an entry point and no longer exists).@ benjamn in #8769
A new nested entry point called
@ apollo/client/testing/corehas been created. Importing from this entry point instead of@ apollo/client/testingexcludes any React-related dependencies.@ wassim-k in #8687
Make
cache.batchreturn the result of calling theoptions.updatefunction.@ benjamn in #8696
The
NetworkErrorandErrorResponsetypes have been changed to align more closely.@ korywka in #8424
Include
graphql@16in peer deps.@ brainkim in #8997
Update
zen-observable-tsto eliminate transitive dependency on@ types/zen-observable.@ benjamn in #8695
React Refactoring
Improvements (due to @ brainkim in #8875):
useLazyQueryfunction now returns a promise with the result.useMutationresult now exposes a method which can be reset.Bug Fixes (due to @ brainkim in #8596):
useQueryanduseLazyQueryhooks will now haveObservableQuerymethods defined consistently.useLazyQuerymethods likestartPollingwill start the query.useLazyQueryexecution function will now behave more likerefetch.previousDatawill be preserved.standbyfetchPolicies will now act likeskip: truemore consistently.refetchon a skipped query will have no effect (issue #8270).onErrorandonCompletedfunctions from firing continuously, and improving their polling behavior.Bump @ apollo/client npm version to 3.5.3.
Version bump; prep for publish
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs