Releases: vercel/swr
Releases Β· vercel/swr
v2.3.2
Patches
- (fix) keepPreviousData: return fallback instead of undefined value by @dvoytenko in #4087
Full Changelog: v2.3.1...v2.3.2
v2.3.1
Fixes
- fix: missing
throwOnError
in SWRMutationHook options by @Ram4GB in #3054 - fix: sever env detection for deno by @elrrrrrrr in #4064
- keepPreviousData: return fallback instead of undefined value by @dvoytenko in #4084
Misc
- ci: update pnpm setup and lock pnpm vesion by @huozhi in #4085
- build: bump bundler by @huozhi in #4086
- refactor: type improvement of
useSWRHandler
by @samuel871211 in #4075
New Contributors
- @Ram4GB made their first contribution in #3054
- @elrrrrrrr made their first contribution in #4064
- @dvoytenko made their first contribution in #4084
- @samuel871211 made their first contribution in #4075
Full Changelog: v2.3.0...v2.3.1
v2.3.0
Feature
- Support promises as fallback data by @shuding in #2891
- Allow to use with React 19 by @vladshcherbin and @devjiwonchoi in #3047, #2963
Patches
- fix #3030 and run relateive test in edge-runtime by @promer94 in #3036
- fix: Only suspend when using the
fallback
by @shuding in #3045 - fix type check in tests by @huozhi in #3052
- fix: Replace the deprecated 'window' with 'globalThis' for Deno by @saul-atomrigs in #2915
- fix: check if config.fallback is undefined by @taku-hatano in #2913
- fix(infinte): export SWRInfiniteKeyedMutator type by @LeoMcA in #2900
- fix: Improve comparison performance by @shuding in #2973
- Export ScopedMutator type by @joshkel in #2937
- Improve-Type-Safety-and-State-Access-in-useStateWithDeps-Hook by @O-BERNARDOFOEGBU in #3027
Misc
- chore: bump dev deps and change example react version to latest by @huozhi in #2894
- 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
- chore: update pkg script watch by @unliar in #2920
- test: remove console.error times check by @promer94 in #2918
- build: bump bundler for perf by @huozhi in #2929
- Fix bundling of client entry chunks by @huozhi in #2932
- ci: fix ci error and upgrade action version by @promer94 in #2952
- Add SWRInfiniteMutatorOptions type to export by @ludwigbacklund in #2954
- test: update the revalidate function test for useSWRInfinite by @koba04 in #2955
- chore: upgrade nextjs dev dep for e2e testing by @huozhi in #3044
- ci: simplify ci config and bump some deps version by @promer94 in #2770
- chore: reorganize entries by @huozhi in #3048
- Bump bundler and reorganize serialize exports by @huozhi in #3049
- upgrade use-sync-external-store to support react 19 by @huozhi in #3050
New Contributors
- @htunnicliff made their first contribution in #2904
- @saul-atomrigs made their first contribution in #2915
- @unliar made their first contribution in #2920
- @ludwigbacklund made their first contribution in #2954
- @taku-hatano made their first contribution in #2913
- @LeoMcA made their first contribution in #2900
- @devjiwonchoi made their first contribution in #2963
- @vladshcherbin made their first contribution in #3047
- @O-BERNARDOFOEGBU made their first contribution in #3027
Full Changelog: v2.2.5...v2.3.0
v2.2.6-beta.4
What's Changed
Full Changelog: v2.2.6-beta.3...v2.2.6-beta.4
v2.2.6-beta.3
What's Changed
- ci: fix ci error and upgrade action version by @promer94 in #2952
- Add SWRInfiniteMutatorOptions type to export by @ludwigbacklund in #2954
- test: update the revalidate function test for useSWRInfinite by @koba04 in #2955
- Export ScopedMutator type by @joshkel in #2937
- fix: check if config.fallback is undefined by @taku-hatano in #2913
- fix(infinte): export SWRInfiniteKeyedMutator type by @LeoMcA in #2900
- chore: add react peerDeps 19 by @devjiwonchoi in #2963
New Contributors
- @ludwigbacklund made their first contribution in #2954
- @taku-hatano made their first contribution in #2913
- @LeoMcA made their first contribution in #2900
- @devjiwonchoi made their first contribution in #2963
Full Changelog: v2.2.6-beta.2...v2.2.6-beta.3
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