🚀 Features
- onElementRemoval: New function, refactor
useActiveElement
useElementHover
- by @ben-lau and @antfu in #4410 (08cf5) - router: Support partial transform - by @alexchexes and @antfu in #4426 (bba3f)
- toArray: New utility function - by @coderwhytop and @antfu in #4432 (021d0)
- toValue: Deprecate
toValue
from@vueuse/shared
in favor of Vue's native - by @antfu (59f75) - useElementBounding: Added directive for
vElementBounding
- by @pkc918 in #4436 (67a9c) - useMouseInElement: Added directive for
vMouseInElement
- by @pkc918 in #4438 (34be5) - useMousePressed: Add
onPressed
andonReleased
as options - by @OrbisK in #4425 (a123a) - useToNumber:
method
support custom function - by @btea and @antfu in #4441 (635bb) - useWindowScroll: Use
useScroll
under the hood - by @OrbisK and @antfu in #4424 (a033e)
🐞 Bug Fixes
- useAxios: Narrow type of data when initialValue is provided - by @huang-julien and @antfu in #4419 (8502f)
- useClipboard,useClipboardItems: Avoid running "copied" timeout during initialization - by @Ingramz in #4299 (6860f)
- useDropZone: Validate all file types individually when dropping multiple files - by @LouisMazel in #4325 (b01cf)
- useFocusWithin: Correctly track the state when switching the focus of elements in the same container - by @ben-lau in #4394 (3ca0d)
- useRouteQuery: Differentiate
undefined
andnull
when writing value - by @aa-ndrej and @antfu in #4382 (0cc45) - useSpeechRecognition: Execute 'start' when not ended - by @byronogis and @antfu in #4119 (890ab)
- useStorageAsync: Correct initialization when
initialValue
is getter - by @Mini-ghost and @antfu in #4452 (e6a17) - useTimeoutPoll:
immediate
default value should betrue
- by @phk422 and @antfu in #4232 (0450d) - useTimeoutPoll: Only start by default at client - by @antfu (a5fb0)