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

Adjust rsc exports #2673

Merged
merged 5 commits into from
Jun 18, 2023
Merged

Adjust rsc exports #2673

merged 5 commits into from
Jun 18, 2023

Conversation

huozhi
Copy link
Member

@huozhi huozhi commented Jun 18, 2023

Fixes #2594

  • Upgrade bunchee
  • Use convention <export>/index.react-server.ts as the entry file is different from the default one, this help to override the react-server exports

test: add e2e test for react-server entry

Revert "test: add e2e test for react-server entry"

This reverts commit 1ac280e.
@huozhi huozhi requested a review from shuding as a code owner June 18, 2023 23:05
@socket-security
Copy link

New and updated dependency changes detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives1 Size Publisher
bunchee 🆕 3.4.0 filesystem, environment +35 3.3 MB huozhi

Footnotes

  1. https://docs.socket.dev

@codesandbox-ci
Copy link

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 0c0f4f7:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration

@huozhi huozhi merged commit c30509f into main Jun 18, 2023
@huozhi huozhi deleted the react-server-export branch June 18, 2023 23:10
David-Duefrene referenced this pull request in David-Duefrene/dataviewer Jun 23, 2023
[![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://github.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://github.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://github.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://github.com/himself65) in
[https://github.com/vercel/swr/pull/2596](https://github.com/vercel/swr/pull/2596)
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2658](https://github.com/vercel/swr/pull/2658)
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2664](https://github.com/vercel/swr/pull/2664)
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2654](https://github.com/vercel/swr/pull/2654)
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2649](https://github.com/vercel/swr/pull/2649)
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2648](https://github.com/vercel/swr/pull/2648)
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2592](https://github.com/vercel/swr/pull/2592)
- fix: Fix mutation types order by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2669](https://github.com/vercel/swr/pull/2669)
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://github.com/saengmotmi) in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://github.com/francescogior) in
[https://github.com/vercel/swr/pull/2668](https://github.com/vercel/swr/pull/2668)
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2673](https://github.com/vercel/swr/pull/2673)
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://github.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2681](https://github.com/vercel/swr/pull/2681)
- types: fix immutable export paths by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2670](https://github.com/vercel/swr/pull/2670)
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2604](https://github.com/vercel/swr/pull/2604)
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2605](https://github.com/vercel/swr/pull/2605)
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://github.com/nicolewhite) in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- ci: update github token by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2636](https://github.com/vercel/swr/pull/2636)
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2637](https://github.com/vercel/swr/pull/2637)
- ci: use script to bump semver version by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2651](https://github.com/vercel/swr/pull/2651)
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://github.com/suyanhanx) in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- build: fix equal signs by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2628](https://github.com/vercel/swr/pull/2628)
- build: fix bad runner by [@&#8203;huozhi](https://github.com/huozhi)
in
[https://github.com/vercel/swr/pull/2629](https://github.com/vercel/swr/pull/2629)
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2627](https://github.com/vercel/swr/pull/2627)
- build: fix release semver by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2630](https://github.com/vercel/swr/pull/2630)
- build: add trigger release job by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2615](https://github.com/vercel/swr/pull/2615)
- build: determin release tag by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2616](https://github.com/vercel/swr/pull/2616)
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2677](https://github.com/vercel/swr/pull/2677)
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2655](https://github.com/vercel/swr/pull/2655)
- test: improve preload test by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2657](https://github.com/vercel/swr/pull/2657)
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2671](https://github.com/vercel/swr/pull/2671)
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2583](https://github.com/vercel/swr/pull/2583)

#### New Contributors

- [@&#8203;suyanhanx](https://github.com/suyanhanx) made their first
contribution in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- [@&#8203;nicolewhite](https://github.com/nicolewhite) made their
first contribution in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- [@&#8203;saengmotmi](https://github.com/saengmotmi) made their first
contribution in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- [@&#8203;francescogior](https://github.com/francescogior) made their
first contribution in
[https://github.com/vercel/swr/pull/2668](https://github.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>
tylersmalley referenced this pull request in tailscale-dev/vscode-tailscale Jun 26, 2023
[![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://github.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://github.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://github.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://github.com/himself65) in
[https://github.com/vercel/swr/pull/2596](https://github.com/vercel/swr/pull/2596)
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2658](https://github.com/vercel/swr/pull/2658)
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2664](https://github.com/vercel/swr/pull/2664)
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2654](https://github.com/vercel/swr/pull/2654)
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2649](https://github.com/vercel/swr/pull/2649)
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2648](https://github.com/vercel/swr/pull/2648)
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2592](https://github.com/vercel/swr/pull/2592)
- fix: Fix mutation types order by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2669](https://github.com/vercel/swr/pull/2669)
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://github.com/saengmotmi) in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://github.com/francescogior) in
[https://github.com/vercel/swr/pull/2668](https://github.com/vercel/swr/pull/2668)
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2673](https://github.com/vercel/swr/pull/2673)
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://github.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2681](https://github.com/vercel/swr/pull/2681)
- types: fix immutable export paths by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2670](https://github.com/vercel/swr/pull/2670)
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2604](https://github.com/vercel/swr/pull/2604)
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2605](https://github.com/vercel/swr/pull/2605)
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://github.com/nicolewhite) in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- ci: update github token by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2636](https://github.com/vercel/swr/pull/2636)
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2637](https://github.com/vercel/swr/pull/2637)
- ci: use script to bump semver version by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2651](https://github.com/vercel/swr/pull/2651)
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://github.com/suyanhanx) in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- build: fix equal signs by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2628](https://github.com/vercel/swr/pull/2628)
- build: fix bad runner by [@&#8203;huozhi](https://github.com/huozhi)
in
[https://github.com/vercel/swr/pull/2629](https://github.com/vercel/swr/pull/2629)
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2627](https://github.com/vercel/swr/pull/2627)
- build: fix release semver by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2630](https://github.com/vercel/swr/pull/2630)
- build: add trigger release job by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2615](https://github.com/vercel/swr/pull/2615)
- build: determin release tag by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2616](https://github.com/vercel/swr/pull/2616)
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2677](https://github.com/vercel/swr/pull/2677)
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2655](https://github.com/vercel/swr/pull/2655)
- test: improve preload test by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2657](https://github.com/vercel/swr/pull/2657)
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2671](https://github.com/vercel/swr/pull/2671)
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2583](https://github.com/vercel/swr/pull/2583)

#### New Contributors

- [@&#8203;suyanhanx](https://github.com/suyanhanx) made their first
contribution in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- [@&#8203;nicolewhite](https://github.com/nicolewhite) made their
first contribution in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- [@&#8203;saengmotmi](https://github.com/saengmotmi) made their first
contribution in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- [@&#8203;francescogior](https://github.com/francescogior) made their
first contribution in
[https://github.com/vercel/swr/pull/2668](https://github.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>
kodiakhq bot referenced this pull request in kula-app/OnLaunch Jun 26, 2023
[![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://github.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://github.com/vercel/swr/releases/tag/v2.2.0)

[Compare Source](https://github.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

-   feat: use `React.use` API by [@&#8203;himself65](https://github.com/himself65) in [https://github.com/vercel/swr/pull/2596](https://github.com/vercel/swr/pull/2596)
-   feat: improve preload and suspense integration by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2658](https://github.com/vercel/swr/pull/2658)
-   feat: Add react-server bundle for core and infinite by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2664](https://github.com/vercel/swr/pull/2664)
-   fix: remove `startTransition` so mutation hook could update immediately by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2654](https://github.com/vercel/swr/pull/2654)
-   fix: keepPreviousData should also work in suspense by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2649](https://github.com/vercel/swr/pull/2649)
-   fix: do unsubscribe synchronously by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2648](https://github.com/vercel/swr/pull/2648)
-   fix: reset the error when mutate succeeded by [@&#8203;koba04](https://github.com/koba04) in [https://github.com/vercel/swr/pull/2592](https://github.com/vercel/swr/pull/2592)
-   fix: Fix mutation types order by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2669](https://github.com/vercel/swr/pull/2669)
-   fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by [@&#8203;saengmotmi](https://github.com/saengmotmi) in [https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
-   fix: Pass displayed data as second parameter of functional optimistic data by [@&#8203;francescogior](https://github.com/francescogior) in [https://github.com/vercel/swr/pull/2668](https://github.com/vercel/swr/pull/2668)
-   fix: Adjust rsc exports by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2673](https://github.com/vercel/swr/pull/2673)
-   fix: Revert "fix: remove startTransition so mutation hook could update immediately ([#&#8203;2654](https://github.com/vercel/swr/issues/2654))" by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2681](https://github.com/vercel/swr/pull/2681)
-   types: fix immutable export paths by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2670](https://github.com/vercel/swr/pull/2670)
-   types: improve `useSWRMutation` type. by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2604](https://github.com/vercel/swr/pull/2604)
-   chore: upgrade to pnpm8 by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2605](https://github.com/vercel/swr/pull/2605)
-   ci: drop unused inputs and step by [@&#8203;nicolewhite](https://github.com/nicolewhite) in [https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
-   ci: update github token by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2636](https://github.com/vercel/swr/pull/2636)
-   ci: use gh token credentials for cloning repo by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2637](https://github.com/vercel/swr/pull/2637)
-   ci: use script to bump semver version by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2651](https://github.com/vercel/swr/pull/2651)
-   ci: Add daily test job for react canary by [@&#8203;suyanhanx](https://github.com/suyanhanx) in [https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
-   build: fix equal signs by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2628](https://github.com/vercel/swr/pull/2628)
-   build: fix bad runner by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2629](https://github.com/vercel/swr/pull/2629)
-   build: use prepatch/minor/major command for prerelease by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2627](https://github.com/vercel/swr/pull/2627)
-   build: fix release semver by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2630](https://github.com/vercel/swr/pull/2630)
-   build: add trigger release job by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2615](https://github.com/vercel/swr/pull/2615)
-   build: determin release tag by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2616](https://github.com/vercel/swr/pull/2616)
-   build: fix conflict types for index and index.react-server by [@&#8203;huozhi](https://github.com/huozhi) in [https://github.com/vercel/swr/pull/2677](https://github.com/vercel/swr/pull/2677)
-   test: fix flaky suspense test in canary by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2655](https://github.com/vercel/swr/pull/2655)
-   test: improve preload test by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2657](https://github.com/vercel/swr/pull/2657)
-   test: add e2e test for react-server entry by [@&#8203;promer94](https://github.com/promer94) in [https://github.com/vercel/swr/pull/2671](https://github.com/vercel/swr/pull/2671)
-   test: add a new test setting to run tests with build files by [@&#8203;koba04](https://github.com/koba04) in [https://github.com/vercel/swr/pull/2583](https://github.com/vercel/swr/pull/2583)

#### New Contributors

-   [@&#8203;suyanhanx](https://github.com/suyanhanx) made their first contribution in [https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
-   [@&#8203;nicolewhite](https://github.com/nicolewhite) made their first contribution in [https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
-   [@&#8203;saengmotmi](https://github.com/saengmotmi) made their first contribution in [https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
-   [@&#8203;francescogior](https://github.com/francescogior) made their first contribution in [https://github.com/vercel/swr/pull/2668](https://github.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-->
tylersmalley referenced this pull request in tailscale-dev/vscode-tailscale Jun 29, 2023
[![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://github.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://github.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://github.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://github.com/himself65) in
[https://github.com/vercel/swr/pull/2596](https://github.com/vercel/swr/pull/2596)
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2658](https://github.com/vercel/swr/pull/2658)
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2664](https://github.com/vercel/swr/pull/2664)
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2654](https://github.com/vercel/swr/pull/2654)
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2649](https://github.com/vercel/swr/pull/2649)
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2648](https://github.com/vercel/swr/pull/2648)
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2592](https://github.com/vercel/swr/pull/2592)
- fix: Fix mutation types order by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2669](https://github.com/vercel/swr/pull/2669)
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://github.com/saengmotmi) in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://github.com/francescogior) in
[https://github.com/vercel/swr/pull/2668](https://github.com/vercel/swr/pull/2668)
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2673](https://github.com/vercel/swr/pull/2673)
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://github.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2681](https://github.com/vercel/swr/pull/2681)
- types: fix immutable export paths by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2670](https://github.com/vercel/swr/pull/2670)
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2604](https://github.com/vercel/swr/pull/2604)
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2605](https://github.com/vercel/swr/pull/2605)
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://github.com/nicolewhite) in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- ci: update github token by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2636](https://github.com/vercel/swr/pull/2636)
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2637](https://github.com/vercel/swr/pull/2637)
- ci: use script to bump semver version by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2651](https://github.com/vercel/swr/pull/2651)
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://github.com/suyanhanx) in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- build: fix equal signs by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2628](https://github.com/vercel/swr/pull/2628)
- build: fix bad runner by [@&#8203;huozhi](https://github.com/huozhi)
in
[https://github.com/vercel/swr/pull/2629](https://github.com/vercel/swr/pull/2629)
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2627](https://github.com/vercel/swr/pull/2627)
- build: fix release semver by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2630](https://github.com/vercel/swr/pull/2630)
- build: add trigger release job by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2615](https://github.com/vercel/swr/pull/2615)
- build: determin release tag by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2616](https://github.com/vercel/swr/pull/2616)
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2677](https://github.com/vercel/swr/pull/2677)
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2655](https://github.com/vercel/swr/pull/2655)
- test: improve preload test by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2657](https://github.com/vercel/swr/pull/2657)
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2671](https://github.com/vercel/swr/pull/2671)
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2583](https://github.com/vercel/swr/pull/2583)

#### New Contributors

- [@&#8203;suyanhanx](https://github.com/suyanhanx) made their first
contribution in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- [@&#8203;nicolewhite](https://github.com/nicolewhite) made their
first contribution in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- [@&#8203;saengmotmi](https://github.com/saengmotmi) made their first
contribution in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- [@&#8203;francescogior](https://github.com/francescogior) made their
first contribution in
[https://github.com/vercel/swr/pull/2668](https://github.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)
sebald referenced this pull request in sebald/pattern-analyzer Jul 1, 2023
[![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://github.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://github.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://github.com/vercel/swr/compare/v2.1.5...v2.2.0)

##### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://github.com/himself65) in
[https://github.com/vercel/swr/pull/2596](https://github.com/vercel/swr/pull/2596)
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2658](https://github.com/vercel/swr/pull/2658)
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2664](https://github.com/vercel/swr/pull/2664)
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2654](https://github.com/vercel/swr/pull/2654)
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2649](https://github.com/vercel/swr/pull/2649)
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2648](https://github.com/vercel/swr/pull/2648)
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2592](https://github.com/vercel/swr/pull/2592)
- fix: Fix mutation types order by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2669](https://github.com/vercel/swr/pull/2669)
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://github.com/saengmotmi) in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://github.com/francescogior) in
[https://github.com/vercel/swr/pull/2668](https://github.com/vercel/swr/pull/2668)
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2673](https://github.com/vercel/swr/pull/2673)
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://github.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2681](https://github.com/vercel/swr/pull/2681)
- types: fix immutable export paths by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2670](https://github.com/vercel/swr/pull/2670)
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2604](https://github.com/vercel/swr/pull/2604)
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2605](https://github.com/vercel/swr/pull/2605)
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://github.com/nicolewhite) in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- ci: update github token by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2636](https://github.com/vercel/swr/pull/2636)
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2637](https://github.com/vercel/swr/pull/2637)
- ci: use script to bump semver version by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2651](https://github.com/vercel/swr/pull/2651)
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://github.com/suyanhanx) in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- build: fix equal signs by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2628](https://github.com/vercel/swr/pull/2628)
- build: fix bad runner by [@&#8203;huozhi](https://github.com/huozhi)
in
[https://github.com/vercel/swr/pull/2629](https://github.com/vercel/swr/pull/2629)
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2627](https://github.com/vercel/swr/pull/2627)
- build: fix release semver by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2630](https://github.com/vercel/swr/pull/2630)
- build: add trigger release job by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2615](https://github.com/vercel/swr/pull/2615)
- build: determin release tag by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2616](https://github.com/vercel/swr/pull/2616)
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2677](https://github.com/vercel/swr/pull/2677)
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2655](https://github.com/vercel/swr/pull/2655)
- test: improve preload test by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2657](https://github.com/vercel/swr/pull/2657)
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2671](https://github.com/vercel/swr/pull/2671)
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2583](https://github.com/vercel/swr/pull/2583)

##### New Contributors

- [@&#8203;suyanhanx](https://github.com/suyanhanx) made their first
contribution in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- [@&#8203;nicolewhite](https://github.com/nicolewhite) made their
first contribution in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- [@&#8203;saengmotmi](https://github.com/saengmotmi) made their first
contribution in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- [@&#8203;francescogior](https://github.com/francescogior) made their
first contribution in
[https://github.com/vercel/swr/pull/2668](https://github.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>
renovate bot referenced this pull request in Unleash/unleash Jul 21, 2023
[![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://github.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://github.com/vercel/swr/releases/tag/v2.2.0)

[Compare
Source](https://github.com/vercel/swr/compare/v2.1.5...v2.2.0)

#### What's Changed

- feat: use `React.use` API by
[@&#8203;himself65](https://github.com/himself65) in
[https://github.com/vercel/swr/pull/2596](https://github.com/vercel/swr/pull/2596)
- feat: improve preload and suspense integration by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2658](https://github.com/vercel/swr/pull/2658)
- feat: Add react-server bundle for core and infinite by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2664](https://github.com/vercel/swr/pull/2664)
- fix: remove `startTransition` so mutation hook could update
immediately by [@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2654](https://github.com/vercel/swr/pull/2654)
- fix: keepPreviousData should also work in suspense by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2649](https://github.com/vercel/swr/pull/2649)
- fix: do unsubscribe synchronously by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2648](https://github.com/vercel/swr/pull/2648)
- fix: reset the error when mutate succeeded by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2592](https://github.com/vercel/swr/pull/2592)
- fix: Fix mutation types order by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2669](https://github.com/vercel/swr/pull/2669)
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg
Without Explicitly Passing Undefined by
[@&#8203;saengmotmi](https://github.com/saengmotmi) in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- fix: Pass displayed data as second parameter of functional optimistic
data by [@&#8203;francescogior](https://github.com/francescogior) in
[https://github.com/vercel/swr/pull/2668](https://github.com/vercel/swr/pull/2668)
- fix: Adjust rsc exports by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2673](https://github.com/vercel/swr/pull/2673)
- fix: Revert "fix: remove startTransition so mutation hook could update
immediately
([#&#8203;2654](https://github.com/vercel/swr/issues/2654))" by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2681](https://github.com/vercel/swr/pull/2681)
- types: fix immutable export paths by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2670](https://github.com/vercel/swr/pull/2670)
- types: improve `useSWRMutation` type. by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2604](https://github.com/vercel/swr/pull/2604)
- chore: upgrade to pnpm8 by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2605](https://github.com/vercel/swr/pull/2605)
- ci: drop unused inputs and step by
[@&#8203;nicolewhite](https://github.com/nicolewhite) in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- ci: update github token by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2636](https://github.com/vercel/swr/pull/2636)
- ci: use gh token credentials for cloning repo by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2637](https://github.com/vercel/swr/pull/2637)
- ci: use script to bump semver version by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2651](https://github.com/vercel/swr/pull/2651)
- ci: Add daily test job for react canary by
[@&#8203;suyanhanx](https://github.com/suyanhanx) in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- build: fix equal signs by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2628](https://github.com/vercel/swr/pull/2628)
- build: fix bad runner by [@&#8203;huozhi](https://github.com/huozhi)
in
[https://github.com/vercel/swr/pull/2629](https://github.com/vercel/swr/pull/2629)
- build: use prepatch/minor/major command for prerelease by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2627](https://github.com/vercel/swr/pull/2627)
- build: fix release semver by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2630](https://github.com/vercel/swr/pull/2630)
- build: add trigger release job by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2615](https://github.com/vercel/swr/pull/2615)
- build: determin release tag by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2616](https://github.com/vercel/swr/pull/2616)
- build: fix conflict types for index and index.react-server by
[@&#8203;huozhi](https://github.com/huozhi) in
[https://github.com/vercel/swr/pull/2677](https://github.com/vercel/swr/pull/2677)
- test: fix flaky suspense test in canary by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2655](https://github.com/vercel/swr/pull/2655)
- test: improve preload test by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2657](https://github.com/vercel/swr/pull/2657)
- test: add e2e test for react-server entry by
[@&#8203;promer94](https://github.com/promer94) in
[https://github.com/vercel/swr/pull/2671](https://github.com/vercel/swr/pull/2671)
- test: add a new test setting to run tests with build files by
[@&#8203;koba04](https://github.com/koba04) in
[https://github.com/vercel/swr/pull/2583](https://github.com/vercel/swr/pull/2583)

#### New Contributors

- [@&#8203;suyanhanx](https://github.com/suyanhanx) made their first
contribution in
[https://github.com/vercel/swr/pull/2601](https://github.com/vercel/swr/pull/2601)
- [@&#8203;nicolewhite](https://github.com/nicolewhite) made their
first contribution in
[https://github.com/vercel/swr/pull/2624](https://github.com/vercel/swr/pull/2624)
- [@&#8203;saengmotmi](https://github.com/saengmotmi) made their first
contribution in
[https://github.com/vercel/swr/pull/2666](https://github.com/vercel/swr/pull/2666)
- [@&#8203;francescogior](https://github.com/francescogior) made their
first contribution in
[https://github.com/vercel/swr/pull/2668](https://github.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot serialize using "unstable_serialize" in Server Components
1 participant