v2.1.2
Patches
- Improved type inferring for
swr/subscription - Adding
SWRSubscriptionOptionstype forswr/subscription
Changes
- test: add typing test for empty config by @koba04 in https://github.com/vercel/swr/pull/2521
- test: fix syntax error in Equal type alias implementation by @SACHINnANYAKKARA in https://github.com/vercel/swr/pull/2517
- chore: remove engines by @promer94 in https://github.com/vercel/swr/pull/2536
- types: improve
useSWRSubscriptiontypes by @promer94 in https://github.com/vercel/swr/pull/2535 - Rename subscription types by @huozhi in https://github.com/vercel/swr/pull/2537
New Contributors
- @SACHINnANYAKKARA made their first contribution in https://github.com/vercel/swr/pull/2517
Full Changelog: https://github.com/vercel/swr/compare/v2.1.1...v2.1.2
Fetched April 18, 2026
