🚨 Breaking Changes
- useIntersectionObserver: Update the
threshold
default to 0 - by @Alfred-Skyblue in #4069 (13e36)
🚀 Features
- useCssVars: Remove property on null/undefined - by @ferferga in #3821 (fe19c)
- useDateFormat: Locales is now reactive - by @OrbisK and Anthony Fu in #3907 (4a7a8)
- useDraggable: Add
buttons
option - by @DrJonki and @antfu in #4084 (e9938) - useElementBounding: Add
updateTiming
option - by @DerZade and @antfu in #3869 (0fa17) - useElementHover: Add options to the directive - by @userquin and Anthony Fu in #3897 (cf439)
- useFocusTrap: Support multiple refs - by @Sma11X in #4022 (83c41)
- useInfiniteScroll: Add a reset method - by @schelmo in #3892 (aefb6)
- usePermission: Add local-fonts permission - by @seanmcbroom, Anthony Fu and autofix-ci[bot] in #4098 (5f584)
- useResizeObserver: Added
vResizeObserver
directive - by @pkc918 in #4008 (d4310) - useSpeechRecognition: Support
maxAlternatives
option - by @pkc918 in #4067 (9eda8) - useStorage: Conditionally use event based on the used storage backend - by @ferferga in #3822 (5a302)
- useWebSocket: Allow different heartbeat response message - by @lavolpecheprogramma, @antfu and Anthony Fu in #3950 (adbe0)
- useWindowSize: Add ability to get outer sizes of the window - by @khawarizmus and @antfu in #3999 (bfba3)
🐞 Bug Fixes
- until: Cleanup at next tick to avoid memory leak - by @Gianthard-cyh, @antfu and delaneyb in #4039 (8a023)
- useColorMode, useDark: Fix full page reflows when calling useColorMode and useDark - by @jpleclerc, Jean-Philippe Leclerc, Anthony Fu and @antfu in #4001 (905b9)
- useEventListener: Event target can be an empty ref/getter - by @floryst in #4014 (edab6)
- useGamepad: Handle case where hapticActuators is not present - by @Aaron-zon in #4068 (0ca13)
- useMouseInElement:
el.getBoundingClientRect
is not a function - by @loongzhu in #4056 (efe4d) - useResizeObserver: Fix
target
is Ref Array - by @Alfred-Skyblue and Anthony Fu in #4005 (1c124) - useTextareaAutosize: Improve
triggerResize
triggering - by @Mutter45 and Anthony Fu in #4074 (06c6f) - useWakeLock: Should delay wake lock request if document is hidden - by @KermanX in #4055 (5ca57)
- watchDeep: Unify overload declaration for watch functions - by @KazariEX and Anthony Fu in #4043 (0716d)