Closed renovate[bot] closed 2 years ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 2256044214: | 0.0% |
Covered Lines: | 106 |
Relevant Lines: | 108 |
This PR contains the following updates:
3.5.10
->3.6.1
Release Notes
apollographql/apollo-client
### [`v3.6.1`](https://togithub.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#Apollo-Client-361-2022-04-28) [Compare Source](https://togithub.com/apollographql/apollo-client/compare/v3.6.0...v3.6.1) ##### Bug Fixes - Remove recently-added, internal `fetchBlockingPromise` option from the `WatchQueryOptions` interface, due to regressions.[@benjamn](https://togithub.com/benjamn) in [#9504](https://togithub.com/apollographql/apollo-client/pull/9504) ### [`v3.6.0`](https://togithub.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#Apollo-Client-360-2022-04-26) [Compare Source](https://togithub.com/apollographql/apollo-client/compare/v3.5.10...v3.6.0) ##### Potentially disruptive changes - Calling `fetchMore` for queries using the `cache-and-network` or `network-only` fetch policies will no longer trigger additional network requests when cache results are complete. Instead, those complete cache results will be delivered as if using the `cache-first` fetch policy.
[@benjamn](https://togithub.com/benjamn) in [#9504](https://togithub.com/apollographql/apollo-client/pull/9504) - Reimplement `useQuery` and `useLazyQuery` to use the [proposed `useSyncExternalStore` API](https://togithub.com/reactwg/react-18/discussions/86) from React 18.
[@brainkim](https://togithub.com/brainkim) and [@benjamn](https://togithub.com/benjamn) in [#8785](https://togithub.com/apollographql/apollo-client/pull/8785) and [#9596](https://togithub.com/apollographql/apollo-client/pull/9596) - Fixed bug where the `useLazyQuery` execution function would always use the `refetch` method of `ObservableQuery`, instead of properly reapplying the current `fetchPolicy` using the `reobserve` method.
[@benjamn](https://togithub.com/benjamn) in [#9564](https://togithub.com/apollographql/apollo-client/pull/9564) > Since this `reobserve` method is useful and used internally, we have now exposed it as `use[Lazy]Query(...).reobserve` (which optionally takes a `Partial
[@benjamn](https://togithub.com/benjamn) in [#9599](https://togithub.com/apollographql/apollo-client/pull/9599) ##### React 18 In both its `peerDependencies` and its internal implementation, Apollo Client v3.6 should no longer prevent you from updating to React 18 in your applications. Internally, we have refactored `useQuery` and `useLazyQuery` to be implemented in terms of React's new (shimmable) `useSyncExternalStore` hook, demonstrating Apollo Client can serve as an external store with a referentially stable, synchronous API, as needed by React. As part of this refactoring, we also improved the behavior of `useQuery` and `useLazyQuery` when used in `
[@PowerKiKi](https://togithub.com/PowerKiKi) and [@benjamn](https://togithub.com/benjamn) in [#9248](https://togithub.com/apollographql/apollo-client/pull/9248) - Add `GraphQLWsLink` in `@apollo/client/link/subscriptions`. This link is similar to the existing `WebSocketLink` in `@apollo/client/link/ws`, but uses the newer [`graphql-ws`](https://www.npmjs.com/package/graphql-ws) package and protocol instead of the older `subscriptions-transport-ws` implementation. This functionality was technically first released in `@apollo/client@3.5.10`, but semantically belongs in the 3.6.0 minor version. [@glasser](https://togithub.com/glasser) in [#9369](https://togithub.com/apollographql/apollo-client/pull/9369) - Allow passing `defaultOptions` to `useQuery` to avoid clobbering/resetting existing options when `useQuery` is called repeatedly.
[@benjamn](https://togithub.com/benjamn) in [#9563](https://togithub.com/apollographql/apollo-client/pull/9563), superseding [#9223](https://togithub.com/apollographql/apollo-client/pull/9223) - Provide additional context to `nextFetchPolicy` functions to assist with `fetchPolicy` transitions. More details can be found in the [`nextFetchPolicy` documentation](https://www.apollographql.com/docs/react/data/queries/#nextfetchpolicy).
[@benjamn](https://togithub.com/benjamn) in [#9222](https://togithub.com/apollographql/apollo-client/pull/9222) - Remove nagging deprecation warning about passing an `options.updateQuery` function to `fetchMore`.
[@benjamn](https://togithub.com/benjamn) in [#9504](https://togithub.com/apollographql/apollo-client/pull/9504) - Let `addTypenameToDocument` take any `ASTNode` (including `DocumentNode`, as before).
[@benjamn](https://togithub.com/benjamn) in [#9595](https://togithub.com/apollographql/apollo-client/pull/9595) - Set `useMutation` internal `isMounted` variable to `true` again when component remounted.
[@devpeerapong](https://togithub.com/devpeerapong) in [#9561](https://togithub.com/apollographql/apollo-client/pull/9561)
Configuration
π Schedule: "before 3am on Monday" (UTC).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.