-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
types: improve useSWRMutation
type.
#2604
Conversation
… | undefined` as default
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit da47ab6:
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8989b60:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
cool. thanks! @promer94 |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`2.1.5` -> `2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/swr</summary> ### [`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**: vercel/swr@v2.1.5...v2.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/David-Duefrene/dataviewer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`^2.1.5` -> `^2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/swr</summary> ### [`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**: vercel/swr@v2.1.5...v2.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tailscale-dev/vscode-tailscale). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`2.1.5` -> `2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/swr (swr)</summary> ### [`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**: vercel/swr@v2.1.5...v2.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kula-app/OnLaunch). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`^2.1.5` -> `^2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/swr</summary> ### [`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**: vercel/swr@v2.1.5...v2.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tailscale-dev/vscode-tailscale). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> (cherry picked from commit cdfd327)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`2.1.5` -> `2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://badges.renovateapi.com/packages/npm/swr/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/swr/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/swr/2.2.0/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/swr/2.2.0/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/swr (swr)</summary> ### [`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**: vercel/swr@v2.1.5...v2.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/sebald/pattern-analyzer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [swr](https://swr.vercel.app) ([source](https://togithub.com/vercel/swr)) | [`2.1.5` -> `2.2.0`](https://renovatebot.com/diffs/npm/swr/2.1.5/2.2.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/swr/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/swr/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/swr/2.1.5/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/swr/2.1.5/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/swr (swr)</summary> ### [`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**: vercel/swr@v2.1.5...v2.2.0 </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
close: #2516
close: #2477
Previous
The return type of
trigger
will always beData | undefined
Now
The return type of
trigger
will beData
by default, unlessthrowOnError
is set tofalse