Releases: vercel/swr
Releases Β· vercel/swr
v2.4.0
What's Changed
- chore: Migrate suspense related tests to e2e by @promer94 in #4204
- CI: add missing flag for canary test by @promer94 in #4206
- fix: Ensure useSWRImmutable overrides global refreshInterval by @CODEAbhinav-art in #4208
- fix: Extra render when changing to new key with useSWRImmutable by @promer94 in #4209
- fix: isHydration will cause unnecessary rerender by @promer94 in #4212
- fix: Ensure preload runs only on client by @Copilot in #4213
New Contributors
- @CODEAbhinav-art made their first contribution in #4208
- @Copilot made their first contribution in #4213
Full Changelog: v2.3.8...v2.4.0
v2.3.8
What's Changed
- deps: upgrade dev deps for build by @promer94 in #4188
- update use-sync-external-store to latest by @huozhi in #4189
- fix: cve-2025-55182 critical rce vulnerability by @PierreCrb in #4192
- fix: cve-2025-55184 & CVE-2025-55183 by @PierreCrb in #4198
- upgrade dev dep nextjs by @huozhi in #4199
- update dev dependencies to address cve by @PierreCrb in #4200
- enhance: Improve TSDoc comments by @shuding in #4203
- test: Import
actfrom React by @shuding in #4202
New Contributors
- @PierreCrb made their first contribution in #4192
Full Changelog: v2.3.7...v2.3.8
v2.3.7
What's Changed
- deps: upgrade ci node version to 22 by @promer94 in #4184
- deps: upgrade pnpm version by @promer94 in #4185
- deps: upgrade playwright version by @promer94 in #4186
- deps: upgrade eslint version and fix lint problem by @promer94 in #4187
- feat: Add
strictServerPrefetchWarningby @shuding in #4183
Full Changelog: v2.3.6...v2.3.7
v2.3.6
v2.3.5
Patches
- perf: optimize
useSWRConfigwithuseMemoto 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.onDiscardedtsdoc 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
useSWRConfigwithuseMemoto maintain stable reference by @samuel871211 in #4110 - doc: Sync
PublicConfiguration.onDiscardedtsdoc 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
datatype 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
throwOnErrorin 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
useSWRHandlerby @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