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