Releases: vercel/swr
Releases · vercel/swr
v2.4.2
Patches
- fix: guard against double-unsubscribe removing wrong subscriber in cache.ts by @tomohiro86 in #4252
- Prevent resolved promise to suspend due to missing status by @devjiwonchoi in #4271
Chores
- Update axios versions in the examples by @lukesandberg in #4243
- ci: switch npm publish to OIDC trusted publishing by @huozhi in #4274
- ci: remove registry url by @huozhi in #4277
- ci: update release job by @huozhi in #4278
- 2.4.2 by @huozhi in #4279
- chore: pin pnpm 10.33.0 by @styfle in #4258
- ci: update GitHub Actions for Node 24 by @promer94 in #4254
- chore: remove the axios examples by @huozhi in #4263
New Contributors
- @lukesandberg made their first contribution in #4243
- @tomohiro86 made their first contribution in #4252
Full Changelog: v2.4.1...v2.4.2
v2.4.1
Patches
- Remove deprecated downlevelIteration option by @RyanCavanaugh in #4216
- fix: Fix #4221 by @promer94 in #4223
New Contributors
- @RyanCavanaugh made their first contribution in #4216
Full Changelog: v2.4.0...v2.4.1
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