chore(deps): update dependency @vueuse/core to v10
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@vueuse/core | peerDependencies | major | ^9.3.0 -> ^9.3.0 || ^10.0.0 |
Release Notes
vueuse/vueuse (@vueuse/core)
v10.3.0
🚀 Features
- createReusableTemplate: Inherit attrs - by @wiidede and @antfu in https://github.com/vueuse/vueuse/issues/3226 (a32ae)
- useActiveElement: Search deeply in shadow dom - by @duoduoObama and @antfu in https://github.com/vueuse/vueuse/issues/3208 (296dc)
- useCounter: InitialValue support ref - by @Rock070 in https://github.com/vueuse/vueuse/issues/3266 (6ae3a)
-
useFocus: Support
:focus-visible
- by @onmax and @antfu in https://github.com/vueuse/vueuse/issues/3254 (80329) - useRTDB: Add errorHandler option - by @wobsoriano in https://github.com/vueuse/vueuse/issues/3232 (b5e52)
- useSorted: Accept getter function as source - by @wvffle in https://github.com/vueuse/vueuse/issues/3249 (33a12)
- useSpeechSynthesis: Add reactivity for pitch and rate - by @shestmintsev-kirill in https://github.com/vueuse/vueuse/issues/3205 (ac88f)
🐞 Bug Fixes
- build: Ensure correct typing for node esm - by @xiaoxiangmoe and @antfu in https://github.com/vueuse/vueuse/issues/3209 (e7556)
- createReusableTemplate: Camelize props - by @94726, @antfu and @wvffle in https://github.com/vueuse/vueuse/issues/3253 (d79e1)
- onClickOutside: Fix outside click on html element in ios - by @sibbng in https://github.com/vueuse/vueuse/issues/3252 (9091e)
- reactiveComputed: Unwrap reactive type - by @sxzz in https://github.com/vueuse/vueuse/issues/3215 (17a72)
- router: Improves router functions: synchronize values, adds tests, and optimize performance - by @anteriovieira, @antfu, CJBoy and tzyoo in https://github.com/vueuse/vueuse/issues/3184 (0d02f)
- toRefs: Don't trigger unwanted watchEffects - by @wvffle in https://github.com/vueuse/vueuse/issues/3260 (5309c)
- useDateFormat: Handle zero properly - by @JocelynFloresz and @antfu in https://github.com/vueuse/vueuse/issues/3272 (d6428)
-
useEventListener: Improved
useEventListener
overload - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/3246 (4f414) - useFetch: Generated payloadType on execute - by @tolking in https://github.com/vueuse/vueuse/issues/3251 (b7e3d)
- useInfiniteScroll: Improve visibility check - by @erikkkwu in https://github.com/vueuse/vueuse/issues/3212 (5ce61)
- useMediaQuery: Only add/remove event listeners on query change - by @Ingramz and @antfu in https://github.com/vueuse/vueuse/issues/3236 (f3969)
- useObjectUrl: Improve parameter type - by @ferreira-tb in https://github.com/vueuse/vueuse/issues/3239 (d3f7e)
-
usePointer: Add
pointerup
event forpressure
field - by @cunzaizhuyi and @antfu in https://github.com/vueuse/vueuse/issues/3217 (ee425) - useScroll: Support configurable window - by @sheremet-va and @antfu in https://github.com/vueuse/vueuse/issues/3229 (dde41)
View changes on GitHub
v10.2.1
🚀 Features
- useDropZone: Expose more hooks - by @antfu (17d8d)
- useDropZone: Expose files as ref - by @antfu (6d4ef)
🐞 Bug Fixes
- fromEvent: Torn down properly - by @benlesh in https://github.com/vueuse/vueuse/issues/3155 (fa7ed)
-
toRefs: Fix stack overflow caused by recursive
setPrototypeOf
- by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/3166 (9f998) - useFullscreen: Skip exiting when not in fullscreen mode - by @tawen, @antfu and Fernando Fernández in https://github.com/vueuse/vueuse/issues/3144 (14edb)
- useInfiniteScroll: Prevent infinite load when v-show set false - by @wonderl17 in https://github.com/vueuse/vueuse/issues/3143 (a4dfa)
- useRafFn: Set initial delta to zero - by @haykkh in https://github.com/vueuse/vueuse/issues/3150 (cf6eb)
- useTimeoutPoll: Unexpected immediate execution - by @jiadesen in https://github.com/vueuse/vueuse/issues/3159 (7a897)
View changes on GitHub
v10.2.0
🚀 Features
-
useAsyncQueue: Add
options.signal
parameter - by @cross-origin in https://github.com/vueuse/vueuse/issues/3033 (7da7c) - useColorMode: DisableTransition support pseudo-elements - by @lainbo in https://github.com/vueuse/vueuse/issues/3129 (78a3a)
- useDraggable: Improve component props - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/3075 (6b670)
-
useElementByPoint: New
multiple
andinterval
options - by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/3089 (31b66) -
useFileDialog: Add a parameter
reset
- by @zaqvil in https://github.com/vueuse/vueuse/issues/3059 (6d847) - useImage: Support referrerPolicy option - by @btea in https://github.com/vueuse/vueuse/issues/3132 (04d32)
- useSortable: Add option set get method - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/3108 (14283)
- useVModel: Improve types overload - by @Mini-ghost in https://github.com/vueuse/vueuse/issues/3055 (7d788)
🐞 Bug Fixes
- onClickOutside: Ensure focus on iframe captured in firefox - by @Geit in https://github.com/vueuse/vueuse/issues/3066 (2c66e)
- useAxios: Prevent premature loading refs reset - by @MickaelOth in https://github.com/vueuse/vueuse/issues/3076 (b1701)
- useCloned: Check for getter function to watch - by @ydcjeff in https://github.com/vueuse/vueuse/issues/3142 (6d630)
- useCssVar: Observe changes based on element class list - by @Waleed-KH in https://github.com/vueuse/vueuse/issues/3131 (9d34a)
- useMediaControls: Better representation for "waiting" value - by @ferferga in https://github.com/vueuse/vueuse/issues/3072 (0b253)
- useRouteHash,useRouteQuery,useRouteParams: Re-evaluates the value immediately - by @anteriovieira in https://github.com/vueuse/vueuse/issues/3002 (d5252)
- useScroll: Support window in setArrivedState - by @smallnine9 and yulj5 in https://github.com/vueuse/vueuse/issues/3086 (8855f)
- useScrollLock: Fix scrollable children check - by @valerypatorius in https://github.com/vueuse/vueuse/issues/3065 (cdc28)
-
useTextareaAutosize: Autosize error when changing
input
asynchronously - by @jsonleex in https://github.com/vueuse/vueuse/issues/3118 (1b0ec) - useWebWorker: Add web worker transferable option - by @yassilah in https://github.com/vueuse/vueuse/issues/3123 (5988f)
- watchImmediate: Fix overload signature - by @ferreira-tb in https://github.com/vueuse/vueuse/issues/3114 (4b4e6)
🏎 Performance
- useCssVar: Only listen for style changes - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/3057 (3233a)
View changes on GitHub
v10.1.2
v10.1.0
🚀 Features
- useAsyncState: Add support directly await - by @Hfutsora and @antfu in https://github.com/vueuse/vueuse/issues/3004 (d4db0)
-
useColorMode: Expose
state
to the ref, deprecatedemitAuto
- by @Waleed-KH and @antfu in https://github.com/vueuse/vueuse/issues/2980 (a1bef) - useMouse: Support custom event extractor - by @RAX7 and @antfu in https://github.com/vueuse/vueuse/issues/2991 (4bb5b)
-
watch:
watchImmediate
andwatchDeep
support overloads - by @Mini-ghost in https://github.com/vueuse/vueuse/issues/2998 (8f6a0)
🐞 Bug Fixes
- Dialog mask add z-index - by @recallwei in https://github.com/vueuse/vueuse/issues/3005 (07ebe)
- useColorMode: Element ref support, close #3003 - by @antfu in https://github.com/vueuse/vueuse/issues/3003 (adbbb)
- useCycleList: Correctly wrap list with ref - by @fan5530 and @antfu in https://github.com/vueuse/vueuse/issues/2988 (659b2)
- useDateFormat: Error if Y or YYY provided - by @dinocam1 and Dino Camdzic in https://github.com/vueuse/vueuse/issues/3001 (a2147)
-
useFullscreen:
isFullscreen
handling for mutliple fullscreen elements - by @zaqvil and @antfu in https://github.com/vueuse/vueuse/issues/3000 (4a7a1) - useMediaControls: Apply state when target ref changes - by @ferferga in https://github.com/vueuse/vueuse/issues/2999 (b20aa)
- useSwipe: Ignore multiple touches - by @ARZarkesh in https://github.com/vueuse/vueuse/issues/2994 (995aa)
- useSwipe: Ignore multiple touches - by @ARZarkesh and @antfu in https://github.com/vueuse/vueuse/issues/2996 (af3ca)
- useTransition: Fix regression with non-linear transition functions - by @scottbedard in https://github.com/vueuse/vueuse/issues/2973 (8b330)
View changes on GitHub
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 RenovateBot