更新日志
请访问 SWR release page 查看所有的历史版本。
v2.3.8
发布于 Mon Dec 15 2025.
What's Changed
- deps: upgrade dev deps for build by @promer94 in https://github.com/vercel/swr/pull/4188
- update use-sync-external-store to latest by @huozhi in https://github.com/vercel/swr/pull/4189
- fix: cve-2025-55182 critical rce vulnerability by @PierreCrb in https://github.com/vercel/swr/pull/4192
- fix: cve-2025-55184 & CVE-2025-55183 by @PierreCrb in https://github.com/vercel/swr/pull/4198
- upgrade dev dep nextjs by @huozhi in https://github.com/vercel/swr/pull/4199
- update dev dependencies to address cve by @PierreCrb in https://github.com/vercel/swr/pull/4200
- enhance: Improve TSDoc comments by @shuding in https://github.com/vercel/swr/pull/4203
- test: Import
actfrom React by @shuding in https://github.com/vercel/swr/pull/4202
New Contributors
- @PierreCrb made their first contribution in https://github.com/vercel/swr/pull/4192
Full Changelog: https://github.com/vercel/swr/compare/v2.3.7...v2.3.8
v2.3.7
发布于 Fri Nov 28 2025.
What's Changed
- deps: upgrade ci node version to 22 by @promer94 in https://github.com/vercel/swr/pull/4184
- deps: upgrade pnpm version by @promer94 in https://github.com/vercel/swr/pull/4185
- deps: upgrade playwright version by @promer94 in https://github.com/vercel/swr/pull/4186
- deps: upgrade eslint version and fix lint problem by @promer94 in https://github.com/vercel/swr/pull/4187
- feat: Add
strictServerPrefetchWarningby @shuding in https://github.com/vercel/swr/pull/4183
Full Changelog: https://github.com/vercel/swr/compare/v2.3.6...v2.3.7
v2.3.6
发布于 Mon Aug 11 2025.
Patches
- fix: do not error when not enabled during suspense by @huozhi in https://github.com/vercel/swr/pull/4156
Full Changelog: https://github.com/vercel/swr/compare/v2.3.5...v2.3.6
v2.3.5
发布于 Sat Aug 09 2025.
Patches
- perf: optimize
useSWRConfigwithuseMemoto maintain stable reference by @samuel871211 in https://github.com/vercel/swr/pull/4110 https://github.com/vercel/swr/pull/4076 - fix: react.use should not depend on data condition by @huozhi in https://github.com/vercel/swr/pull/4150
Chores
- doc: Sync
PublicConfiguration.onDiscardedtsdoc with SWR official website by @samuel871211 in - test: e2e test for 2702 by @promer94 in https://github.com/vercel/swr/pull/4154
New Contributors
- @eungwang1 made their first contribution in https://github.com/vercel/swr/pull/2947
Full Changelog: https://github.com/vercel/swr/compare/v2.3.4...v2.3.5
v2.3.5-beta.0
发布于 Wed Aug 06 2025.
Patches
- perf: optimize
useSWRConfigwithuseMemoto maintain stable reference by @samuel871211 in https://github.com/vercel/swr/pull/4110 - doc: Sync
PublicConfiguration.onDiscardedtsdoc with SWR official website by @samuel871211 in https://github.com/vercel/swr/pull/4076 - feat: modify cache type to allow generic usage by @eungwang1 in https://github.com/vercel/swr/pull/2947
- Revert "feat: modify cache type to allow generic usage" by @huozhi in https://github.com/vercel/swr/pull/4151
- fix: react.use should not depend on data condition by @huozhi in https://github.com/vercel/swr/pull/4150
New Contributors
- @eungwang1 made their first contribution in https://github.com/vercel/swr/pull/2947
Full Changelog: https://github.com/vercel/swr/compare/v2.3.4...v2.3.5-beta.0