Releases: vercel/swr
Releases · vercel/swr
v2.2.6-beta.2
Patches
- build: bump bundler for perf by @huozhi in #2929
- Fix bundling of client entry chunks by @huozhi in #2932
Full Changelog: v2.2.6-beta.1...v2.2.6-beta.2
v2.2.6-beta.1
What's Changed
- build: fix beta release job by @huozhi in #2895
- chore: Improve test coverage by @shuding in #2903
- chore: simplify test coverage strategy by @huozhi in #2909
- build: simplify react-server export and update bundler by @huozhi in #2897
- examples: add RSC streaming pre-render with promise fallback example by @promer94 in #2905
- Drop client-only by @huozhi in #2910
- Mark package as side-effect free by @htunnicliff in #2904
- Drop exports module field by @huozhi in #2911
- fix: Replace the deprecated 'window' with 'globalThis' for Deno by @saul-atomrigs in #2915
- chore: update pkg script watch by @unliar in #2920
- test: remove console.error times check by @promer94 in #2918
New Contributors
- @htunnicliff made their first contribution in #2904
- @saul-atomrigs made their first contribution in #2915
- @unliar made their first contribution in #2920
Full Changelog: v2.2.6-beta.0...v2.2.6-beta.1
v2.2.5
Patches
- types: isLoading typed as boolean when using fallbackData (#2866) by @yjrhgvbn in #2875
- fix: allow onErrorRetry on inactive tab without focus/reconnect revalidation by @qkdreyer in #2848
- feat: pass a function to the revalidate option in mutate by @koba04 in #2862
- fix: SWRConfiguration type by @hulla-dev in #2882
Misc
- build: use new bundle convention by @huozhi in #2865
- chore: update pnpm-lock.yaml by @koba04 in #2874
- chore: remove useless comment by @kongmoumou in #2868
- test: run pnpm test on CI by @koba04 in #2872
- fix: all act warnings by @koba04 in #2861
- Update bundler by @huozhi in #2830
New Contributors
- @kongmoumou made their first contribution in #2868
- @yjrhgvbn made their first contribution in #2875
- @qkdreyer made their first contribution in #2848
- @hulla-dev made their first contribution in #2882
Full Changelog: v2.2.4...v2.2.5
v2.2.4
v2.2.3
Patches
- fix: remove permissive type by @wcatron in #2759
- Remove
index.js
suffix ofuse-sync-external-store/shim
to support React Native by @malash in #2767 - fix: default to fetch type in keyed mutator by @linkvt in #2753
- types: export mutation types by @promer94 in #2780
Misc
New Contributors
- @wcatron made their first contribution in #2759
- @malash made their first contribution in #2767
- @linkvt made their first contribution in #2753
Full Changelog: v2.2.2...v2.2.3
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