Update dependency @vueuse/core to v10 - autoclosed
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@vueuse/core | 9.13.0 -> 10.0.2 |
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the logs for more information.
Release Notes
vueuse/vueuse
v10.0.2
🐞 Bug Fixes
- Module reference, close #2972 - by @antfu in https://github.com/vueuse/vueuse/issues/2972 (7d001)
View changes on GitHub
v10.0.1
🐞 Bug Fixes
-
nuxt: Do not auto-import
toRef
andtoValue
- by @antfu (9225f) - useIntersectionObserver: Targets length check - by @schelmo in https://github.com/vueuse/vueuse/issues/2968 (b95b6)
View changes on GitHub
v10.0.0
✨ Highlights
-
createReusableTemplate
from https://github.com/antfu/vue-reuse-template -
createTemplatePromise
from https://github.com/antfu/vue-template-promise -
useAnimate
for native animation API, thanks to @tolking - Renamed
resolveRef
totoRef
,resolveUnref
totoValue
, aligning with Vue 3.3: https://github.com/vuejs/core/pull/7997 - Improved tree-shaking
- Cleaned up long-lasting MRs, thanks to all!
🚨 Breaking Changes
- Remove deprecated types - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2656 (c2fee)
- Remove
isFunction
andisString
utils (cb644) -
computedAsync:
- Set shallow defalut to true - by @xiankaiqun and @antfu in https://github.com/vueuse/vueuse/issues/2621 (23c9d)
-
toRef:
- Rename
resolveRef
totoRef
(10e98)
- Rename
-
types:
- Rename
MaybeComputedRef
toMaybeRefOrGetter
(4d757)
- Rename
-
useAxios:
-
error
should return typeunknown
- by @jbaubree and @antfu in https://github.com/vueuse/vueuse/issues/2807 (d8d73) - Remove deprecated apis (1f8b9)
- Reject promise on
execute
- by @FRSgit and @antfu in https://github.com/vueuse/vueuse/issues/2485 (edece)
-
-
useColorMode:
- Enable
disableTransition
by default (5c82c)
- Enable
-
useElementVisibility:
- Use useIntersectionObserver instead of scroll event handler - by @curtgrimes in https://github.com/vueuse/vueuse/issues/2551 (74b00)
-
useEventBus,createEventHook:
- Dedupe registration of the same function - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2748 (dd514)
-
useFullscreen:
- Better cross-platform compatibility - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2915 (2e467)
-
useIDBKeyval:
- Return format changed, add
isFinished
- by @jssullivan and james.sullivan in https://github.com/vueuse/vueuse/issues/2474 (ef281)
- Return format changed, add
-
useInfiniteScroll:
- Improve loading strategies, close #1701, close #1685 - by @antfu in https://github.com/vueuse/vueuse/issues/1701 and https://github.com/vueuse/vueuse/issues/1685 (d3a2b)
-
useSwipe:
- Use literal for swipe direction instead of enum (f285c)
-
useToFixed:
- Remove deprecated function (a6e5b)
-
useUserMedia:
- Add constraints - remove deviceIds - by @mango-martin in https://github.com/vueuse/vueuse/issues/2032 (8f2a3)
- Remove deprecated apis (85468)
-
useWebNotification:
- Should be exposed as EventHooksOn - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2821 (bcd2a)
-
useWindowSize:
- Use media query instead of
orientationchange
listener - by @zhousg and @antfu in https://github.com/vueuse/vueuse/issues/2919 (4e7b0)
- Use media query instead of
🚀 Features
- Update deps (e75a5)
- Improve tree-shaking (3275e)
-
createEventHook:
- Allow awaiting on
trigger
- by @Akryum and @antfu in https://github.com/vueuse/vueuse/issues/2824 (31347)
- Allow awaiting on
-
createGlobalState:
- Allow passing initial args - by @jd-solanki and @antfu in https://github.com/vueuse/vueuse/issues/2790 (f21b2)
-
createReusableTemplate:
- New function - by @antfu in https://github.com/vueuse/vueuse/issues/2961 (bd53c)
-
createTemplatePromise:
- New function - by @antfu and Enzo Innocenzi in https://github.com/vueuse/vueuse/issues/2957 (13169)
-
onKeyStroke:
- Support ignoring repeated stroke - by @vaakian in https://github.com/vueuse/vueuse/issues/2652 (22ca5)
-
reactiveOmit:
- Add predicate parameter - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2849 (2e297)
-
reactivePick:
- Add predicate parameter - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2850 (0bde4)
-
toRef:
- Support two argument overrides from Vue (f307f)
-
toValue:
- Rename
resolveUnref
totoValue
(0a72b)
- Rename
-
useAnimate:
- New function - by @tolking and @antfu in https://github.com/vueuse/vueuse/issues/2109 (bcf5d)
-
useArrayDifference:
- New function - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2710 (a2a33)
-
useArrayIncludes:
- New function - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2708 (4d6bc)
-
useArrayUnique:
- Add a custom function to deduplicate - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2612 (c8c30)
-
useAsyncValidator:
- Add immediate and execute - by @jaw52 and @antfu in https://github.com/vueuse/vueuse/issues/2899 (79176)
- Add
manual
option - by @jaw52 and @antfu in https://github.com/vueuse/vueuse/issues/2903 (16461)
-
useAxios:
- Added
onFinish
callback - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2829 (a2f33) - Added
initialData
andresetOnExecute
options - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2791 (f54a3)
- Added
-
useBreakpoints:
- Getting current breakpoints - by @ineshbose and @antfu in https://github.com/vueuse/vueuse/issues/2906 (bbabd)
-
useBrowserLocation:
- Two-way binding - by @sxzz in https://github.com/vueuse/vueuse/issues/2168 (a860c)
-
useColorMode:
- Support passing element as
selector
- by @Wing-9527 and @antfu in https://github.com/vueuse/vueuse/issues/2760 (02ccc) - Expose
system
andstore
ref, close #2023 - by @antfu in https://github.com/vueuse/vueuse/issues/2023 (d150c)
- Support passing element as
-
useCssVar:
- Introduce
observe
option - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2800 (ae6e1)
- Introduce
-
useCycleList:
- Allow receiving reactive list - by @hjJunior and @antfu in https://github.com/vueuse/vueuse/issues/2864 (b65c2)
-
useDark:
- Passthrough default handler from
useColorSchema
- by @godismyjudge95 and @antfu in https://github.com/vueuse/vueuse/issues/2866 (d6d35)
- Passthrough default handler from
-
useDark, useColorMode:
- Introduce
disableTransition
option (320ab)
- Introduce
-
useDraggable:
- Introduce
axis
option - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2948 (0842a) - Support
capture
option - by @faga295 and @antfu in https://github.com/vueuse/vueuse/issues/2725 (3996d)
- Introduce
-
useFetch:
- Update data on success - by @pbrzosko and Przemyslaw Brzosko in https://github.com/vueuse/vueuse/issues/2711 (78cfb)
-
useFileDialog:
- Add listener for file change events - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2893 (5e697)
-
useFirestore:
- Support delay for autoDispose, fixes #2252 - by @Zehir in https://github.com/vueuse/vueuse/issues/2276 and https://github.com/vueuse/vueuse/issues/2252 (05781)
-
useIdle:
- Add
reset
capability - by @nahvego and @antfu in https://github.com/vueuse/vueuse/issues/2880 (f4d35)
- Add
-
useIntersectionObserver:
- Support for
Pausable
interface - by @Mini-ghost and @antfu in https://github.com/vueuse/vueuse/issues/2883 (4b336) - Allow multiple targets - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2964 (f87f8)
- Support for
-
useMouse:
- Support
type: screen
- by @francoislevesque in https://github.com/vueuse/vueuse/issues/2467 (39d18)
- Support
-
useParentElement:
- New function - by @jd-solanki and @antfu in https://github.com/vueuse/vueuse/issues/2855 (e8168)
-
usePerformanceObserver:
- New function - by @LockingReal, Admin and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2736 (21536)
-
useResizeObserver:
- Support element list - by @acyza and @antfu in https://github.com/vueuse/vueuse/issues/2841 (3e187)
-
useRouteQuery,useRouteParams:
- New
transform
handler - by @edumudu and @antfu in https://github.com/vueuse/vueuse/issues/2191 (d23ca)
- New
-
useSortable:
- New function - by @Alfred-Skyblue, @okxiaoliang4 and @antfu in https://github.com/vueuse/vueuse/issues/2763 (6bc60)
-
useSupported:
- Support tracking reactivity for the callback function - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2904 (55a32)
-
useSwipe, usePointerSwipe, useTransition:
- Improve tree-shaking - by @webistomin and @antfu in https://github.com/vueuse/vueuse/issues/2863 (08c21)
-
useTextareaAutosize:
- Added
styleTarget
option to style other element - by @jd-solanki in https://github.com/vueuse/vueuse/issues/2312 (a3e95)
- Added
-
useTransition:
- Expose transition utility for manual control - by @scottbedard in https://github.com/vueuse/vueuse/issues/2743 (526d5)
- Support
MaybeComputedRef
- by @zhiyuanzmj in https://github.com/vueuse/vueuse/issues/2871 (5944e)
-
useVModel:
- Add
shouldEmit
hook - by @baiwusanyu-c and @antfu in https://github.com/vueuse/vueuse/issues/2836 (f8a53)
- Add
-
watch:
- Shorthands for watch - by @mrhammadasif in https://github.com/vueuse/vueuse/issues/2651 (b4ec7)
🐞 Bug Fixes
- Use ts-ignore instead of ts-expect-error for version-specifc errors - by @sodatea in https://github.com/vueuse/vueuse/issues/2802 (37ec7)
- Upgrade vue-demi (976d8)
- onStartTyping: Fix char ascii - by @meenie-net in https://github.com/vueuse/vueuse/issues/2932 (e9ab3)
- toRef: Improve types overload, close #2925 - by @antfu in https://github.com/vueuse/vueuse/issues/2925 (cb6f9)
- useArrayDifference: Error with falsey - by @simpleoo0o and lix in https://github.com/vueuse/vueuse/issues/2869 (41858)
- useAsyncState: Fix toThrowError error type - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2898 (b636f)
- useAsyncValidator: Incorrect condition for choosing constructor - by @theruziev in https://github.com/vueuse/vueuse/issues/2788 (93b45)
- useDevicesList: Show devices for Firefox - by @felixzapata in https://github.com/vueuse/vueuse/issues/2798 (0823d)
-
useElementHover:
window
is not defined - by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2793 (c86f2) - useFetch: Abort before updating state - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2805 (fff45)
- useFullscreen: Handle Safari iOS - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2822 (9d394)
- useMounted: Check for the current instance (1aab1)
- useScroll: Add support for row-reverse and column-reverse - by @OneLoneFox and @antfu in https://github.com/vueuse/vueuse/issues/2577 (23b9a)
- useSortable: Order of dom and array is different - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2926 (3a508)
- watchDeep,watchImmediate: Fix callback function execution logic - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2951 (e6e25)
🏎 Performance
- useStorageAsync,useFetch: Replace setTimeout with Promise - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2917 (8bd63)
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by igswsihw-wmadepbot