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

✨ Highlights
createReusableTemplatefrom https://github.com/antfu/vue-reuse-templatecreateTemplatePromisefrom https://github.com/antfu/vue-template-promiseuseAnimatefor native animation API, thanks to @tolking- Renamed
resolveReftotoRef,resolveUnreftotoValue, aligning with Vue 3.3: https://github.com/vuejs/core/pull/7997 - Improved tree-shaking
- Cleaned up long-lasting PRs, thanks to all!
🚨 Breaking Changes
- Remove deprecated types - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2656 <samp>(c2fee)</samp>
- Remove
isFunctionandisStringutils <samp>(cb644)</samp> - computedAsync:
- Set shallow defalut to true - by @xiankaiqun and @antfu in https://github.com/vueuse/vueuse/issues/2621 <samp>(23c9d)</samp>
- toRef:
- Rename
resolveReftotoRef<samp>(10e98)</samp>
- Rename
- types:
- Rename
MaybeComputedReftoMaybeRefOrGetter<samp>(4d757)</samp>
- Rename
- useAxios:
errorshould return typeunknown- by @jbaubree and @antfu in https://github.com/vueuse/vueuse/issues/2807 <samp>(d8d73)</samp>- Remove deprecated apis <samp>(1f8b9)</samp>
- Reject promise on
execute- by @FRSgit and @antfu in https://github.com/vueuse/vueuse/issues/2485 <samp>(edece)</samp>
- useColorMode:
- Enable
disableTransitionby default <samp>(5c82c)</samp>
- Enable
- useElementVisibility:
- Use useIntersectionObserver instead of scroll event handler - by @curtgrimes in https://github.com/vueuse/vueuse/issues/2551 <samp>(74b00)</samp>
- useEventBus,createEventHook:
- Dedupe registration of the same function - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2748 <samp>(dd514)</samp>
- useFullscreen:
- Better cross-platform compatibility - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2915 <samp>(2e467)</samp>
- useIDBKeyval:
- Return format changed, add
isFinished- by @jssullivan and james.sullivan in https://github.com/vueuse/vueuse/issues/2474 <samp>(ef281)</samp>
- 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 <samp>(d3a2b)</samp>
- useSwipe:
- Use literal for swipe direction instead of enum <samp>(f285c)</samp>
- useToFixed:
- Remove deprecated function <samp>(a6e5b)</samp>
- useUserMedia:
- Add constraints - remove deviceIds - by @mango-martin in https://github.com/vueuse/vueuse/issues/2032 <samp>(8f2a3)</samp>
- Remove deprecated apis <samp>(85468)</samp>
- useWebNotification:
- Should be exposed as EventHooksOn - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2821 <samp>(bcd2a)</samp>
- useWindowSize:
- Use media query instead of
orientationchangelistener - by @zhousg and @antfu in https://github.com/vueuse/vueuse/issues/2919 <samp>(4e7b0)</samp>
- Use media query instead of
🚀 Features
- Update deps <samp>(e75a5)</samp>
- Improve tree-shaking <samp>(3275e)</samp>
- createEventHook:
- Allow awaiting on
trigger- by @Akryum and @antfu in https://github.com/vueuse/vueuse/issues/2824 <samp>(31347)</samp>
- Allow awaiting on
- createGlobalState:
- Allow passing initial args - by @jd-solanki and @antfu in https://github.com/vueuse/vueuse/issues/2790 <samp>(f21b2)</samp>
- createReusableTemplate:
- New function - by @antfu in https://github.com/vueuse/vueuse/issues/2961 <samp>(bd53c)</samp>
- createTemplatePromise:
- New function - by @antfu and Enzo Innocenzi in https://github.com/vueuse/vueuse/issues/2957 <samp>(13169)</samp>
- onKeyStroke:
- Support ignoring repeated stroke - by @vaakian in https://github.com/vueuse/vueuse/issues/2652 <samp>(22ca5)</samp>
- reactiveOmit:
- Add predicate parameter - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2849 <samp>(2e297)</samp>
- reactivePick:
- Add predicate parameter - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2850 <samp>(0bde4)</samp>
- toRef:
- Support two argument overrides from Vue <samp>(f307f)</samp>
- toValue:
- Rename
resolveUnreftotoValue<samp>(0a72b)</samp>
- Rename
- useAnimate:
- New function - by @tolking and @antfu in https://github.com/vueuse/vueuse/issues/2109 <samp>(bcf5d)</samp>
- useArrayDifference:
- New function - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2710 <samp>(a2a33)</samp>
- useArrayIncludes:
- New function - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2708 <samp>(4d6bc)</samp>
- useArrayUnique:
- Add a custom function to deduplicate - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2612 <samp>(c8c30)</samp>
- useAsyncValidator:
- Add immediate and execute - by @jaw52 and @antfu in https://github.com/vueuse/vueuse/issues/2899 <samp>(79176)</samp>
- Add
manualoption - by @jaw52 and @antfu in https://github.com/vueuse/vueuse/issues/2903 <samp>(16461)</samp>
- useAxios:
- Added
onFinishcallback - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2829 <samp>(a2f33)</samp> - Added
initialDataandresetOnExecuteoptions - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2791 <samp>(f54a3)</samp>
- Added
- useBreakpoints:
- Getting current breakpoints - by @ineshbose and @antfu in https://github.com/vueuse/vueuse/issues/2906 <samp>(bbabd)</samp>
- useBrowserLocation:
- Two-way binding - by @sxzz in https://github.com/vueuse/vueuse/issues/2168 <samp>(a860c)</samp>
- useColorMode:
- Support passing element as
selector- by @Wing-9527 and @antfu in https://github.com/vueuse/vueuse/issues/2760 <samp>(02ccc)</samp> - Expose
systemandstoreref, close #2023 - by @antfu in https://github.com/vueuse/vueuse/issues/2023 <samp>(d150c)</samp>
- Support passing element as
- useCssVar:
- Introduce
observeoption - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2800 <samp>(ae6e1)</samp>
- Introduce
- useCycleList:
- Allow receiving reactive list - by @hjJunior and @antfu in https://github.com/vueuse/vueuse/issues/2864 <samp>(b65c2)</samp>
- useDark:
- Passthrough default handler from
useColorSchema- by @godismyjudge95 and @antfu in https://github.com/vueuse/vueuse/issues/2866 <samp>(d6d35)</samp>
- Passthrough default handler from
- useDark, useColorMode:
- Introduce
disableTransitionoption <samp>(320ab)</samp>
- Introduce
- useDraggable:
- Introduce
axisoption - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/2948 <samp>(0842a)</samp> - Support
captureoption - by @faga295 and @antfu in https://github.com/vueuse/vueuse/issues/2725 <samp>(3996d)</samp>
- Introduce
- useFetch:
- Update data on success - by @pbrzosko and Przemyslaw Brzosko in https://github.com/vueuse/vueuse/issues/2711 <samp>(78cfb)</samp>
- useFileDialog:
- Add listener for file change events - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2893 <samp>(5e697)</samp>
- 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 <samp>(05781)</samp>
- useIdle:
- Add
resetcapability - by @nahvego and @antfu in https://github.com/vueuse/vueuse/issues/2880 <samp>(f4d35)</samp>
- Add
- useIntersectionObserver:
- Support for
Pausableinterface - by @Mini-ghost and @antfu in https://github.com/vueuse/vueuse/issues/2883 <samp>(4b336)</samp> - Allow multiple targets - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2964 <samp>(f87f8)</samp>
- Support for
- useMouse:
- Support
type: screen- by @francoislevesque in https://github.com/vueuse/vueuse/issues/2467 <samp>(39d18)</samp>
- Support
- useParentElement:
- New function - by @jd-solanki and @antfu in https://github.com/vueuse/vueuse/issues/2855 <samp>(e8168)</samp>
- usePerformanceObserver:
- New function - by @LockingReal, Admin and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2736 <samp>(21536)</samp>
- useResizeObserver:
- Support element list - by @acyza and @antfu in https://github.com/vueuse/vueuse/issues/2841 <samp>(3e187)</samp>
- useRouteQuery,useRouteParams:
- New
transformhandler - by @edumudu and @antfu in https://github.com/vueuse/vueuse/issues/2191 <samp>(d23ca)</samp>
- New
- useSortable:
- New function - by @Alfred-Skyblue, @okxiaoliang4 and @antfu in https://github.com/vueuse/vueuse/issues/2763 <samp>(6bc60)</samp>
- useSupported:
- Support tracking reactivity for the callback function - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2904 <samp>(55a32)</samp>
- useSwipe, usePointerSwipe, useTransition:
- Improve tree-shaking - by @webistomin and @antfu in https://github.com/vueuse/vueuse/issues/2863 <samp>(08c21)</samp>
- useTextareaAutosize:
- Added
styleTargetoption to style other element - by @jd-solanki in https://github.com/vueuse/vueuse/issues/2312 <samp>(a3e95)</samp>
- Added
- useTransition:
- Expose transition utility for manual control - by @scottbedard in https://github.com/vueuse/vueuse/issues/2743 <samp>(526d5)</samp>
- Support
MaybeComputedRef- by @zhiyuanzmj in https://github.com/vueuse/vueuse/issues/2871 <samp>(5944e)</samp>
- useVModel:
- Add
shouldEmithook - by @baiwusanyu-c and @antfu in https://github.com/vueuse/vueuse/issues/2836 <samp>(f8a53)</samp>
- Add
- watch:
- Shorthands for watch - by @mrhammadasif in https://github.com/vueuse/vueuse/issues/2651 <samp>(b4ec7)</samp>
🐞 Bug Fixes
- Use ts-ignore instead of ts-expect-error for version-specifc errors - by @sodatea in https://github.com/vueuse/vueuse/issues/2802 <samp>(37ec7)</samp>
- Upgrade vue-demi <samp>(976d8)</samp>
- onStartTyping: Fix char ascii - by @meenie-net in https://github.com/vueuse/vueuse/issues/2932 <samp>(e9ab3)</samp>
- toRef: Improve types overload, close #2925 - by @antfu in https://github.com/vueuse/vueuse/issues/2925 <samp>(cb6f9)</samp>
- useArrayDifference: Error with falsey - by @simpleoo0o and lix in https://github.com/vueuse/vueuse/issues/2869 <samp>(41858)</samp>
- useAsyncState: Fix toThrowError error type - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2898 <samp>(b636f)</samp>
- useAsyncValidator: Incorrect condition for choosing constructor - by @theruziev in https://github.com/vueuse/vueuse/issues/2788 <samp>(93b45)</samp>
- useDevicesList: Show devices for Firefox - by @felixzapata in https://github.com/vueuse/vueuse/issues/2798 <samp>(0823d)</samp>
- useElementHover:
windowis not defined - by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2793 <samp>(c86f2)</samp> - useFetch: Abort before updating state - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2805 <samp>(fff45)</samp>
- useFullscreen: Handle Safari iOS - by @ferferga and @antfu in https://github.com/vueuse/vueuse/issues/2822 <samp>(9d394)</samp>
- useMounted: Check for the current instance <samp>(1aab1)</samp>
- useScroll: Add support for row-reverse and column-reverse - by @OneLoneFox and @antfu in https://github.com/vueuse/vueuse/issues/2577 <samp>(23b9a)</samp>
- useSortable: Order of dom and array is different - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2926 <samp>(3a508)</samp>
- watchDeep,watchImmediate: Fix callback function execution logic - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2951 <samp>(e6e25)</samp>
🏎 Performance
- useStorageAsync,useFetch: Replace setTimeout with Promise - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2917 <samp>(8bd63)</samp>
View changes on GitHub
v9.13.0
🚀 Features
- useArrayFindLast: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/2471 <samp>(b0ac4)</samp>
- useAsyncState: Get a promise function parameter type declaration - by @Brain777777 in https://github.com/vueuse/vueuse/issues/2765 <samp>(b4c63)</samp>
- useAxios: Add success and error callbacks - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2714 <samp>(809fc)</samp>
- useClamp: Composable computed usage improvements - by @ClemDee and @antfu in https://github.com/vueuse/vueuse/issues/2696 <samp>(08a07)</samp>
- useElementHover: Give hook delay properties - by @LockingReal and @antfu in https://github.com/vueuse/vueuse/issues/2741 <samp>(23283)</samp>
- useEventListener: Support reactive options - by @antfu <samp>(103d6)</samp>
- useFetch: Cancel previous request on refetch - by @Alfred-Skyblue and 丶远方 in https://github.com/vueuse/vueuse/issues/2750 <samp>(cd9d6)</samp>
- useInterval: Add
resetfunction - by @mohammadhosry and Mohammad Agbareya in https://github.com/vueuse/vueuse/issues/2686 <samp>(81db6)</samp> - useMutationObserver: Added test cases - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2734 <samp>(192c8)</samp>
- useScroll: Support scrollend event - by @kongmoumou in https://github.com/vueuse/vueuse/issues/2716 <samp>(f8872)</samp>
- useSpeechSynthesis: Add
stopfunction - by @zwkkwz1 in https://github.com/vueuse/vueuse/issues/2774 <samp>(820e2)</samp>
🐞 Bug Fixes
- useAsyncValidator: Fix Schema importing from async-validator - by @theruziev and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2761 <samp>(dbcdb)</samp>
- useAxios: Fix cancelToken - by @Alfred-Skyblue and 丶远方 in https://github.com/vueuse/vueuse/issues/2728 <samp>(7ad51)</samp>
- useDevicePixelRatio: Remove unnecessary cleanup - by @Waleed-KH and @antfu in https://github.com/vueuse/vueuse/issues/2325 <samp>(83feb)</samp>
- useFetch: Check if it's object for
isFetchOptions- by @antfu <samp>(c2bc6)</samp> - useFocus: Listen
focusandblurto thetargetElement- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2631 <samp>(7cd88)</samp> - useInterval: Fix types - by @antfu <samp>(db66c)</samp>
- useScrollLock: Detect parent with overflow auto - by @dpschen in https://github.com/vueuse/vueuse/issues/2699 <samp>(7e590)</samp>
- useStorage: Emit a custom event to support custom storage areas - by @43081j and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2630 <samp>(c6185)</samp>
- useStorageAsync: Handle mergeDefaults option - by @ModyQyW in https://github.com/vueuse/vueuse/issues/2773 <samp>(105f4)</samp>
- useThrottleFn: Check negative timeout - by @vaakian in https://github.com/vueuse/vueuse/issues/2620 <samp>(a7238)</samp>
- useWindowScroll: Use
scrollXinstead ofpageXOffset- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2776 <samp>(e490a)</samp>
View changes on GitHub
v9.12.0
🚀 Features
- usePrevious: New function - by @antfu <samp>(e101f)</samp>
- useRafFn, useIntervalFn, useTimeoutFn: Make status readonly - by @rotu in https://github.com/vueuse/vueuse/issues/2685 <samp>(39183)</samp>
- useWebSocket: Allow undefined ref for url - by @ferferga in https://github.com/vueuse/vueuse/issues/2473 <samp>(13924)</samp>
🐞 Bug Fixes
- useElementSize: Use contentBoxSize as an array in useElementSize - by @threedayAAAAA and vaakian X in https://github.com/vueuse/vueuse/issues/2520 <samp>(30475)</samp>
- useElementSize: Fix incorrect element size on SVG - by @Lionad-Morotar, @wheatjs and @antfu in https://github.com/vueuse/vueuse/issues/2661 <samp>(902b3)</samp>
- useMediaControls: Ended status not updating - by @ferferga in https://github.com/vueuse/vueuse/issues/2680 <samp>(4ef27)</samp>
- useMouseInElement: Check if mouse out of window - by @chaii3 and @antfu in https://github.com/vueuse/vueuse/issues/2458 <samp>(54f4e)</samp>
- usePrecision: Fix return type - by @ClemDee in https://github.com/vueuse/vueuse/issues/2676 <samp>(e331b)</samp>
- useTimeoutFn: Respect callback parameters in start function - by @wvffle in https://github.com/vueuse/vueuse/issues/2693 <samp>(e054a)</samp>
View changes on GitHub
v9.11.1
🚀 Features
- nuxt: Add metadata to auto import - by @antfu <samp>(eee12)</samp>
View changes on GitHub
v9.11.0
🚀 Features
- computedAsync: Introduce
shadowoption - by @xiankaiqun in https://github.com/vueuse/vueuse/issues/2616 <samp>(a0656)</samp> - createInjectionState: Return state when providing injection state - by @Tanimodori and lsdsjy in https://github.com/vueuse/vueuse/issues/2309 <samp>(f7ce6)</samp>
- reactivePick: Add test cases - by @Alfred-Skyblue, 丶远方 and @wheatjs in https://github.com/vueuse/vueuse/issues/2653 <samp>(b06b8)</samp>
- useAsyncState: Add test cases - by @Alfred-Skyblue and @wheatjs in https://github.com/vueuse/vueuse/issues/2657 [(5907f)](https://togithu
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 has been generated by Mend Renovate. View repository job log here.