Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @apollo/client from 3.3.21 to 3.4.11 #772

Merged
merged 2 commits into from Sep 16, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 15, 2021

Bumps @apollo/client from 3.3.21 to 3.4.11.

Release notes

Sourced from @​apollo/client's releases.

3.4.0

Apollo Client 3.4.0

New documentation

Improvements

  • InMemoryCache now guarantees that any two result objects returned by the cache (from readQuery, readFragment, etc.) will be referentially equal (===) if they are deeply equal. Previously, === equality was often achievable for results for the same query, on a best-effort basis. Now, equivalent result objects will be automatically shared among the result trees of completely different queries. This guarantee is important for taking full advantage of optimistic updates that correctly guess the final data, and for "pure" UI components that can skip re-rendering when their input data are unchanged. @​benjamn in #7439

  • Mutations now accept an optional callback function called onQueryUpdated, which will be passed the ObservableQuery and Cache.DiffResult objects for any queries invalidated by cache writes performed by the mutation's final update function. Using onQueryUpdated, you can override the default FetchPolicy of the query, by (for example) calling ObservableQuery methods like refetch to force a network request. This automatic detection of invalidated queries provides an alternative to manually enumerating queries using the refetchQueries mutation option. Also, if you return a Promise from onQueryUpdated, the mutation will automatically await that Promise, rendering the awaitRefetchQueries option unnecessary. @​benjamn in #7827

  • Support client.refetchQueries as an imperative way to refetch queries, without having to pass options.refetchQueries to client.mutate. @​dannycochran in #7431

  • Improve standalone client.refetchQueries method to support automatic detection of queries needing to be refetched. @​benjamn in #8000

  • Fix remaining barriers to loading @apollo/client/core as native ECMAScript modules from a CDN like esm.run. Importing @apollo/client from a CDN will become possible once we move all React-related dependencies into @apollo/client/react in Apollo Client 4. @​benjamn in #8266

  • InMemoryCache supports a new method called batch, which is similar to performTransaction but takes named options rather than positional parameters. One of these named options is an onDirty(watch, diff) callback, which can be used to determine which watched queries were invalidated by the batch operation. @​benjamn in #7819

  • Allow merge: true field policy to merge Reference objects with non-normalized objects, and vice-versa. @​benjamn in #7778

  • Allow identical subscriptions to be deduplicated by default, like queries. @​jkossis in #6910

  • Always use POST request when falling back to sending full query with @apollo/client/link/persisted-queries. @​rieset in #7456

  • The FetchMoreQueryOptions type now takes two instead of three type parameters (<TVariables, TData>), thanks to using Partial<TVariables> instead of K extends typeof TVariables and Pick<TVariables, K>. @​ArnaudBarre in #7476

  • Pass variables and context to a mutation's update function. Note: The type of the update function is now named MutationUpdaterFunction rather than MutationUpdaterFn, since the older type was broken beyond repair. If you are using MutationUpdaterFn in your own code, please use MutationUpdaterFunction instead. @​jcreighton in #7902

  • A resultCacheMaxSize option may be passed to the InMemoryCache constructor to limit the number of result objects that will be retained in memory (to speed up repeated reads), and calling cache.reset() now releases all such memory. @​SofianHn in #8701

  • Fully remove result cache entries from LRU dependency system when the corresponding entities are removed from InMemoryCache by eviction, or by any other means. @​sofianhn and @​benjamn in #8147

  • Expose missing field errors in results.

... (truncated)

Changelog

Sourced from @​apollo/client's changelog.

Apollo Client 3.4.11

Bug Fixes

  • Fix Vite tree-shaking by calling the checkDEV() function (at least once) in the module that exports it, @apollo/client/utilities/globals/index.ts. @​benjamn in #8767

Improvements

  • Export PersistedQueryLink namespace from @apollo/client/link/persisted-queries. @​vedrani in #8761

Documentation

Apollo Client 3.4.10

Improvements

  • Warn when calling refetch({ variables }) instead of refetch(variables), except for queries that declare a variable named $variables (uncommon). @​benjamn in #8702

Bug Fixes

  • Fix ObservableQuery.getCurrentResult() returning cached data with certain fetch policies. @​brainkim in #8718

  • Prevent ssrMode/ssrForceFetchDelay from causing queries to hang. @​brainkim in #8709

  • Import @apollo/client/utilities/globals internally wherever __DEV__ is used, not just in @apollo/client/**/index.js entry points. @​benjamn in #8720

Apollo Client 3.4.9

Bug Fixes

  • Fix unhandled Promise rejection warnings/errors whose message is Observable cancelled prematurely. @​benjamn in #8676

  • Enforce that __DEV__ is polyfilled by every @apollo/client/* entry point that uses it. This build step considers not only explicit __DEV__ usage but also __DEV__ references injected near invariant(...) and new InvariantError(...) expressions. @​benjamn in #8689

Apollo Client 3.4.8

Bug Fixes

  • Fix error thrown by nested keyFields: ["a", ["b", "c"], "d"] type policies when writing results into the cache where any of the key fields (.a, .a.b, .a.c, or .d) have been renamed by query field alias syntax.

... (truncated)

Commits
  • abdd26e Bump @​apollo/client npm version to 3.4.11.
  • 86b67d8 Prep CHANGELOG.md for 3.4.11 patch release.
  • e0ea45c Guide tree-shaking by calling checkDEV() in utilities/globals/index.ts (#...
  • f73e7be Upgrade docs theme for new search experience (#8768)
  • b208f74 Export PersistedQueryLink namespace (#8761)
  • ba0b0c0 Fix typo in mutations.mdx (#8757)
  • 2535ecc Bump object-path from 0.11.5 to 0.11.7 in /docs (#8740)
  • 201ff9a Slight maintainer list adjustments
  • 7cc0c6c chore(deps): update dependency @​types/react to v17.0.20
  • ac8d7fa chore(deps): update dependency @​graphql-tools/schema to v8.2.0
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 15, 2021
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/apollo/client-3.4.11 branch 2 times, most recently from 8db2259 to 19fb51d Compare September 15, 2021 23:49
@kinow
Copy link
Member

kinow commented Sep 16, 2021

@dependabot rebase

Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.3.21 to 3.4.11.
- [Release notes](https://github.com/apollographql/apollo-client/releases)
- [Changelog](https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md)
- [Commits](apollographql/apollo-client@v3.3.21...v3.4.11)

---
updated-dependencies:
- dependency-name: "@apollo/client"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/apollo/client-3.4.11 branch from 19fb51d to e97f39d Compare September 16, 2021 00:31
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2021

Codecov Report

Merging #772 (4354b73) into master (61a58b9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #772   +/-   ##
=======================================
  Coverage   90.97%   90.97%           
=======================================
  Files          84       84           
  Lines        1673     1673           
  Branches      105      105           
=======================================
  Hits         1522     1522           
  Misses        121      121           
  Partials       30       30           
Flag Coverage Δ
e2e 77.88% <ø> (ø)
unittests 81.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61a58b9...4354b73. Read the comment docs.

@kinow kinow merged commit 8aa0d68 into master Sep 16, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/apollo/client-3.4.11 branch September 16, 2021 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants