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