更新日志
请访问 SWR release page 查看所有的历史版本。
v2.1.5
发布于 Tue Apr 25 2023.
What's Changed
- fix: missing interop helpers in bundle by @huozhi in https://github.com/vercel/swr/pull/2582
Full Changelog: https://github.com/vercel/swr/compare/v2.1.4...v2.1.5
v2.1.4
发布于 Mon Apr 24 2023.
What's Changed
- Upgrade bundler by @huozhi in https://github.com/vercel/swr/pull/2557
- examples: fix invalid links by @fxOne in https://github.com/vercel/swr/pull/2559
- types: Allow auto-import by improving generated types by @oosawy in https://github.com/vercel/swr/pull/2563
- fix: pass serialized args to preload fetcher by @oosawy in https://github.com/vercel/swr/pull/2564
- chore: use provenance for release by @HerringtonDarkholme in https://github.com/vercel/swr/pull/2571
- deps: update @testing-library/react to v14 by @koba04 in https://github.com/vercel/swr/pull/2578
- fix: Fix dependency tracking and useSES bug by @shuding and @promer94 in https://github.com/vercel/swr/pull/2576
New Contributors
- @fxOne made their first contribution in https://github.com/vercel/swr/pull/2559
- @oosawy made their first contribution in https://github.com/vercel/swr/pull/2563
- @HerringtonDarkholme made their first contribution in https://github.com/vercel/swr/pull/2571
Full Changelog: https://github.com/vercel/swr/compare/v2.1.3...v2.1.4
v2.1.3
发布于 Mon Apr 10 2023.
What's Changed
- Fix #2548: pass origin key to subcription callback by @Zheaoli in https://github.com/vercel/swr/pull/2550
- Examples: fix type in axios-typescript example by @daochouwangu in https://github.com/vercel/swr/pull/2552
- Update Cache Interface types by @dmmulroy in https://github.com/vercel/swr/pull/2554
- fix: data passed to refreshInterval function is not latest by @hong24 in https://github.com/vercel/swr/pull/2354
- types: allow passing function as
Data
foruseSWRSubscriptionOptions
by @promer94 in https://github.com/vercel/swr/pull/2551
New Contributors
- @Zheaoli made their first contribution in https://github.com/vercel/swr/pull/2550
- @daochouwangu made their first contribution in https://github.com/vercel/swr/pull/2552
- @dmmulroy made their first contribution in https://github.com/vercel/swr/pull/2554
Full Changelog: https://github.com/vercel/swr/compare/v2.1.2...v2.1.3
v2.1.2
发布于 Sun Apr 02 2023.
Patches
- Improved type inferring for
swr/subscription
- Adding
SWRSubscriptionOptions
type 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
useSWRSubscription
types 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
v2.1.1
发布于 Wed Mar 22 2023.
Patches
- refactor: remove useless dataRef, always compare cached data by @promer94 in https://github.com/vercel/swr/pull/2431
- fix: swr infers incorrect
data
type for defaultSWRConfig
generic type by @connorch in https://github.com/vercel/swr/pull/2506
Documentation
- docs: update subscription example by @huozhi in https://github.com/vercel/swr/pull/2499
New Contributors
- @connorch made their first contribution in https://github.com/vercel/swr/pull/2506
Full Changelog: https://github.com/vercel/swr/compare/v2.1.0...v2.1.1