🚀 Features
- createEventHook: Allow trigger to optionally have no parameters - by @curtgrimes in #3507 (6040e)
- onLongClick: Return stop function - by @its-lee and lee in #3506 (8eb0b)
- syncRef: Enhance syncRef type restrict - by @Doctor-wu in #3515 (89266)
- useClipboard: UseClipboard component - by @alexzvn, Alexzvn and @antfu in #3359 (71b46)
- useClipboardItems: New function - by @Doctor-wu and @antfu in #3477 (1aa50)
- useDateFormat: Add date ordinal formatting - by @Jokerzhzh and @antfu in #3474 (61ceb)
- useDropZone: Add
dataTypes
option - by @rtugeek and @antfu in #3471 (3f3f1) - useElementSize: Stop function - by @chaii3 and @antfu in #3367 (5f545)
- useFileDialog: Add directory parameters - by @huiliangShen and banruo in #3513 (cefca)
- useMutationObserver: Add
takeRecords
function - by @Alfred-Skyblue in #3480 (f9136) - useStorage: Add
waitOnMounted
option for SSR - by @posva and @antfu in #3504 (dc6f2) - useWindowScroll: Allow rewriting back to scroll - by @nothing-sy, chensiyuan and @antfu in #3500 (931b2)
- watchOnce: Return function for manual watcher stopping - by @valerypatorius in #3475 (bb0a7)
🐞 Bug Fixes
- onClickOutside: Adjust shouldListen handling timing - by @Doctor-wu in #3503 (69851)
- onScrollLock: Cache the el initial overflow value - by @Doctor-wu in #3527 (03866)
- useAxios: Bail out on request abort - by @jahnli in #3394 (151f9)
- useClipboard: Use legacy way when without permission - by @Cat1007, catye, @posva and @antfu in #3379 (37e86)
- useDraggable: Element can't relative parent element move - by @huiliangShen and banruo in #3531 (08246)
- useElementSize: Get value in onMounted hook - by @chaii3 and @antfu in #3366 (165c8)
- useFetch: Don't set isFetching to false when a request is aborted because of a refetch - by @mweghorst and @antfu in #3479 (75ca2)
- useMouseInElement: Optimize outside computation - by @qiYuei, fengmingjian and @antfu in #3380 (7c88d)
- useRouteQuery,useRouteParams: Prevent reset on other scope dispose - by @s-montigny-desautels and @antfu in #3418 (771e7)
- useScroll: Trigger once
onMounted
to get correct inital arrivedStates values - by @nicooprat and @antfu in #3384 (86bd8) - useSortable: Prevent from creating multi instances - by @Doctor-wu in #3501 (d9846)
- useStorage: Fix defaults not unwrapped - by @Alfred-Skyblue in #3534 (b6d2b)
- useWebSocket: Webworker support - by @binary-signal and @antfu in #3469 (9b014)