pmb0 / express-tsx-views

Server-side JSX/TSX rendering for your express or NestJS application -- without Babel πŸš€
MIT License
34 stars 5 forks source link

chore(deps): update dependency @apollo/client to v3.6.1 #261

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@apollo/client (source) 3.5.10 -> 3.6.1 age adoption passing confidence

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` of new options), to supplement the existing `refetch` method. Note that `reobserve` permanently updates the `variables` and other options of the `ObservableQuery`, unlike `refetch({ ...variables })`, which does not save those `variables`. - The internal use of `options.fetchBlockingPromise` by `useQuery` and `useLazyQuery` may slightly delay the delivery of network results, compared to previous versions of Apollo Client. Since network results are already delivered asynchronously, these timing differences should not be disruptive in most cases. Nevertheless, please open an issue if the timing differences are a problem for you (and you have no easy workaround).
[@​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 ``, which [double-renders components in development](https://togithub.com/reactwg/react-18/discussions/96). While this double-rendering always results in calling `useQuery` twice, forcing Apollo Client to create and then discard an unnecessary `ObservableQuery` object, we now have multiple defenses in place against executing any network queries for the unused `ObservableQuery` objects. In upcoming v3.6.x and v3.7 (beta) releases, we will be completely overhauling our server-side rendering utilities (`getDataFromTree` et al.), and introducing suspenseful versions of our hooks, to take full advantage of the new patterns React 18+ enables for data management libraries like Apollo Client. ##### Improvements - Allow `BatchLink` to cancel queued and in-flight operations.
[@​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.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2256049054

Warning: This coverage report may be inaccurate.

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.

Details


Totals Coverage Status
Change from base Build 2256044214: 0.0%
Covered Lines: 106
Relevant Lines: 108

πŸ’› - Coveralls