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