vueuse/vueuse (@vueuse/core)
### [`v10.6.0`](https://togithub.com/vueuse/vueuse/releases/tag/v10.6.0)
[Compare Source](https://togithub.com/vueuse/vueuse/compare/v10.5.0...v10.6.0)
##### 🚀 Features
- **createEventHook**: Allow trigger to optionally have no parameters - by [@curtgrimes](https://togithub.com/curtgrimes) in [https://github.com/vueuse/vueuse/issues/3507](https://togithub.com/vueuse/vueuse/issues/3507) [(6040e)](https://togithub.com/vueuse/vueuse/commit/6040e1cc)
- **onLongClick**: Return stop function - by [@its-lee](https://togithub.com/its-lee) and **lee** in [https://github.com/vueuse/vueuse/issues/3506](https://togithub.com/vueuse/vueuse/issues/3506) [(8eb0b)](https://togithub.com/vueuse/vueuse/commit/8eb0b2d7)
- **syncRef**: Enhance syncRef type restrict - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3515](https://togithub.com/vueuse/vueuse/issues/3515) [(89266)](https://togithub.com/vueuse/vueuse/commit/892666b7)
- **useClipboard**: UseClipboard component - by [@alexzvn](https://togithub.com/alexzvn), **Alexzvn** and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3359](https://togithub.com/vueuse/vueuse/issues/3359) [(71b46)](https://togithub.com/vueuse/vueuse/commit/71b4653d)
- **useClipboardItems**: New function - by [@Doctor-wu](https://togithub.com/Doctor-wu) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3477](https://togithub.com/vueuse/vueuse/issues/3477) [(1aa50)](https://togithub.com/vueuse/vueuse/commit/1aa50f82)
- **useDateFormat**: Add date ordinal formatting - by [@Jokerzhzh](https://togithub.com/Jokerzhzh) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3474](https://togithub.com/vueuse/vueuse/issues/3474) [(61ceb)](https://togithub.com/vueuse/vueuse/commit/61ceb19f)
- **useDropZone**: Add `dataTypes` option - by [@rtugeek](https://togithub.com/rtugeek) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3471](https://togithub.com/vueuse/vueuse/issues/3471) [(3f3f1)](https://togithub.com/vueuse/vueuse/commit/3f3f153e)
- **useElementSize**: Stop function - by [@chaii3](https://togithub.com/chaii3) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3367](https://togithub.com/vueuse/vueuse/issues/3367) [(5f545)](https://togithub.com/vueuse/vueuse/commit/5f545be9)
- **useFileDialog**: Add directory parameters - by [@huiliangShen](https://togithub.com/huiliangShen) and **banruo** in [https://github.com/vueuse/vueuse/issues/3513](https://togithub.com/vueuse/vueuse/issues/3513) [(cefca)](https://togithub.com/vueuse/vueuse/commit/cefca9ab)
- **useMutationObserver**: Add `takeRecords` function - by [@Alfred-Skyblue](https://togithub.com/Alfred-Skyblue) in [https://github.com/vueuse/vueuse/issues/3480](https://togithub.com/vueuse/vueuse/issues/3480) [(f9136)](https://togithub.com/vueuse/vueuse/commit/f9136e85)
- **useStorage**: Add `waitOnMounted` option for SSR - by [@posva](https://togithub.com/posva) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3504](https://togithub.com/vueuse/vueuse/issues/3504) [(dc6f2)](https://togithub.com/vueuse/vueuse/commit/dc6f2e8c)
- **useWindowScroll**: Allow rewriting back to scroll - by [@nothing-sy](https://togithub.com/nothing-sy), **chensiyuan** and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3500](https://togithub.com/vueuse/vueuse/issues/3500) [(931b2)](https://togithub.com/vueuse/vueuse/commit/931b2797)
- **watchOnce**: Return function for manual watcher stopping - by [@valerypatorius](https://togithub.com/valerypatorius) in [https://github.com/vueuse/vueuse/issues/3475](https://togithub.com/vueuse/vueuse/issues/3475) [(bb0a7)](https://togithub.com/vueuse/vueuse/commit/bb0a78e1)
##### 🐞 Bug Fixes
- **onClickOutside**: Adjust shouldListen handling timing - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3503](https://togithub.com/vueuse/vueuse/issues/3503) [(69851)](https://togithub.com/vueuse/vueuse/commit/6985152d)
- **onScrollLock**: Cache the el initial overflow value - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3527](https://togithub.com/vueuse/vueuse/issues/3527) [(03866)](https://togithub.com/vueuse/vueuse/commit/038666ba)
- **useAxios**: Bail out on request abort - by [@jahnli](https://togithub.com/jahnli) in [https://github.com/vueuse/vueuse/issues/3394](https://togithub.com/vueuse/vueuse/issues/3394) [(151f9)](https://togithub.com/vueuse/vueuse/commit/151f9b00)
- **useClipboard**: Use legacy way when without permission - by [@Cat1007](https://togithub.com/Cat1007), **catye**, [@posva](https://togithub.com/posva) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3379](https://togithub.com/vueuse/vueuse/issues/3379) [(37e86)](https://togithub.com/vueuse/vueuse/commit/37e866cd)
- **useDraggable**: Element can't relative parent element move - by [@huiliangShen](https://togithub.com/huiliangShen) and **banruo** in [https://github.com/vueuse/vueuse/issues/3531](https://togithub.com/vueuse/vueuse/issues/3531) [(08246)](https://togithub.com/vueuse/vueuse/commit/082462da)
- **useElementSize**: Get value in onMounted hook - by [@chaii3](https://togithub.com/chaii3) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3366](https://togithub.com/vueuse/vueuse/issues/3366) [(165c8)](https://togithub.com/vueuse/vueuse/commit/165c88ab)
- **useFetch**: Don't set isFetching to false when a request is aborted because of a refetch - by [@mweghorst](https://togithub.com/mweghorst) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3479](https://togithub.com/vueuse/vueuse/issues/3479) [(75ca2)](https://togithub.com/vueuse/vueuse/commit/75ca2bb6)
- **useMouseInElement**: Optimize outside computation - by [@qiYuei](https://togithub.com/qiYuei), **fengmingjian** and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3380](https://togithub.com/vueuse/vueuse/issues/3380) [(7c88d)](https://togithub.com/vueuse/vueuse/commit/7c88d81b)
- **useRouteQuery,useRouteParams**: Prevent reset on other scope dispose - by [@s-montigny-desautels](https://togithub.com/s-montigny-desautels) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3418](https://togithub.com/vueuse/vueuse/issues/3418) [(771e7)](https://togithub.com/vueuse/vueuse/commit/771e7ffd)
- **useScroll**: Trigger once `onMounted` to get correct inital arrivedStates values - by [@nicooprat](https://togithub.com/nicooprat) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3384](https://togithub.com/vueuse/vueuse/issues/3384) [(86bd8)](https://togithub.com/vueuse/vueuse/commit/86bd8e8f)
- **useSortable**: Prevent from creating multi instances - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3501](https://togithub.com/vueuse/vueuse/issues/3501) [(d9846)](https://togithub.com/vueuse/vueuse/commit/d98468d1)
- **useStorage**: Fix defaults not unwrapped - by [@Alfred-Skyblue](https://togithub.com/Alfred-Skyblue) in [https://github.com/vueuse/vueuse/issues/3534](https://togithub.com/vueuse/vueuse/issues/3534) [(b6d2b)](https://togithub.com/vueuse/vueuse/commit/b6d2bd35)
- **useWebSocket**: Webworker support - by [@binary-signal](https://togithub.com/binary-signal) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3469](https://togithub.com/vueuse/vueuse/issues/3469) [(9b014)](https://togithub.com/vueuse/vueuse/commit/9b0141ca)
##### [View changes on GitHub](https://togithub.com/vueuse/vueuse/compare/v10.5.0...v10.6.0)
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
This PR contains the following updates:
^10.5.0
->^10.6.0
Release Notes
vueuse/vueuse (@vueuse/core)
### [`v10.6.0`](https://togithub.com/vueuse/vueuse/releases/tag/v10.6.0) [Compare Source](https://togithub.com/vueuse/vueuse/compare/v10.5.0...v10.6.0) ##### 🚀 Features - **createEventHook**: Allow trigger to optionally have no parameters - by [@curtgrimes](https://togithub.com/curtgrimes) in [https://github.com/vueuse/vueuse/issues/3507](https://togithub.com/vueuse/vueuse/issues/3507) [(6040e)](https://togithub.com/vueuse/vueuse/commit/6040e1cc) - **onLongClick**: Return stop function - by [@its-lee](https://togithub.com/its-lee) and **lee** in [https://github.com/vueuse/vueuse/issues/3506](https://togithub.com/vueuse/vueuse/issues/3506) [(8eb0b)](https://togithub.com/vueuse/vueuse/commit/8eb0b2d7) - **syncRef**: Enhance syncRef type restrict - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3515](https://togithub.com/vueuse/vueuse/issues/3515) [(89266)](https://togithub.com/vueuse/vueuse/commit/892666b7) - **useClipboard**: UseClipboard component - by [@alexzvn](https://togithub.com/alexzvn), **Alexzvn** and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3359](https://togithub.com/vueuse/vueuse/issues/3359) [(71b46)](https://togithub.com/vueuse/vueuse/commit/71b4653d) - **useClipboardItems**: New function - by [@Doctor-wu](https://togithub.com/Doctor-wu) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3477](https://togithub.com/vueuse/vueuse/issues/3477) [(1aa50)](https://togithub.com/vueuse/vueuse/commit/1aa50f82) - **useDateFormat**: Add date ordinal formatting - by [@Jokerzhzh](https://togithub.com/Jokerzhzh) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3474](https://togithub.com/vueuse/vueuse/issues/3474) [(61ceb)](https://togithub.com/vueuse/vueuse/commit/61ceb19f) - **useDropZone**: Add `dataTypes` option - by [@rtugeek](https://togithub.com/rtugeek) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3471](https://togithub.com/vueuse/vueuse/issues/3471) [(3f3f1)](https://togithub.com/vueuse/vueuse/commit/3f3f153e) - **useElementSize**: Stop function - by [@chaii3](https://togithub.com/chaii3) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3367](https://togithub.com/vueuse/vueuse/issues/3367) [(5f545)](https://togithub.com/vueuse/vueuse/commit/5f545be9) - **useFileDialog**: Add directory parameters - by [@huiliangShen](https://togithub.com/huiliangShen) and **banruo** in [https://github.com/vueuse/vueuse/issues/3513](https://togithub.com/vueuse/vueuse/issues/3513) [(cefca)](https://togithub.com/vueuse/vueuse/commit/cefca9ab) - **useMutationObserver**: Add `takeRecords` function - by [@Alfred-Skyblue](https://togithub.com/Alfred-Skyblue) in [https://github.com/vueuse/vueuse/issues/3480](https://togithub.com/vueuse/vueuse/issues/3480) [(f9136)](https://togithub.com/vueuse/vueuse/commit/f9136e85) - **useStorage**: Add `waitOnMounted` option for SSR - by [@posva](https://togithub.com/posva) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3504](https://togithub.com/vueuse/vueuse/issues/3504) [(dc6f2)](https://togithub.com/vueuse/vueuse/commit/dc6f2e8c) - **useWindowScroll**: Allow rewriting back to scroll - by [@nothing-sy](https://togithub.com/nothing-sy), **chensiyuan** and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3500](https://togithub.com/vueuse/vueuse/issues/3500) [(931b2)](https://togithub.com/vueuse/vueuse/commit/931b2797) - **watchOnce**: Return function for manual watcher stopping - by [@valerypatorius](https://togithub.com/valerypatorius) in [https://github.com/vueuse/vueuse/issues/3475](https://togithub.com/vueuse/vueuse/issues/3475) [(bb0a7)](https://togithub.com/vueuse/vueuse/commit/bb0a78e1) ##### 🐞 Bug Fixes - **onClickOutside**: Adjust shouldListen handling timing - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3503](https://togithub.com/vueuse/vueuse/issues/3503) [(69851)](https://togithub.com/vueuse/vueuse/commit/6985152d) - **onScrollLock**: Cache the el initial overflow value - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3527](https://togithub.com/vueuse/vueuse/issues/3527) [(03866)](https://togithub.com/vueuse/vueuse/commit/038666ba) - **useAxios**: Bail out on request abort - by [@jahnli](https://togithub.com/jahnli) in [https://github.com/vueuse/vueuse/issues/3394](https://togithub.com/vueuse/vueuse/issues/3394) [(151f9)](https://togithub.com/vueuse/vueuse/commit/151f9b00) - **useClipboard**: Use legacy way when without permission - by [@Cat1007](https://togithub.com/Cat1007), **catye**, [@posva](https://togithub.com/posva) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3379](https://togithub.com/vueuse/vueuse/issues/3379) [(37e86)](https://togithub.com/vueuse/vueuse/commit/37e866cd) - **useDraggable**: Element can't relative parent element move - by [@huiliangShen](https://togithub.com/huiliangShen) and **banruo** in [https://github.com/vueuse/vueuse/issues/3531](https://togithub.com/vueuse/vueuse/issues/3531) [(08246)](https://togithub.com/vueuse/vueuse/commit/082462da) - **useElementSize**: Get value in onMounted hook - by [@chaii3](https://togithub.com/chaii3) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3366](https://togithub.com/vueuse/vueuse/issues/3366) [(165c8)](https://togithub.com/vueuse/vueuse/commit/165c88ab) - **useFetch**: Don't set isFetching to false when a request is aborted because of a refetch - by [@mweghorst](https://togithub.com/mweghorst) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3479](https://togithub.com/vueuse/vueuse/issues/3479) [(75ca2)](https://togithub.com/vueuse/vueuse/commit/75ca2bb6) - **useMouseInElement**: Optimize outside computation - by [@qiYuei](https://togithub.com/qiYuei), **fengmingjian** and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3380](https://togithub.com/vueuse/vueuse/issues/3380) [(7c88d)](https://togithub.com/vueuse/vueuse/commit/7c88d81b) - **useRouteQuery,useRouteParams**: Prevent reset on other scope dispose - by [@s-montigny-desautels](https://togithub.com/s-montigny-desautels) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3418](https://togithub.com/vueuse/vueuse/issues/3418) [(771e7)](https://togithub.com/vueuse/vueuse/commit/771e7ffd) - **useScroll**: Trigger once `onMounted` to get correct inital arrivedStates values - by [@nicooprat](https://togithub.com/nicooprat) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3384](https://togithub.com/vueuse/vueuse/issues/3384) [(86bd8)](https://togithub.com/vueuse/vueuse/commit/86bd8e8f) - **useSortable**: Prevent from creating multi instances - by [@Doctor-wu](https://togithub.com/Doctor-wu) in [https://github.com/vueuse/vueuse/issues/3501](https://togithub.com/vueuse/vueuse/issues/3501) [(d9846)](https://togithub.com/vueuse/vueuse/commit/d98468d1) - **useStorage**: Fix defaults not unwrapped - by [@Alfred-Skyblue](https://togithub.com/Alfred-Skyblue) in [https://github.com/vueuse/vueuse/issues/3534](https://togithub.com/vueuse/vueuse/issues/3534) [(b6d2b)](https://togithub.com/vueuse/vueuse/commit/b6d2bd35) - **useWebSocket**: Webworker support - by [@binary-signal](https://togithub.com/binary-signal) and [@antfu](https://togithub.com/antfu) in [https://github.com/vueuse/vueuse/issues/3469](https://togithub.com/vueuse/vueuse/issues/3469) [(9b014)](https://togithub.com/vueuse/vueuse/commit/9b0141ca) ##### [View changes on GitHub](https://togithub.com/vueuse/vueuse/compare/v10.5.0...v10.6.0)Configuration
📅 Schedule: Branch creation - "before 4am on Monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.