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