🚨 Breaking Changes
- useChangeCase: Migrate to
change-case@v5
, closes #3457 - by @wheatjs and @antfu in #3460 and #3457 (df343) - useFuse: Upgrade
fuse.js
to v7 - by @antfu in #4036 (cb44c) - useIntersectionObserver: Update the
threshold
default to 0 - by @Alfred-Skyblue in #4069 (13e36) - useJwt: Upgrade
jwt-decode
to v4 - by @root5427 and @antfu in #3510 (9037d)
🚀 Features
- integrations: Bump
drauu
anduniversal-cookie
major version - by @antfu (1c9ec) - useCssVars: Remove property on null/undefined - by @ferferga in #3821 (fe19c)
- useDateFormat: Locales is now reactive - by @OrbisK and @antfu 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 @antfu 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, @antfu 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 and @antfu in #3950 (adbe0)
- useWindowSize: Add ability to get outer sizes of the window - by @khawarizmus and @antfu in #3999 (bfba3)
🐞 Bug Fixes
- computedWithControl: Allow optional oldValue parameter in computedWithControl getter - by @haoyun in #4132 (5725a)
- isDefined: Moves most specific overload to the top - by @bjacobgordon-cy in #4141 (fd884)
- until: Cleanup at next tick to avoid memory leak - by @Gianthard-cyh, @antfu and delaneyb in #4039 (8a023)
- useChangeCase: Use the exported key for filter - by @thyngster, autofix-ci[bot] and @antfu in #4130 (5c598)
- useColorMode, useDark: Fix full page reflows when calling useColorMode and useDark - by @jpleclerc, Jean-Philippe Leclerc 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) - useMutationObserver: Stop watching before cleaning up - by @pimlie in #4037 (489a9)
- useResizeObserver: Fix
target
is Ref Array - by @Alfred-Skyblue and @antfu in #4005 (1c124) - useRouteHash, useRouteParams, useRouteQuery: Fix effect triggering multiple times - by @aethr in #4113 (965bf)
- useTextareaAutosize: Improve
triggerResize
triggering - by @Mutter45 and @antfu 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 @antfu in #4043 (0716d)