v9.13.0
版本发布时间: 2023-02-18 18:38:47
vueuse/vueuse最新发布版本:v11.1.0(2024-09-16 17:09:03)
🚀 Features
- useArrayFindLast: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/2471 (b0ac4)
- useAsyncState: Get a promise function parameter type declaration - by @Brain777777 in https://github.com/vueuse/vueuse/issues/2765 (b4c63)
- useAxios: Add success and error callbacks - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2714 (809fc)
- useClamp: Composable computed usage improvements - by @ClemDee and @antfu in https://github.com/vueuse/vueuse/issues/2696 (08a07)
- useElementHover: Give hook delay properties - by @LockingReal and @antfu in https://github.com/vueuse/vueuse/issues/2741 (23283)
- useEventListener: Support reactive options - by @antfu (103d6)
- useFetch: Cancel previous request on refetch - by @Alfred-Skyblue and 丶远方 in https://github.com/vueuse/vueuse/issues/2750 (cd9d6)
-
useInterval: Add
reset
function - by @mohammadhosry and Mohammad Agbareya in https://github.com/vueuse/vueuse/issues/2686 (81db6) - useMutationObserver: Added test cases - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/2734 (192c8)
- useScroll: Support scrollend event - by @kongmoumou in https://github.com/vueuse/vueuse/issues/2716 (f8872)
-
useSpeechSynthesis: Add
stop
function - by @zwkkwz1 in https://github.com/vueuse/vueuse/issues/2774 (820e2)
🐞 Bug Fixes
- useAsyncValidator: Fix Schema importing from async-validator - by @theruziev and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2761 (dbcdb)
- useAxios: Fix cancelToken - by @Alfred-Skyblue and 丶远方 in https://github.com/vueuse/vueuse/issues/2728 (7ad51)
- useDevicePixelRatio: Remove unnecessary cleanup - by @Waleed-KH and @antfu in https://github.com/vueuse/vueuse/issues/2325 (83feb)
-
useFetch: Check if it's object for
isFetchOptions
- by @antfu (c2bc6) -
useFocus: Listen
focus
andblur
to thetargetElement
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2631 (7cd88) - useInterval: Fix types - by @antfu (db66c)
- useScrollLock: Detect parent with overflow auto - by @dpschen in https://github.com/vueuse/vueuse/issues/2699 (7e590)
- useStorage: Emit a custom event to support custom storage areas - by @43081j and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2630 (c6185)
- useStorageAsync: Handle mergeDefaults option - by @ModyQyW in https://github.com/vueuse/vueuse/issues/2773 (105f4)
- useThrottleFn: Check negative timeout - by @vaakian in https://github.com/vueuse/vueuse/issues/2620 (a7238)
-
useWindowScroll: Use
scrollX
instead ofpageXOffset
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/2776 (e490a)