Releases: vercel/swr
Releases Β· vercel/swr
v2.2.2
What's Changed
- fix: It should use startTransition only when IS_REACT_LEGACY is false by @TopGrd in #2756
- fix: simplify
ArgumentsTuple
by @Andarist in #2761
New Contributors
Full Changelog: v2.2.1...v2.2.2
v2.2.1
What's Changed
- Add use client directive for client components exports by @huozhi in #2696
- 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
- build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #2720
- fix: only make data and error update as a non-blocking transition by @promer94 in #2691
- build: generate d.mts for for .mjs, so typescript could resolve types correctly by @promer94 in #2695
- fix(infinite): Fix the ability to use preload along with useSWRInfinite by @agadzik in #2723
- fix: Ensure that using preload with useSWRInfinite returns back an array of data by @agadzik in #2726
- fix: preload request should be consumed within
revalidate
to supportparallel
option by @promer94 in #2727 - Fix the issue that useSWR revalidation isn't triggered if the useSWR call happens after mutation by @Ponyets in #2731
- fix(mutate): fix types of mutate/trigger; make mutate/trigger always return the result of fetcher by @Ponyets in #2708
- build(deps-dev): bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #2735
- build(deps-dev): bump json5 from 2.2.1 to 2.2.3 by @dependabot in #2736
- docs: use isLoading instead of !data by @pawfa in #2734
New Contributors
- @agadzik made their first contribution in #2723
- @Ponyets made their first contribution in #2731
- @pawfa made their first contribution in #2734
Full Changelog: v2.2.0...v2.2.1
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