Sourced from swr's releases.
v2.3.0
Feature
- Support promises as fallback data by
@shuding
in vercel/swr#2891- Allow to use with React 19 by
@vladshcherbin
and@devjiwonchoi
in vercel/swr#3047, vercel/swr#2963Patches
- fix #3030 and run relateive test in edge-runtime by
@promer94
in vercel/swr#3036- fix: Only suspend when using the
fallback
by@shuding
in vercel/swr#3045- fix type check in tests by
@huozhi
in vercel/swr#3052- fix: Replace the deprecated 'window' with 'globalThis' for Deno by
@saul-atomrigs
in vercel/swr#2915- fix: check if config.fallback is undefined by
@taku-hatano
in vercel/swr#2913- fix(infinte): export SWRInfiniteKeyedMutator type by
@LeoMcA
in vercel/swr#2900- fix: Improve comparison performance by
@shuding
in vercel/swr#2973- Export ScopedMutator type by
@joshkel
in vercel/swr#2937- Improve-Type-Safety-and-State-Access-in-useStateWithDeps-Hook by
@O-BERNARDOFOEGBU
in vercel/swr#3027Misc
- chore: bump dev deps and change example react version to latest by
@huozhi
in vercel/swr#2894- build: fix beta release job by
@huozhi
in vercel/swr#2895- chore: Improve test coverage by
@shuding
in vercel/swr#2903- chore: simplify test coverage strategy by
@huozhi
in vercel/swr#2909- build: simplify react-server export and update bundler by
@huozhi
in vercel/swr#2897- examples: add RSC streaming pre-render with promise fallback example by
@promer94
in vercel/swr#2905- Drop client-only by
@huozhi
in vercel/swr#2910- Mark package as side-effect free by
@htunnicliff
in vercel/swr#2904- Drop exports module field by
@huozhi
in vercel/swr#2911- chore: update pkg script watch by
@unliar
in vercel/swr#2920- test: remove console.error times check by
@promer94
in vercel/swr#2918- build: bump bundler for perf by
@huozhi
in vercel/swr#2929- Fix bundling of client entry chunks by
@huozhi
in vercel/swr#2932- ci: fix ci error and upgrade action version by
@promer94
in vercel/swr#2952- Add SWRInfiniteMutatorOptions type to export by
@ludwigbacklund
in vercel/swr#2954- test: update the revalidate function test for useSWRInfinite by
@koba04
in vercel/swr#2955- chore: upgrade nextjs dev dep for e2e testing by
@huozhi
in vercel/swr#3044- ci: simplify ci config and bump some deps version by
@promer94
in vercel/swr#2770- chore: reorganize entries by
@huozhi
in vercel/swr#3048- Bump bundler and reorganize serialize exports by
@huozhi
in vercel/swr#3049- upgrade use-sync-external-store to support react 19 by
@huozhi
in vercel/swr#3050New Contributors
@htunnicliff
made their first contribution in vercel/swr#2904@saul-atomrigs
made their first contribution in vercel/swr#2915@unliar
made their first contribution in vercel/swr#2920@ludwigbacklund
made their first contribution in vercel/swr#2954@taku-hatano
made their first contribution in vercel/swr#2913@LeoMcA
made their first contribution in vercel/swr#2900
... (truncated)
f22b274
2.3.007d5178
Improve-Type-Safety-and-State-Access-in-useStateWithDeps-Hook (#3027)076a538
2.2.6-beta.5fbc5a5d
ci: remove the duplicate checks-all script68f401e
fix type check in tests (#3052)7750244
upgrade use-sync-external-store to support react 19 (#3050)0691919
Bump bundler and reorganize serialize exports (#3049)92d97f0
chore: reorganize entries (#3048)b375be7
ci: simplify ci config and bump some deps version (#2770)2160eca
Update React 19 peer dependency version (#3047)