Releases: vercel/swr
Releases · vercel/swr
v2.2.1-beta.1
What's Changed
- fix: Add use client directive for client components exports by @huozhi in #2696
- fix: only make data and error update as a non-blocking transition by @promer94 in #2691
- fix: Fix the ability to use preload along with useSWRInfinite by @agadzik in #2723
- fix: Remove the 'use client' directive and add client-only to useSWR entry. by @promer94 in #2705
- fix: should serialize subscription fn key by @promer94 in #2711
- chore: bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #2720
- chore: generate d.mts for for .mjs, so typescript could resolve types correctly by @promer94 in #2695
New Contributors
Full Changelog: v2.2.0...v2.2.1-beta.1
v2.2.0
What's Changed
- feat: use
React.use
API by @himself65 in #2596 - feat: improve preload and suspense integration by @promer94 in #2658
- feat: Add react-server bundle for core and infinite by @huozhi in #2664
- fix: remove
startTransition
so mutation hook could update immediately by @promer94 in #2654 - fix: keepPreviousData should also work in suspense by @promer94 in #2649
- fix: do unsubscribe synchronously by @promer94 in #2648
- fix: reset the error when mutate succeeded by @koba04 in #2592
- fix: Fix mutation types order by @huozhi in #2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by @saengmotmi in #2666
- fix: Pass displayed data as second parameter of functional optimistic data by @francescogior in #2668
- fix: Adjust rsc exports by @huozhi in #2673
- fix: Revert "fix: remove startTransition so mutation hook could update immediately (#2654)" by @huozhi in #2681
- types: fix immutable export paths by @huozhi in #2670
- types: improve
useSWRMutation
type. by @promer94 in #2604 - chore: upgrade to pnpm8 by @promer94 in #2605
- ci: drop unused inputs and step by @nicolewhite in #2624
- ci: update github token by @huozhi in #2636
- ci: use gh token credentials for cloning repo by @huozhi in #2637
- ci: use script to bump semver version by @huozhi in #2651
- ci: Add daily test job for react canary by @suyanhanx in #2601
- build: fix equal signs by @huozhi in #2628
- build: fix bad runner by @huozhi in #2629
- build: use prepatch/minor/major command for prerelease by @huozhi in #2627
- build: fix release semver by @huozhi in #2630
- build: add trigger release job by @huozhi in #2615
- build: determin release tag by @huozhi in #2616
- build: fix conflict types for index and index.react-server by @huozhi in #2677
- test: fix flaky suspense test in canary by @promer94 in #2655
- test: improve preload test by @promer94 in #2657
- test: add e2e test for react-server entry by @promer94 in #2671
- test: add a new test setting to run tests with build files by @koba04 in #2583
New Contributors
- @suyanhanx made their first contribution in #2601
- @nicolewhite made their first contribution in #2624
- @saengmotmi made their first contribution in #2666
- @francescogior made their first contribution in #2668
Full Changelog: v2.1.5...v2.2.0
v2.2.0-beta.5
What's Changed
- Revert "fix: remove startTransition so mutation hook could update immediately (#2654)" by @huozhi in #2681
Full Changelog: v2.2.0-beta.4...v2.2.0-beta.5
v2.2.0-beta.4
What's Changed
Full Changelog: v2.2.0-beta.3...v2.2.0-beta.4
v2.2.0-beta.3
What's Changed
- Fix Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by @saengmotmi in #2666
- Pass displayed data as second parameter of functional optimistic data by @francescogior in #2668
- Adjust rsc exports by @huozhi in #2673
- test: add e2e test for react-server entry by @promer94 in #2671
New Contributors
- @saengmotmi made their first contribution in #2666
- @francescogior made their first contribution in #2668
Full Changelog: v2.2.0-beta.2...v2.2.0-beta.3
v2.2.0-beta.2
What's Changed
Full Changelog: v2.2.0-beta.1...v2.2.0-beta.2
v2.2.0-beta.1
What's Changed
- fix: do unsubscribe synchronously by @promer94 in #2648
- fix: reset the error when mutate succeeded by @koba04 in #2592
- ci: use script to bump semver version by @huozhi in #2651
- fix: remove
startTransition
so mutation hook could update immediately by @promer94 in #2654 - fix: keepPreviousData should also work in suspense by @promer94 in #2649
- test: fix flaky suspense test in canary by @promer94 in #2655
- test: improve preload test by @promer94 in #2657
- feat: improve preload and suspense integration by @promer94 in #2658
- Add react-server bundle for core and infinite by @huozhi in #2664
Full Changelog: v2.2.0-beta.0...v2.2.0-beta.1
v2.2.0-beta.0
What's Changed
- test: add a new test setting to run tests with build files by @koba04 in #2583
- feat: use
React.use
API by @himself65 in #2596 - ci: Add daily test job for react canary by @suyanhanx in #2601
- build: add trigger release job by @huozhi in #2615
- build: determin release tag by @huozhi in #2616
- chore: upgrade to pnpm8 by @promer94 in #2605
- types: improve
useSWRMutation
type. by @promer94 in #2604 - ci: drop unused inputs and step by @nicolewhite in #2624
- build: use prepatch/minor/major command for prerelease by @huozhi in #2627
- build: fix equal signs by @huozhi in #2628
- build: fix bad runner by @huozhi in #2629
- build: fix release semver by @huozhi in #2630
- ci: update github token by @huozhi in #2636
- ci: use gh token credentials for cloning repo by @huozhi in #2637
New Contributors
- @suyanhanx made their first contribution in #2601
- @nicolewhite made their first contribution in #2624
Full Changelog: v2.1.5...v2.2.0-beta.0
v2.1.5
v2.1.4
What's Changed
- Upgrade bundler by @huozhi in #2557
- examples: fix invalid links by @fxOne in #2559
- types: Allow auto-import by improving generated types by @oosawy in #2563
- fix: pass serialized args to preload fetcher by @oosawy in #2564
- chore: use provenance for release by @HerringtonDarkholme in #2571
- deps: update @testing-library/react to v14 by @koba04 in #2578
- fix: Fix dependency tracking and useSES bug by @shuding and @promer94 in #2576
New Contributors
- @fxOne made their first contribution in #2559
- @oosawy made their first contribution in #2563
- @HerringtonDarkholme made their first contribution in #2571
Full Changelog: v2.1.3...v2.1.4