-
Notifications
You must be signed in to change notification settings - Fork 69
Bump @apollo/client from 3.8.1 to 3.10.5 in /frontend#919
Bump @apollo/client from 3.8.1 to 3.10.5 in /frontend#919dependabot[bot] wants to merge 1 commit intoSTAGfrom
Conversation
Bumps @apollo/client from 3.8.1 to 3.10.5.
Release notes
Sourced from @ apollo/client's releases.
v3.10.5
Patch Changes
#11888
7fb7939Thanks@ phryneas! - switchuseRenderGuardto an approach not accessing React's internals#11511
6536369Thanks@ phryneas! -useLoadableQuery: ensure thatloadQueryis updated if the ApolloClient instance changes#11860
8740f19Thanks@ alessbell! - Fixes #11849 by reevaluatingwindow.fetcheach timeBatchHttpLinkuses it, if not configured viaoptions.fetch. Takes the same approach as PR #8603 which fixed the same issue inHttpLink.#11852
d502a69Thanks@ phryneas! - Fix a bug where calling theuseMutationresetfunction would point the hook to an outdatedclientreference.#11329
3d164eaThanks@ PaLy! - Fix graphQLErrors in Error Link if networkError.result is an empty string#11852
d502a69Thanks@ phryneas! - Prevent writing to a ref in render inuseMutation. As a result, you might encounter problems in the future if you call the mutation'sexecutefunction during render. Please note that this was never supported behavior, and we strongly recommend against it.#11848
ad63924Thanks@ phryneas! - Ensure covariant behavior:MockedResponseshould be assignable toMockedResponse#11851
45c47beThanks@ phryneas! - Avoid usage of useRef in useInternalState to prevent ref access in render.#11877
634d91aThanks@ phryneas! - Add missing name to tuple member (fix TS5084)#11851
45c47beThanks@ phryneas! - Fix a bug whereuseLazyQuerywould not pick up a client change.v3.10.4
Patch Changes
#11838
8475346Thanks@ alex-kinokon! - Don't prompt for DevTools installation for browser extension page#11839
6481fe1Thanks@ jerelmiller! - Fix a regression in 3.9.5 where a merge function that returned an incomplete result would not allow the client to refetch in order to fulfill the query.#11844
86984f2Thanks@ jerelmiller! - Honor the@nonreactivedirective when usingcache.watchFragmentor theuseFragmenthook to avoid rerendering when using these directives.#11824
47ad806Thanks@ phryneas! - Create brandedQueryReftype without exposed properties.This change deprecates
QueryReferencein favor of aQueryReftype that doesn't expose any properties. This change also updatespreloadQueryto return a newPreloadedQueryReftype, which exposes thetoPromisefunction as it does today. This means that query refs produced byuseBackgroundQueryanduseLoadableQuerynow returnQueryReftypes that do not have access to atoPromisefunction, which was never meant to be used in combination with these hooks.While we tend to avoid any types of breaking changes in patch releases as this, this change was necessary to support an upcoming version of the React Server Component integration, which needed to omit the
toPromisefunction that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime,toPromiseis still present on all queryRefs currently created by this package - but we strongly want to discourage you from accessing it in all cases except for thePreloadedQueryRefuse case.Migration is as simple as replacing all references to
QueryReferencewithQueryRef, so it should be possible to do this with a search & replace in most code bases:}) { function Component({ queryRef }: { queryRef: QueryRef}) { // ...">-import { QueryReference } from '@apollo/client'
+import { QueryRef } from '@apollo/client'
function Component({ queryRef }: { queryRef: QueryReference}) {
function Component({ queryRef }: { queryRef: QueryRef}) {
// ...
... (truncated)
Changelog
Sourced from @ apollo/client's changelog.
3.10.5
Patch Changes
#11888
7fb7939Thanks@ phryneas! - switchuseRenderGuardto an approach not accessing React's internals#11511
6536369Thanks@ phryneas! -useLoadableQuery: ensure thatloadQueryis updated if the ApolloClient instance changes#11860
8740f19Thanks@ alessbell! - Fixes #11849 by reevaluatingwindow.fetcheach timeBatchHttpLinkuses it, if not configured viaoptions.fetch. Takes the same approach as PR #8603 which fixed the same issue inHttpLink.#11852
d502a69Thanks@ phryneas! - Fix a bug where calling theuseMutationresetfunction would point the hook to an outdatedclientreference.#11329
3d164eaThanks@ PaLy! - Fix graphQLErrors in Error Link if networkError.result is an empty string#11852
d502a69Thanks@ phryneas! - Prevent writing to a ref in render inuseMutation. As a result, you might encounter problems in the future if you call the mutation'sexecutefunction during render. Please note that this was never supported behavior, and we strongly recommend against it.#11848
ad63924Thanks@ phryneas! - Ensure covariant behavior:MockedResponseshould be assignable toMockedResponse#11851
45c47beThanks@ phryneas! - Avoid usage of useRef in useInternalState to prevent ref access in render.#11877
634d91aThanks@ phryneas! - Add missing name to tuple member (fix TS5084)#11851
45c47beThanks@ phryneas! - Fix a bug whereuseLazyQuerywould not pick up a client change.3.10.4
Patch Changes
#11838
8475346Thanks@ alex-kinokon! - Don't prompt for DevTools installation for browser extension page#11839
6481fe1Thanks@ jerelmiller! - Fix a regression in 3.9.5 where a merge function that returned an incomplete result would not allow the client to refetch in order to fulfill the query.#11844
86984f2Thanks@ jerelmiller! - Honor the@nonreactivedirective when usingcache.watchFragmentor theuseFragmenthook to avoid rerendering when using these directives.#11824
47ad806Thanks@ phryneas! - Create brandedQueryReftype without exposed properties.This change deprecates
QueryReferencein favor of aQueryReftype that doesn't expose any properties. This change also updatespreloadQueryto return a newPreloadedQueryReftype, which exposes thetoPromisefunction as it does today. This means that query refs produced byuseBackgroundQueryanduseLoadableQuerynow returnQueryReftypes that do not have access to atoPromisefunction, which was never meant to be used in combination with these hooks.While we tend to avoid any types of breaking changes in patch releases as this, this change was necessary to support an upcoming version of the React Server Component integration, which needed to omit the
toPromisefunction that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime,toPromiseis still present on all queryRefs currently created by this package - but we strongly want to discourage you from accessing it in all cases except for thePreloadedQueryRefuse case.Migration is as simple as replacing all references to
QueryReferencewithQueryRef, so it should be possible to do this with a search & replace in most code bases:}) {">-import { QueryReference } from '@apollo/client'
+import { QueryRef } from '@apollo/client'
function Component({ queryRef }: { queryRef: QueryReference}) {
... (truncated)
Commits
a739dfdVersion Packages (#11855)e41580bRevert "Update router terminology (#11885)" (#11892)5f5326bdocs: add graphql-tag-swc-plugin to performance docs (#11884)3d164eafix: graphQLErrors in Error Link if networkError.result is an empty string (#...1aca223Update router terminology (#11885)3e5e770chore(deps-dev): bump braces from 3.0.2 to 3.0.3 (#11887)7fb7939switchuseRenderGuardto an approach not accessing React's internals (#11888)6536369enablereact-hookslint rules (#11511)08dbc02use circleci-browsersimage to save some install time (#11889)6ca5ef4start testing with React 19 (#11883)- Additional commits viewable 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 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 showwill show all of the ignore conditions of the specified dependencyignore conditions @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)
- [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.8.1...v3.10.5)
---
updated-dependencies:
- dependency-name: "@apollo/client"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot]