v11.0.0-beta.3
版本发布时间: 2024-08-15 02:16:11
vueuse/vueuse最新发布版本:v11.1.0(2024-09-16 17:09:03)
🚨 Breaking Changes
-
useChangeCase: Migrate to
change-case@v5
, closes #3457 - by @wheatjs and @antfu in https://github.com/vueuse/vueuse/issues/3460 and https://github.com/vueuse/vueuse/issues/3457 (df343) -
useFuse: Upgrade
fuse.js
to v7 - by @antfu in https://github.com/vueuse/vueuse/issues/4036 (cb44c) -
useIntersectionObserver: Update the
threshold
default to 0 - by @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/4069 (13e36) -
useJwt: Upgrade
jwt-decode
to v4 - by @root5427 and @antfu in https://github.com/vueuse/vueuse/issues/3510 (9037d)
🚀 Features
-
integrations: Bump
drauu
anduniversal-cookie
major version - by @antfu (1c9ec) - 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 @antfu 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 @antfu 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, @antfu 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 and @antfu 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
- computedWithControl: Allow optional oldValue parameter in computedWithControl getter - by @haoyun in https://github.com/vueuse/vueuse/issues/4132 (5725a)
- isDefined: Moves most specific overload to the top - by @bjacobgordon-cy in https://github.com/vueuse/vueuse/issues/4141 (fd884)
- until: Cleanup at next tick to avoid memory leak - by @Gianthard-cyh, @antfu and delaneyb in https://github.com/vueuse/vueuse/issues/4039 (8a023)
- useChangeCase: Use the exported key for filter - by @thyngster, autofix-ci[bot] and @antfu in https://github.com/vueuse/vueuse/issues/4130 (5c598)
- useColorMode, useDark: Fix full page reflows when calling useColorMode and useDark - by @jpleclerc, Jean-Philippe Leclerc 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) - useMutationObserver: Stop watching before cleaning up - by @pimlie in https://github.com/vueuse/vueuse/issues/4037 (489a9)
-
useResizeObserver: Fix
target
is Ref Array - by @Alfred-Skyblue and @antfu in https://github.com/vueuse/vueuse/issues/4005 (1c124) - useRouteHash, useRouteParams, useRouteQuery: Fix effect triggering multiple times - by @aethr in https://github.com/vueuse/vueuse/issues/4113 (965bf)
-
useTextareaAutosize: Improve
triggerResize
triggering - by @Mutter45 and @antfu 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 @antfu in https://github.com/vueuse/vueuse/issues/4043 (0716d)
🏎 Performance
-
useAnimate: Set
sync
false - by @JianJroh, @antfu and autofix-ci[bot] in https://github.com/vueuse/vueuse/issues/3916 (7b108)