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.8.1 to 3.10.5 in /frontend #919

Open
wants to merge 1 commit into
base: STAG
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 17, 2024

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 7fb7939 Thanks @​phryneas! - switch useRenderGuard to an approach not accessing React's internals

  • #11511 6536369 Thanks @​phryneas! - useLoadableQuery: ensure that loadQuery is updated if the ApolloClient instance changes

  • #11860 8740f19 Thanks @​alessbell! - Fixes #11849 by reevaluating window.fetch each time BatchHttpLink uses it, if not configured via options.fetch. Takes the same approach as PR #8603 which fixed the same issue in HttpLink.

  • #11852 d502a69 Thanks @​phryneas! - Fix a bug where calling the useMutation reset function would point the hook to an outdated client reference.

  • #11329 3d164ea Thanks @​PaLy! - Fix graphQLErrors in Error Link if networkError.result is an empty string

  • #11852 d502a69 Thanks @​phryneas! - Prevent writing to a ref in render in useMutation. As a result, you might encounter problems in the future if you call the mutation's execute function during render. Please note that this was never supported behavior, and we strongly recommend against it.

  • #11848 ad63924 Thanks @​phryneas! - Ensure covariant behavior: MockedResponse<X,Y> should be assignable to MockedResponse

  • #11851 45c47be Thanks @​phryneas! - Avoid usage of useRef in useInternalState to prevent ref access in render.

  • #11877 634d91a Thanks @​phryneas! - Add missing name to tuple member (fix TS5084)

  • #11851 45c47be Thanks @​phryneas! - Fix a bug where useLazyQuery would not pick up a client change.

v3.10.4

Patch Changes

  • #11838 8475346 Thanks @​alex-kinokon! - Don’t prompt for DevTools installation for browser extension page

  • #11839 6481fe1 Thanks @​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 86984f2 Thanks @​jerelmiller! - Honor the @nonreactive directive when using cache.watchFragment or the useFragment hook to avoid rerendering when using these directives.

  • #11824 47ad806 Thanks @​phryneas! - Create branded QueryRef type without exposed properties.

    This change deprecates QueryReference in favor of a QueryRef type that doesn't expose any properties. This change also updates preloadQuery to return a new PreloadedQueryRef type, which exposes the toPromise function as it does today. This means that query refs produced by useBackgroundQuery and useLoadableQuery now return QueryRef types that do not have access to a toPromise function, 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 toPromise function that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime, toPromise is 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 the PreloadedQueryRef use case.

    Migration is as simple as replacing all references to QueryReference with QueryRef, 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<TData> }) {
    
    
    function Component({ queryRef }: { queryRef: QueryRef<TData> }) {
    // ...

... (truncated)

Changelog

Sourced from @​apollo/client's changelog.

3.10.5

Patch Changes

  • #11888 7fb7939 Thanks @​phryneas! - switch useRenderGuard to an approach not accessing React's internals

  • #11511 6536369 Thanks @​phryneas! - useLoadableQuery: ensure that loadQuery is updated if the ApolloClient instance changes

  • #11860 8740f19 Thanks @​alessbell! - Fixes #11849 by reevaluating window.fetch each time BatchHttpLink uses it, if not configured via options.fetch. Takes the same approach as PR #8603 which fixed the same issue in HttpLink.

  • #11852 d502a69 Thanks @​phryneas! - Fix a bug where calling the useMutation reset function would point the hook to an outdated client reference.

  • #11329 3d164ea Thanks @​PaLy! - Fix graphQLErrors in Error Link if networkError.result is an empty string

  • #11852 d502a69 Thanks @​phryneas! - Prevent writing to a ref in render in useMutation. As a result, you might encounter problems in the future if you call the mutation's execute function during render. Please note that this was never supported behavior, and we strongly recommend against it.

  • #11848 ad63924 Thanks @​phryneas! - Ensure covariant behavior: MockedResponse<X,Y> should be assignable to MockedResponse

  • #11851 45c47be Thanks @​phryneas! - Avoid usage of useRef in useInternalState to prevent ref access in render.

  • #11877 634d91a Thanks @​phryneas! - Add missing name to tuple member (fix TS5084)

  • #11851 45c47be Thanks @​phryneas! - Fix a bug where useLazyQuery would not pick up a client change.

3.10.4

Patch Changes

  • #11838 8475346 Thanks @​alex-kinokon! - Don’t prompt for DevTools installation for browser extension page

  • #11839 6481fe1 Thanks @​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 86984f2 Thanks @​jerelmiller! - Honor the @nonreactive directive when using cache.watchFragment or the useFragment hook to avoid rerendering when using these directives.

  • #11824 47ad806 Thanks @​phryneas! - Create branded QueryRef type without exposed properties.

    This change deprecates QueryReference in favor of a QueryRef type that doesn't expose any properties. This change also updates preloadQuery to return a new PreloadedQueryRef type, which exposes the toPromise function as it does today. This means that query refs produced by useBackgroundQuery and useLoadableQuery now return QueryRef types that do not have access to a toPromise function, 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 toPromise function that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime, toPromise is 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 the PreloadedQueryRef use case.

    Migration is as simple as replacing all references to QueryReference with QueryRef, 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<TData> }) {

... (truncated)

Commits

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.8.1 to 3.10.5.
- [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] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 17, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant