Change Log
Please visit the SWR release page for all history releases.
v2.3.0
Published on Mon Dec 23 2024.
Feature
- Support promises as fallback data by @shuding in https://github.com/vercel/swr/pull/2891
- Allow to use with React 19 by @vladshcherbin and @devjiwonchoi in https://github.com/vercel/swr/pull/3047, https://github.com/vercel/swr/pull/2963
Patches
- fix #3030 and run relateive test in edge-runtime by @promer94 in https://github.com/vercel/swr/pull/3036
- fix: Only suspend when using the
fallback
by @shuding in https://github.com/vercel/swr/pull/3045 - fix type check in tests by @huozhi in https://github.com/vercel/swr/pull/3052
- fix: Replace the deprecated 'window' with 'globalThis' for Deno by @saul-atomrigs in https://github.com/vercel/swr/pull/2915
- fix: check if config.fallback is undefined by @taku-hatano in https://github.com/vercel/swr/pull/2913
- fix(infinte): export SWRInfiniteKeyedMutator type by @LeoMcA in https://github.com/vercel/swr/pull/2900
- fix: Improve comparison performance by @shuding in https://github.com/vercel/swr/pull/2973
- Export ScopedMutator type by @joshkel in https://github.com/vercel/swr/pull/2937
- Improve-Type-Safety-and-State-Access-in-useStateWithDeps-Hook by @O-BERNARDOFOEGBU in https://github.com/vercel/swr/pull/3027
Misc
- chore: bump dev deps and change example react version to latest by @huozhi in https://github.com/vercel/swr/pull/2894
- build: fix beta release job by @huozhi in https://github.com/vercel/swr/pull/2895
- chore: Improve test coverage by @shuding in https://github.com/vercel/swr/pull/2903
- chore: simplify test coverage strategy by @huozhi in https://github.com/vercel/swr/pull/2909
- build: simplify react-server export and update bundler by @huozhi in https://github.com/vercel/swr/pull/2897
- examples: add RSC streaming pre-render with promise fallback example by @promer94 in https://github.com/vercel/swr/pull/2905
- Drop client-only by @huozhi in https://github.com/vercel/swr/pull/2910
- Mark package as side-effect free by @htunnicliff in https://github.com/vercel/swr/pull/2904
- Drop exports module field by @huozhi in https://github.com/vercel/swr/pull/2911
- chore: update pkg script watch by @unliar in https://github.com/vercel/swr/pull/2920
- test: remove console.error times check by @promer94 in https://github.com/vercel/swr/pull/2918
- build: bump bundler for perf by @huozhi in https://github.com/vercel/swr/pull/2929
- Fix bundling of client entry chunks by @huozhi in https://github.com/vercel/swr/pull/2932
- ci: fix ci error and upgrade action version by @promer94 in https://github.com/vercel/swr/pull/2952
- Add SWRInfiniteMutatorOptions type to export by @ludwigbacklund in https://github.com/vercel/swr/pull/2954
- test: update the revalidate function test for useSWRInfinite by @koba04 in https://github.com/vercel/swr/pull/2955
- chore: upgrade nextjs dev dep for e2e testing by @huozhi in https://github.com/vercel/swr/pull/3044
- ci: simplify ci config and bump some deps version by @promer94 in https://github.com/vercel/swr/pull/2770
- chore: reorganize entries by @huozhi in https://github.com/vercel/swr/pull/3048
- Bump bundler and reorganize serialize exports by @huozhi in https://github.com/vercel/swr/pull/3049
- upgrade use-sync-external-store to support react 19 by @huozhi in https://github.com/vercel/swr/pull/3050
New Contributors
- @htunnicliff made their first contribution in https://github.com/vercel/swr/pull/2904
- @saul-atomrigs made their first contribution in https://github.com/vercel/swr/pull/2915
- @unliar made their first contribution in https://github.com/vercel/swr/pull/2920
- @ludwigbacklund made their first contribution in https://github.com/vercel/swr/pull/2954
- @taku-hatano made their first contribution in https://github.com/vercel/swr/pull/2913
- @LeoMcA made their first contribution in https://github.com/vercel/swr/pull/2900
- @devjiwonchoi made their first contribution in https://github.com/vercel/swr/pull/2963
- @vladshcherbin made their first contribution in https://github.com/vercel/swr/pull/3047
- @O-BERNARDOFOEGBU made their first contribution in https://github.com/vercel/swr/pull/3027
Full Changelog: https://github.com/vercel/swr/compare/v2.2.5...v2.3.0
v2.2.6-beta.4
Published on Sat Jun 01 2024.
What's Changed
- fix: Improve comparison performance by @shuding in https://github.com/vercel/swr/pull/2973
Full Changelog: https://github.com/vercel/swr/compare/v2.2.6-beta.3...v2.2.6-beta.4
v2.2.6-beta.3
Published on Fri May 24 2024.
What's Changed
- ci: fix ci error and upgrade action version by @promer94 in https://github.com/vercel/swr/pull/2952
- Add SWRInfiniteMutatorOptions type to export by @ludwigbacklund in https://github.com/vercel/swr/pull/2954
- test: update the revalidate function test for useSWRInfinite by @koba04 in https://github.com/vercel/swr/pull/2955
- Export ScopedMutator type by @joshkel in https://github.com/vercel/swr/pull/2937
- fix: check if config.fallback is undefined by @taku-hatano in https://github.com/vercel/swr/pull/2913
- fix(infinte): export SWRInfiniteKeyedMutator type by @LeoMcA in https://github.com/vercel/swr/pull/2900
- chore: add react peerDeps 19 by @devjiwonchoi in https://github.com/vercel/swr/pull/2963
New Contributors
- @ludwigbacklund made their first contribution in https://github.com/vercel/swr/pull/2954
- @taku-hatano made their first contribution in https://github.com/vercel/swr/pull/2913
- @LeoMcA made their first contribution in https://github.com/vercel/swr/pull/2900
- @devjiwonchoi made their first contribution in https://github.com/vercel/swr/pull/2963
Full Changelog: https://github.com/vercel/swr/compare/v2.2.6-beta.2...v2.2.6-beta.3
v2.2.6-beta.2
Published on Sat Apr 06 2024.
Patches
- build: bump bundler for perf by @huozhi in https://github.com/vercel/swr/pull/2929
- Fix bundling of client entry chunks by @huozhi in https://github.com/vercel/swr/pull/2932
Full Changelog: https://github.com/vercel/swr/compare/v2.2.6-beta.1...v2.2.6-beta.2
v2.2.6-beta.1
Published on Sun Mar 31 2024.
What's Changed
- build: fix beta release job by @huozhi in https://github.com/vercel/swr/pull/2895
- chore: Improve test coverage by @shuding in https://github.com/vercel/swr/pull/2903
- chore: simplify test coverage strategy by @huozhi in https://github.com/vercel/swr/pull/2909
- build: simplify react-server export and update bundler by @huozhi in https://github.com/vercel/swr/pull/2897
- examples: add RSC streaming pre-render with promise fallback example by @promer94 in https://github.com/vercel/swr/pull/2905
- Drop client-only by @huozhi in https://github.com/vercel/swr/pull/2910
- Mark package as side-effect free by @htunnicliff in https://github.com/vercel/swr/pull/2904
- Drop exports module field by @huozhi in https://github.com/vercel/swr/pull/2911
- fix: Replace the deprecated 'window' with 'globalThis' for Deno by @saul-atomrigs in https://github.com/vercel/swr/pull/2915
- chore: update pkg script watch by @unliar in https://github.com/vercel/swr/pull/2920
- test: remove console.error times check by @promer94 in https://github.com/vercel/swr/pull/2918
New Contributors
- @htunnicliff made their first contribution in https://github.com/vercel/swr/pull/2904
- @saul-atomrigs made their first contribution in https://github.com/vercel/swr/pull/2915
- @unliar made their first contribution in https://github.com/vercel/swr/pull/2920
Full Changelog: https://github.com/vercel/swr/compare/v2.2.6-beta.0...v2.2.6-beta.1