Releases: vercel/swr
Releases Β· vercel/swr
v2.3.6
v2.3.5
Patches
- perf: optimize
useSWRConfig
withuseMemo
to maintain stable reference by @samuel871211 in #4110
#4076 - fix: react.use should not depend on data condition by @huozhi in #4150
Chores
- doc: Sync
PublicConfiguration.onDiscarded
tsdoc with SWR official website by @samuel871211 in - test: e2e test for 2702 by @promer94 in #4154
New Contributors
- @eungwang1 made their first contribution in #2947
Full Changelog: v2.3.4...v2.3.5
v2.3.5-beta.0
Patches
- perf: optimize
useSWRConfig
withuseMemo
to maintain stable reference by @samuel871211 in #4110 - doc: Sync
PublicConfiguration.onDiscarded
tsdoc with SWR official website by @samuel871211 in #4076 - feat: modify cache type to allow generic usage by @eungwang1 in #2947
- Revert "feat: modify cache type to allow generic usage" by @huozhi in #4151
- fix: react.use should not depend on data condition by @huozhi in #4150
New Contributors
- @eungwang1 made their first contribution in #2947
Full Changelog: v2.3.4...v2.3.5-beta.0
v2.3.4
What's Changed
- Fix markdown typo by @Nusab19 in #4106
- fix: check "if (!error)" skip error if value is cast to false by @vtgrachev in #4118
- feat: Improve global suspense-enabled
data
type by @oosawy in #4126 - fix: Performance improvement by reducing calls to toString() by @garyhuntddn in #4092
- fix: Optimize the revalidation logic for same key requests. by @agadzik in #4138
New Contributors
- @Nusab19 made their first contribution in #4106
- @vtgrachev made their first contribution in #4118
- @garyhuntddn made their first contribution in #4092
Full Changelog: v2.3.3...v2.3.4
v2.3.3
Patches
- enhance: use empty prototype object by @huozhi in #4099
- Initialise nextFocusRevalidatedAt on mount by @mgoodfellow in #2857
Misc
New Contributors
- @ManuLpz4 made their first contribution in #4103
- @mgoodfellow made their first contribution in #2857
Full Changelog: v2.3.2...v2.3.3
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