dotansimha / graphql-code-generator

A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
https://the-guild.dev/graphql/codegen/
MIT License
10.81k stars 1.32k forks source link

fix(deps): update dependency swr to v2.2.5 #10099

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
swr (source) 2.1.5 -> 2.2.5 age adoption passing confidence

Release Notes

vercel/swr (swr) ### [`v2.2.5`](https://togithub.com/vercel/swr/releases/tag/v2.2.5) [Compare Source](https://togithub.com/vercel/swr/compare/v2.2.4...v2.2.5) ##### Patches - types: isLoading typed as boolean when using fallbackData ([#​2866](https://togithub.com/vercel/swr/issues/2866)) by [@​yjrhgvbn](https://togithub.com/yjrhgvbn) in [https://github.com/vercel/swr/pull/2875](https://togithub.com/vercel/swr/pull/2875) - fix: allow onErrorRetry on inactive tab without focus/reconnect revalidation by [@​qkdreyer](https://togithub.com/qkdreyer) in [https://github.com/vercel/swr/pull/2848](https://togithub.com/vercel/swr/pull/2848) - feat: pass a function to the revalidate option in mutate by [@​koba04](https://togithub.com/koba04) in [https://github.com/vercel/swr/pull/2862](https://togithub.com/vercel/swr/pull/2862) - fix: SWRConfiguration type by [@​hulla-dev](https://togithub.com/hulla-dev) in [https://github.com/vercel/swr/pull/2882](https://togithub.com/vercel/swr/pull/2882) ##### Misc - build: use new bundle convention by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2865](https://togithub.com/vercel/swr/pull/2865) - chore: update pnpm-lock.yaml by [@​koba04](https://togithub.com/koba04) in [https://github.com/vercel/swr/pull/2874](https://togithub.com/vercel/swr/pull/2874) - chore: remove useless comment by [@​kongmoumou](https://togithub.com/kongmoumou) in [https://github.com/vercel/swr/pull/2868](https://togithub.com/vercel/swr/pull/2868) - test: run pnpm test on CI by [@​koba04](https://togithub.com/koba04) in [https://github.com/vercel/swr/pull/2872](https://togithub.com/vercel/swr/pull/2872) - fix: all act warnings by [@​koba04](https://togithub.com/koba04) in [https://github.com/vercel/swr/pull/2861](https://togithub.com/vercel/swr/pull/2861) - Update bundler by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2830](https://togithub.com/vercel/swr/pull/2830) ##### New Contributors - [@​kongmoumou](https://togithub.com/kongmoumou) made their first contribution in [https://github.com/vercel/swr/pull/2868](https://togithub.com/vercel/swr/pull/2868) - [@​yjrhgvbn](https://togithub.com/yjrhgvbn) made their first contribution in [https://github.com/vercel/swr/pull/2875](https://togithub.com/vercel/swr/pull/2875) - [@​qkdreyer](https://togithub.com/qkdreyer) made their first contribution in [https://github.com/vercel/swr/pull/2848](https://togithub.com/vercel/swr/pull/2848) - [@​hulla-dev](https://togithub.com/hulla-dev) made their first contribution in [https://github.com/vercel/swr/pull/2882](https://togithub.com/vercel/swr/pull/2882) **Full Changelog**: https://github.com/vercel/swr/compare/v2.2.4...v2.2.5 ### [`v2.2.4`](https://togithub.com/vercel/swr/releases/tag/v2.2.4) [Compare Source](https://togithub.com/vercel/swr/compare/v2.2.3...v2.2.4) ##### Patches - Revert "Remove `index.js` suffix of `use-sync-external-store/shim` to support React Native" by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2802](https://togithub.com/vercel/swr/pull/2802) **Full Changelog**: https://github.com/vercel/swr/compare/v2.2.3...v2.2.4 ### [`v2.2.3`](https://togithub.com/vercel/swr/releases/tag/v2.2.3) [Compare Source](https://togithub.com/vercel/swr/compare/v2.2.2...v2.2.3) ##### Patches - fix: remove permissive type by [@​wcatron](https://togithub.com/wcatron) in [https://github.com/vercel/swr/pull/2759](https://togithub.com/vercel/swr/pull/2759) - Remove `index.js` suffix of `use-sync-external-store/shim` to support React Native by [@​malash](https://togithub.com/malash) in [https://github.com/vercel/swr/pull/2767](https://togithub.com/vercel/swr/pull/2767) - fix: default to fetch type in keyed mutator by [@​linkvt](https://togithub.com/linkvt) in [https://github.com/vercel/swr/pull/2753](https://togithub.com/vercel/swr/pull/2753) - types: export mutation types by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2780](https://togithub.com/vercel/swr/pull/2780) ##### Misc - test: update tests, use matched types for mutate api by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2781](https://togithub.com/vercel/swr/pull/2781) ##### New Contributors - [@​wcatron](https://togithub.com/wcatron) made their first contribution in [https://github.com/vercel/swr/pull/2759](https://togithub.com/vercel/swr/pull/2759) - [@​malash](https://togithub.com/malash) made their first contribution in [https://github.com/vercel/swr/pull/2767](https://togithub.com/vercel/swr/pull/2767) - [@​linkvt](https://togithub.com/linkvt) made their first contribution in [https://github.com/vercel/swr/pull/2753](https://togithub.com/vercel/swr/pull/2753) **Full Changelog**: https://github.com/vercel/swr/compare/v2.2.2...v2.2.3 ### [`v2.2.2`](https://togithub.com/vercel/swr/releases/tag/v2.2.2) [Compare Source](https://togithub.com/vercel/swr/compare/v2.2.1...v2.2.2) #### What's Changed - fix: It should use startTransition only when IS_REACT_LEGACY is false by [@​TopGrd](https://togithub.com/TopGrd) in [https://github.com/vercel/swr/pull/2756](https://togithub.com/vercel/swr/pull/2756) - fix: simplify `ArgumentsTuple` by [@​Andarist](https://togithub.com/Andarist) in [https://github.com/vercel/swr/pull/2761](https://togithub.com/vercel/swr/pull/2761) #### New Contributors - [@​TopGrd](https://togithub.com/TopGrd) made their first contribution in [https://github.com/vercel/swr/pull/2756](https://togithub.com/vercel/swr/pull/2756) - [@​Andarist](https://togithub.com/Andarist) made their first contribution in [https://github.com/vercel/swr/pull/2761](https://togithub.com/vercel/swr/pull/2761) **Full Changelog**: https://github.com/vercel/swr/compare/v2.2.1...v2.2.2 ### [`v2.2.1`](https://togithub.com/vercel/swr/releases/tag/v2.2.1) [Compare Source](https://togithub.com/vercel/swr/compare/v2.2.0...v2.2.1) #### What's Changed - Add use client directive for client components exports by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2696](https://togithub.com/vercel/swr/pull/2696) - remove the 'use client' directive and add client-only to useSWR entry. by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2705](https://togithub.com/vercel/swr/pull/2705) - fix: should serialize subscription fn key by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2711](https://togithub.com/vercel/swr/pull/2711) - build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/vercel/swr/pull/2720](https://togithub.com/vercel/swr/pull/2720) - fix: only make data and error update as a non-blocking transition by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2691](https://togithub.com/vercel/swr/pull/2691) - build: generate d.mts for for .mjs, so typescript could resolve types correctly by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2695](https://togithub.com/vercel/swr/pull/2695) - fix(infinite): Fix the ability to use preload along with useSWRInfinite by [@​agadzik](https://togithub.com/agadzik) in [https://github.com/vercel/swr/pull/2723](https://togithub.com/vercel/swr/pull/2723) - fix: Ensure that using preload with useSWRInfinite returns back an array of data by [@​agadzik](https://togithub.com/agadzik) in [https://github.com/vercel/swr/pull/2726](https://togithub.com/vercel/swr/pull/2726) - fix: preload request should be consumed within `revalidate` to support `parallel` option by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2727](https://togithub.com/vercel/swr/pull/2727) - Fix the issue that useSWR revalidation isn't triggered if the useSWR call happens after mutation by [@​Ponyets](https://togithub.com/Ponyets) in [https://github.com/vercel/swr/pull/2731](https://togithub.com/vercel/swr/pull/2731) - fix(mutate): fix types of mutate/trigger; make mutate/trigger always return the result of fetcher by [@​Ponyets](https://togithub.com/Ponyets) in [https://github.com/vercel/swr/pull/2708](https://togithub.com/vercel/swr/pull/2708) - build(deps-dev): bump tough-cookie from 4.1.2 to 4.1.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/vercel/swr/pull/2735](https://togithub.com/vercel/swr/pull/2735) - build(deps-dev): bump json5 from 2.2.1 to 2.2.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/vercel/swr/pull/2736](https://togithub.com/vercel/swr/pull/2736) - docs: use isLoading instead of !data by [@​pawfa](https://togithub.com/pawfa) in [https://github.com/vercel/swr/pull/2734](https://togithub.com/vercel/swr/pull/2734) #### New Contributors - [@​agadzik](https://togithub.com/agadzik) made their first contribution in [https://github.com/vercel/swr/pull/2723](https://togithub.com/vercel/swr/pull/2723) - [@​Ponyets](https://togithub.com/Ponyets) made their first contribution in [https://github.com/vercel/swr/pull/2731](https://togithub.com/vercel/swr/pull/2731) - [@​pawfa](https://togithub.com/pawfa) made their first contribution in [https://github.com/vercel/swr/pull/2734](https://togithub.com/vercel/swr/pull/2734) **Full Changelog**: https://github.com/vercel/swr/compare/v2.2.0...v2.2.1 ### [`v2.2.0`](https://togithub.com/vercel/swr/releases/tag/v2.2.0) [Compare Source](https://togithub.com/vercel/swr/compare/v2.1.5...v2.2.0) #### What's Changed - feat: use `React.use` API by [@​himself65](https://togithub.com/himself65) in [https://github.com/vercel/swr/pull/2596](https://togithub.com/vercel/swr/pull/2596) - feat: improve preload and suspense integration by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2658](https://togithub.com/vercel/swr/pull/2658) - feat: Add react-server bundle for core and infinite by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2664](https://togithub.com/vercel/swr/pull/2664) - fix: remove `startTransition` so mutation hook could update immediately by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2654](https://togithub.com/vercel/swr/pull/2654) - fix: keepPreviousData should also work in suspense by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2649](https://togithub.com/vercel/swr/pull/2649) - fix: do unsubscribe synchronously by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2648](https://togithub.com/vercel/swr/pull/2648) - fix: reset the error when mutate succeeded by [@​koba04](https://togithub.com/koba04) in [https://github.com/vercel/swr/pull/2592](https://togithub.com/vercel/swr/pull/2592) - fix: Fix mutation types order by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2669](https://togithub.com/vercel/swr/pull/2669) - fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by [@​saengmotmi](https://togithub.com/saengmotmi) in [https://github.com/vercel/swr/pull/2666](https://togithub.com/vercel/swr/pull/2666) - fix: Pass displayed data as second parameter of functional optimistic data by [@​francescogior](https://togithub.com/francescogior) in [https://github.com/vercel/swr/pull/2668](https://togithub.com/vercel/swr/pull/2668) - fix: Adjust rsc exports by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2673](https://togithub.com/vercel/swr/pull/2673) - fix: Revert "fix: remove startTransition so mutation hook could update immediately ([#​2654](https://togithub.com/vercel/swr/issues/2654))" by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2681](https://togithub.com/vercel/swr/pull/2681) - types: fix immutable export paths by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2670](https://togithub.com/vercel/swr/pull/2670) - types: improve `useSWRMutation` type. by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2604](https://togithub.com/vercel/swr/pull/2604) - chore: upgrade to pnpm8 by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2605](https://togithub.com/vercel/swr/pull/2605) - ci: drop unused inputs and step by [@​nicolewhite](https://togithub.com/nicolewhite) in [https://github.com/vercel/swr/pull/2624](https://togithub.com/vercel/swr/pull/2624) - ci: update github token by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2636](https://togithub.com/vercel/swr/pull/2636) - ci: use gh token credentials for cloning repo by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2637](https://togithub.com/vercel/swr/pull/2637) - ci: use script to bump semver version by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2651](https://togithub.com/vercel/swr/pull/2651) - ci: Add daily test job for react canary by [@​suyanhanx](https://togithub.com/suyanhanx) in [https://github.com/vercel/swr/pull/2601](https://togithub.com/vercel/swr/pull/2601) - build: fix equal signs by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2628](https://togithub.com/vercel/swr/pull/2628) - build: fix bad runner by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2629](https://togithub.com/vercel/swr/pull/2629) - build: use prepatch/minor/major command for prerelease by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2627](https://togithub.com/vercel/swr/pull/2627) - build: fix release semver by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2630](https://togithub.com/vercel/swr/pull/2630) - build: add trigger release job by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2615](https://togithub.com/vercel/swr/pull/2615) - build: determin release tag by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2616](https://togithub.com/vercel/swr/pull/2616) - build: fix conflict types for index and index.react-server by [@​huozhi](https://togithub.com/huozhi) in [https://github.com/vercel/swr/pull/2677](https://togithub.com/vercel/swr/pull/2677) - test: fix flaky suspense test in canary by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2655](https://togithub.com/vercel/swr/pull/2655) - test: improve preload test by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2657](https://togithub.com/vercel/swr/pull/2657) - test: add e2e test for react-server entry by [@​promer94](https://togithub.com/promer94) in [https://github.com/vercel/swr/pull/2671](https://togithub.com/vercel/swr/pull/2671) - test: add a new test setting to run tests with build files by [@​koba04](https://togithub.com/koba04) in [https://github.com/vercel/swr/pull/2583](https://togithub.com/vercel/swr/pull/2583) #### New Contributors - [@​suyanhanx](https://togithub.com/suyanhanx) made their first contribution in [https://github.com/vercel/swr/pull/2601](https://togithub.com/vercel/swr/pull/2601) - [@​nicolewhite](https://togithub.com/nicolewhite) made their first contribution in [https://github.com/vercel/swr/pull/2624](https://togithub.com/vercel/swr/pull/2624) - [@​saengmotmi](https://togithub.com/saengmotmi) made their first contribution in [https://github.com/vercel/swr/pull/2666](https://togithub.com/vercel/swr/pull/2666) - [@​francescogior](https://togithub.com/francescogior) made their first contribution in [https://github.com/vercel/swr/pull/2668](https://togithub.com/vercel/swr/pull/2668) **Full Changelog**: https://github.com/vercel/swr/compare/v2.1.5...v2.2.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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 was generated by Mend Renovate. View the repository job log.

changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: a512d0144c513f71504865219960d488a64e68a7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 1 month ago

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets): Package Version Info
@graphql-codegen/cli 5.0.3-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 5.4.0-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 4.0.10-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 4.0.10-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 4.3.0-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 4.3.0-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 5.0.10-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 4.1.0-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 4.4.0-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 4.0.10-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
@graphql-codegen/testing 3.0.4-alpha-20240819153729-a512d0144c513f71504865219960d488a64e68a7 npm ↗︎ unpkg ↗︎
github-actions[bot] commented 1 month ago
### 💻 Website Preview The latest changes are available as preview in: [https://6e71c856.graphql-code-generator.pages.dev](https://6e71c856.graphql-code-generator.pages.dev)