Releases: vercel/swr
Releases · vercel/swr
v2.2.0-beta.0
What's Changed
- test: add a new test setting to run tests with build files by @koba04 in #2583
- feat: use
React.use
API by @himself65 in #2596 - ci: Add daily test job for react canary by @suyanhanx in #2601
- build: add trigger release job by @huozhi in #2615
- build: determin release tag by @huozhi in #2616
- chore: upgrade to pnpm8 by @promer94 in #2605
- types: improve
useSWRMutation
type. by @promer94 in #2604 - ci: drop unused inputs and step by @nicolewhite in #2624
- build: use prepatch/minor/major command for prerelease by @huozhi in #2627
- build: fix equal signs by @huozhi in #2628
- build: fix bad runner by @huozhi in #2629
- build: fix release semver by @huozhi in #2630
- ci: update github token by @huozhi in #2636
- ci: use gh token credentials for cloning repo by @huozhi in #2637
New Contributors
- @suyanhanx made their first contribution in #2601
- @nicolewhite made their first contribution in #2624
Full Changelog: v2.1.5...v2.2.0-beta.0
v2.1.5
v2.1.4
What's Changed
- Upgrade bundler by @huozhi in #2557
- examples: fix invalid links by @fxOne in #2559
- types: Allow auto-import by improving generated types by @oosawy in #2563
- fix: pass serialized args to preload fetcher by @oosawy in #2564
- chore: use provenance for release by @HerringtonDarkholme in #2571
- deps: update @testing-library/react to v14 by @koba04 in #2578
- fix: Fix dependency tracking and useSES bug by @shuding and @promer94 in #2576
New Contributors
- @fxOne made their first contribution in #2559
- @oosawy made their first contribution in #2563
- @HerringtonDarkholme made their first contribution in #2571
Full Changelog: v2.1.3...v2.1.4
v2.1.3
What's Changed
- Fix #2548: pass origin key to subcription callback by @Zheaoli in #2550
- Examples: fix type in axios-typescript example by @daochouwangu in #2552
- Update Cache Interface types by @dmmulroy in #2554
- fix: data passed to refreshInterval function is not latest by @hong24 in #2354
- types: allow passing function as
Data
foruseSWRSubscriptionOptions
by @promer94 in #2551
New Contributors
- @Zheaoli made their first contribution in #2550
- @daochouwangu made their first contribution in #2552
- @dmmulroy made their first contribution in #2554
Full Changelog: v2.1.2...v2.1.3
v2.1.2
Patches
- Improved type inferring for
swr/subscription
- Adding
SWRSubscriptionOptions
type forswr/subscription
Changes
- test: add typing test for empty config by @koba04 in #2521
- test: fix syntax error in Equal type alias implementation by @SACHINnANYAKKARA in #2517
- chore: remove engines by @promer94 in #2536
- types: improve
useSWRSubscription
types by @promer94 in #2535 - Rename subscription types by @huozhi in #2537
New Contributors
- @SACHINnANYAKKARA made their first contribution in #2517
Full Changelog: v2.1.1...v2.1.2
v2.1.1
Patches
- refactor: remove useless dataRef, always compare cached data by @promer94 in #2431
- fix: swr infers incorrect
data
type for defaultSWRConfig
generic type by @connorch in #2506
Documentation
New Contributors
Full Changelog: v2.1.0...v2.1.1
v2.1.0
Feature
Checkout subscription docs and useSWRInfinite parallel fetching docs for more details
Patches
- fix: use the latest config in useSWRMutation by @koba04 in #2468
- Fix: type support for suspense and fallbackData(#2396) by @taro-28 in #2452
- Error should be reset when new data comes by @huozhi in #2472
- fix: avoid creating new snapshot if cache is not updated at client during streaming by @promer94 in #2475
- refactor: initialize the cache only on first access by @promer94 in #2479
Misc
- ci: fix publish workflow by @promer94 in #2453
- ci: faster e2e test by @promer94 in #2428
- test: add a test for keepPreviousData without changing key by @koba04 in #2470
- Always assume subscriptions will return sub count from current key by @huozhi in #2460
- test: Fix flaky e2e test by @promer94 in #2476
- chore: Add subscription example by @huozhi in #2480
New Contributors
Full Changelog: v2.0.4...v2.1.0
v2.0.4
Patches
- build: fix release job condition by @huozhi in #2392
- types: fix some mutation type issue by @promer94 in #2421
- fix: Error retry should be handled by global revalidator instead of local revalidation function by @promer94 in #2415
- fix: ensure initCache setter function stays within bounds of subscriptions by @lfbergee in #2411
Misc
New Contributors
Full Changelog: v2.0.3...v2.0.4
v2.0.3
Patches
- fix: parameters passed to subscribe is inconsistent with its declaration by @hong24 in #2353
- fix: when inifinite key changes, should use cached pagesize instead of initialSize by @promer94 in #2386
- fix: make compare function only compare data (#2375) by @Retrospection and @promer94 in #2387 #2389
- fix: initial loading state should be false with revalidation is disabed by @promer94 in #2382
- fix: Ensure hydration matches the SSR result during streaming by @shuding in #2391
Chores
- ci: only run release when tags pushed by @promer94 in #2388
- unify
-
characters in README.md by @jankaifer in #2334
New Contributors
- @hong24 made their first contribution in #2353
- @Retrospection made their first contribution in #2387
- @jankaifer made their first contribution in #2334
Full Changelog: v2.0.2...v2.0.3