feedback
feedback copied to clipboard
fix(deps): update dependency swr to v2.2.5
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
swr (source) | 2.0.4 -> 2.2.5 |
Release Notes
vercel/swr (swr)
v2.2.5
Patches
- types: isLoading typed as boolean when using fallbackData (#​2866) by @​yjrhgvbn in https://github.com/vercel/swr/pull/2875
- fix: allow onErrorRetry on inactive tab without focus/reconnect revalidation by @​qkdreyer in https://github.com/vercel/swr/pull/2848
- feat: pass a function to the revalidate option in mutate by @​koba04 in https://github.com/vercel/swr/pull/2862
- fix: SWRConfiguration type by @​hulla-dev in https://github.com/vercel/swr/pull/2882
Misc
- build: use new bundle convention by @​huozhi in https://github.com/vercel/swr/pull/2865
- chore: update pnpm-lock.yaml by @​koba04 in https://github.com/vercel/swr/pull/2874
- chore: remove useless comment by @​kongmoumou in https://github.com/vercel/swr/pull/2868
- test: run pnpm test on CI by @​koba04 in https://github.com/vercel/swr/pull/2872
- fix: all act warnings by @​koba04 in https://github.com/vercel/swr/pull/2861
- Update bundler by @​huozhi in https://github.com/vercel/swr/pull/2830
New Contributors
- @​kongmoumou made their first contribution in https://github.com/vercel/swr/pull/2868
- @​yjrhgvbn made their first contribution in https://github.com/vercel/swr/pull/2875
- @​qkdreyer made their first contribution in https://github.com/vercel/swr/pull/2848
- @​hulla-dev made their first contribution in https://github.com/vercel/swr/pull/2882
Full Changelog: https://github.com/vercel/swr/compare/v2.2.4...v2.2.5
v2.2.4
Patches
- Revert "Remove
index.js
suffix ofuse-sync-external-store/shim
to support React Native" by @​huozhi in https://github.com/vercel/swr/pull/2802
Full Changelog: https://github.com/vercel/swr/compare/v2.2.3...v2.2.4
v2.2.3
Patches
- fix: remove permissive type by @​wcatron in https://github.com/vercel/swr/pull/2759
- Remove
index.js
suffix ofuse-sync-external-store/shim
to support React Native by @​malash in https://github.com/vercel/swr/pull/2767 - fix: default to fetch type in keyed mutator by @​linkvt in https://github.com/vercel/swr/pull/2753
- types: export mutation types by @​promer94 in https://github.com/vercel/swr/pull/2780
Misc
- test: update tests, use matched types for mutate api by @​huozhi in https://github.com/vercel/swr/pull/2781
New Contributors
- @​wcatron made their first contribution in https://github.com/vercel/swr/pull/2759
- @​malash made their first contribution in https://github.com/vercel/swr/pull/2767
- @​linkvt made their first contribution in https://github.com/vercel/swr/pull/2753
Full Changelog: https://github.com/vercel/swr/compare/v2.2.2...v2.2.3
v2.2.2
What's Changed
- fix: It should use startTransition only when IS_REACT_LEGACY is false by @​TopGrd in https://github.com/vercel/swr/pull/2756
- fix: simplify
ArgumentsTuple
by @​Andarist in https://github.com/vercel/swr/pull/2761
New Contributors
- @​TopGrd made their first contribution in https://github.com/vercel/swr/pull/2756
- @​Andarist made their first contribution in https://github.com/vercel/swr/pull/2761
Full Changelog: https://github.com/vercel/swr/compare/v2.2.1...v2.2.2
v2.2.1
What's Changed
- Add use client directive for client components exports by @​huozhi in https://github.com/vercel/swr/pull/2696
- remove the 'use client' directive and add client-only to useSWR entry. by @​promer94 in https://github.com/vercel/swr/pull/2705
- fix: should serialize subscription fn key by @​promer94 in https://github.com/vercel/swr/pull/2711
- build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @​dependabot in https://github.com/vercel/swr/pull/2720
- fix: only make data and error update as a non-blocking transition by @​promer94 in https://github.com/vercel/swr/pull/2691
- build: generate d.mts for for .mjs, so typescript could resolve types correctly by @​promer94 in https://github.com/vercel/swr/pull/2695
- fix(infinite): Fix the ability to use preload along with useSWRInfinite by @​agadzik in https://github.com/vercel/swr/pull/2723
- fix: Ensure that using preload with useSWRInfinite returns back an array of data by @​agadzik in https://github.com/vercel/swr/pull/2726
- fix: preload request should be consumed within
revalidate
to supportparallel
option by @​promer94 in https://github.com/vercel/swr/pull/2727 - Fix the issue that useSWR revalidation isn't triggered if the useSWR call happens after mutation by @​Ponyets in https://github.com/vercel/swr/pull/2731
- fix(mutate): fix types of mutate/trigger; make mutate/trigger always return the result of fetcher by @​Ponyets in https://github.com/vercel/swr/pull/2708
- build(deps-dev): bump tough-cookie from 4.1.2 to 4.1.3 by @​dependabot in https://github.com/vercel/swr/pull/2735
- build(deps-dev): bump json5 from 2.2.1 to 2.2.3 by @​dependabot in https://github.com/vercel/swr/pull/2736
- docs: use isLoading instead of !data by @​pawfa in https://github.com/vercel/swr/pull/2734
New Contributors
- @​agadzik made their first contribution in https://github.com/vercel/swr/pull/2723
- @​Ponyets made their first contribution in https://github.com/vercel/swr/pull/2731
- @​pawfa made their first contribution in https://github.com/vercel/swr/pull/2734
Full Changelog: https://github.com/vercel/swr/compare/v2.2.0...v2.2.1
v2.2.0
What's Changed
- feat: use
React.use
API by @​himself65 in https://github.com/vercel/swr/pull/2596 - feat: improve preload and suspense integration by @​promer94 in https://github.com/vercel/swr/pull/2658
- feat: Add react-server bundle for core and infinite by @​huozhi in https://github.com/vercel/swr/pull/2664
- fix: remove
startTransition
so mutation hook could update immediately by @​promer94 in https://github.com/vercel/swr/pull/2654 - fix: keepPreviousData should also work in suspense by @​promer94 in https://github.com/vercel/swr/pull/2649
- fix: do unsubscribe synchronously by @​promer94 in https://github.com/vercel/swr/pull/2648
- fix: reset the error when mutate succeeded by @​koba04 in https://github.com/vercel/swr/pull/2592
- fix: Fix mutation types order by @​huozhi in https://github.com/vercel/swr/pull/2669
- fix: Conditional Typing in useSWRMutation to Allow Optional ExtraArg Without Explicitly Passing Undefined by @​saengmotmi in https://github.com/vercel/swr/pull/2666
- fix: Pass displayed data as second parameter of functional optimistic data by @​francescogior in https://github.com/vercel/swr/pull/2668
- fix: Adjust rsc exports by @​huozhi in https://github.com/vercel/swr/pull/2673
- fix: Revert "fix: remove startTransition so mutation hook could update immediately (#​2654)" by @​huozhi in https://github.com/vercel/swr/pull/2681
- types: fix immutable export paths by @​huozhi in https://github.com/vercel/swr/pull/2670
- types: improve
useSWRMutation
type. by @​promer94 in https://github.com/vercel/swr/pull/2604 - chore: upgrade to pnpm8 by @​promer94 in https://github.com/vercel/swr/pull/2605
- ci: drop unused inputs and step by @​nicolewhite in https://github.com/vercel/swr/pull/2624
- ci: update github token by @​huozhi in https://github.com/vercel/swr/pull/2636
- ci: use gh token credentials for cloning repo by @​huozhi in https://github.com/vercel/swr/pull/2637
- ci: use script to bump semver version by @​huozhi in https://github.com/vercel/swr/pull/2651
- ci: Add daily test job for react canary by @​suyanhanx in https://github.com/vercel/swr/pull/2601
- build: fix equal signs by @​huozhi in https://github.com/vercel/swr/pull/2628
- build: fix bad runner by @​huozhi in https://github.com/vercel/swr/pull/2629
- build: use prepatch/minor/major command for prerelease by @​huozhi in https://github.com/vercel/swr/pull/2627
- build: fix release semver by @​huozhi in https://github.com/vercel/swr/pull/2630
- build: add trigger release job by @​huozhi in https://github.com/vercel/swr/pull/2615
- build: determin release tag by @​huozhi in https://github.com/vercel/swr/pull/2616
- build: fix conflict types for index and index.react-server by @​huozhi in https://github.com/vercel/swr/pull/2677
- test: fix flaky suspense test in canary by @​promer94 in https://github.com/vercel/swr/pull/2655
- test: improve preload test by @​promer94 in https://github.com/vercel/swr/pull/2657
- test: add e2e test for react-server entry by @​promer94 in https://github.com/vercel/swr/pull/2671
- test: add a new test setting to run tests with build files by @​koba04 in https://github.com/vercel/swr/pull/2583
New Contributors
- @​suyanhanx made their first contribution in https://github.com/vercel/swr/pull/2601
- @​nicolewhite made their first contribution in https://github.com/vercel/swr/pull/2624
- @​saengmotmi made their first contribution in https://github.com/vercel/swr/pull/2666
- @​francescogior made their first contribution in https://github.com/vercel/swr/pull/2668
Full Changelog: https://github.com/vercel/swr/compare/v2.1.5...v2.2.0
v2.1.5
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
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
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
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
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
v2.1.0
Configuration
đź“… Schedule: Branch creation - "after 2am and before 5am every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.