Releases: vercel/swr
Releases Β· vercel/swr
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
v2.1.3
What's Changed
- Fix #2548: pass origin key to subcription callback by @Zheaoli in #2550
- Examples: fix type in axios-typescript example by @daochouwangu in #2552
- Update Cache Interface types by @dmmulroy in #2554
- fix: data passed to refreshInterval function is not latest by @hong24 in #2354
- types: allow passing function as
Data
foruseSWRSubscriptionOptions
by @promer94 in #2551
New Contributors
- @Zheaoli made their first contribution in #2550
- @daochouwangu made their first contribution in #2552
- @dmmulroy made their first contribution in #2554
Full Changelog: v2.1.2...v2.1.3
v2.1.2
Patches
- Improved type inferring for
swr/subscription
- Adding
SWRSubscriptionOptions
type forswr/subscription
Changes
- test: add typing test for empty config by @koba04 in #2521
- test: fix syntax error in Equal type alias implementation by @SACHINnANYAKKARA in #2517
- chore: remove engines by @promer94 in #2536
- types: improve
useSWRSubscription
types by @promer94 in #2535 - Rename subscription types by @huozhi in #2537
New Contributors
- @SACHINnANYAKKARA made their first contribution in #2517
Full Changelog: v2.1.1...v2.1.2
v2.1.1
Patches
- refactor: remove useless dataRef, always compare cached data by @promer94 in #2431
- fix: swr infers incorrect
data
type for defaultSWRConfig
generic type by @connorch in #2506
Documentation
New Contributors
Full Changelog: v2.1.0...v2.1.1