gregrickaby / nextjs-wordpress

💀 It's headless WordPress!
https://nextjswp.com
MIT License
245 stars 50 forks source link

Bump @apollo/client from 3.7.17 to 3.8.0 #105

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps @apollo/client from 3.7.17 to 3.8.0.

Release notes

Sourced from @​apollo/client's releases.

v3.8.0

Minor Changes

Fetching with Suspense 🎉

  • #10323 64cb88a4b Thanks @​jerelmiller! - Add support for React suspense with a new useSuspenseQuery hook.

    useSuspenseQuery initiates a network request and causes the component calling it to suspend while the request is in flight. It can be thought of as a drop-in replacement for useQuery that allows you to take advantage of React's concurrent features while fetching during render.

    Consider a Dog component that fetches and renders some information about a dog named Mozzarella:

    import { Suspense } from 'react';
    import { gql, TypedDocumentNode, useSuspenseQuery } from '@apollo/client';
    

    interface Data { dog: { id: string; name: string; }; }

    interface Variables { name: string; }

    const GET_DOG_QUERY: TypedDocumentNode<Data, Variables> = gqlquery GetDog($name: String) { dog(name: $name) { id name } };

    function App() { return ( <Suspense fallback={<div>Loading...</div>}> <Dog name="Mozzarella" /> </Suspense> ); }

    function Dog({ name }: { name: string }) { const { data } = useSuspenseQuery(GET_DOG_QUERY, { variables: { name }, });

... (truncated)

Changelog

Sourced from @​apollo/client's changelog.

3.8.0

Minor Changes

Fetching with Suspense 🎉

  • #10323 64cb88a4b Thanks @​jerelmiller! - Add support for React suspense with a new useSuspenseQuery hook.

    useSuspenseQuery initiates a network request and causes the component calling it to suspend while the request is in flight. It can be thought of as a drop-in replacement for useQuery that allows you to take advantage of React's concurrent features while fetching during render.

    Consider a Dog component that fetches and renders some information about a dog named Mozzarella:

    import { Suspense } from 'react';
    import { gql, TypedDocumentNode, useSuspenseQuery } from '@apollo/client';
    

    interface Data { dog: { id: string; name: string; }; }

    interface Variables { name: string; }

    const GET_DOG_QUERY: TypedDocumentNode<Data, Variables> = gqlquery GetDog($name: String) { dog(name: $name) { id name } };

    function App() { return ( <Suspense fallback={<div>Loading...</div>}> <Dog name="Mozzarella" /> </Suspense> ); }

    function Dog({ name }: { name: string }) { const { data } = useSuspenseQuery(GET_DOG_QUERY, { variables: { name },

... (truncated)

Commits
  • 1ac6dda Version Packages (#11126)
  • 1429d9c Create GitHub release for prereleases (#11128)
  • f54b86d Merge pull request #10340 from apollographql/release-3.8
  • ec1b864 chore: exiting prerelease mode
  • e7b71ae Merge branch 'main' into release-3.8
  • f39b86e Refactor tests to remove RefetchFunction/FetchMoreFunction type helpers (#11119)
  • c6c489b Version Packages (rc) (#11088)
  • b4aefcf Adds support for skipToken in options for useSuspenseQuery and `useBackgr...
  • 78739e3 Enforce export type for all type-level exports. (#11115)
  • a803061 git-blame-ignore prettier PR
  • 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)
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-wordpress ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 5:40pm
dependabot[bot] commented 1 year ago

Looks like @apollo/client is up-to-date now, so this is no longer needed.