Releases: vueuse/vueuse
Releases · vueuse/vueuse
v11.0.0-beta.3
🚨 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)
🏎 Performance
View changes on GitHub
v10.11.1
No significant changes
View changes on GitHub
v11.0.0-beta.2
🚨 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)
🏎 Performance
View changes on GitHub
v11.0.0-beta.1
🚨 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) - useJwt: Upgrade
jwt-decode
to v4 - by @root5427 and @antfu in #3510 (9037d)
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v10.11.0
🐞 Bug Fixes
View changes on GitHub
v10.10.1
v10.10.0
🚀 Features
- createInjectionState: Add defaultValue option - by @melishev in #3902 (fb468)
- makeDestructurable: Support parameters without
as const
- by @enpitsuLin in #3971 (4ea13) - nuxt: Add router addon to nuxt module - by @Coiggahou2002 and rorycai in #3975 (2a77f)
- onLongPress:
options.onMouseUp
callback - by @noook and Anthony Fu in #3791 (7346a) - useActiveElement: Add
triggerOnRemoval
option - by @alexzhang1030 and @antfu in #3958 (f3515) - useEventSource: Return
lastEventId
- by @pkc918 in #3984 (29bc6) - useTimeout: Target support reactivity - by @huiliangShen and banruo in #3923 (4eede)
- useWebWorkerFn: Support local function dependencies - by @thefeymesaleng in #3899 (f4028)
🐞 Bug Fixes
- nuxt: Opt in to
import.meta.*
properties - by @danielroe in #3888 (1558c) - useAnimate:
commitStyles
when finish - by @a1mersnow in #3990 (fba4e) - useDisplayMedia: Stop stream when screen is not shared anymore - by @robertrosman in #3976 (a3c6f)
- useDraggable: Should ignore right clicks - by @Justineo in #3850 (9f10a)
- useElementSize: Use getBoundingClientRect get element size on SVG - by @siaikin in #3940 (d8015)
- useFileDialog: Check if input value exists before trigger onChange - by @jinkaiqin in #3972 (424a2)
- useGamepad: Avoid spread to fix gamepad state - by @yue4u in #3913 (2ccbd)
- useMediaControls: Target params may not be ref - by @huiliangShen in #3921 (1fe2f)
- useMounted: The second argument in vue2.7 should be
undefined
- by @yanbowe, @antfu and Glandos in #3830 (7966b) - useRouteParams: Support optional params - by @huiliangShen in #3934 (4a882)
- useScroll: Sync scroll val to internal state, fix #3809 - by @kongmoumou in #3817 and #3809 (317ca)
- useScrollLock: Function unlock does not work - by @loongzhu in #3847 (d9ee4)
- useTextareaAutosize: OnResize callback fires not only on resize - by @huiliangShen and banruo in #3887 (a6ede)
- useVirtualList: Add containerRef to watch list - by @eliamartani in #3855 (4636f)
- useWebNotification: Detect
isSupported
with try-catch - by @9romise in #3980 (b291c) - useWebSocket: UrlRef changes were not being tracked - by @ferferga in #3870 (c2f92)
View changes on GitHub
v10.9.0
🚀 Features
- whenever: Override once option - by @chizukicn in #3800 (bd946)
🐞 Bug Fixes
- useActiveElement/useFocusWithin: Replace computedWithControl with locally tracked ref - by @jaketig in #3815 (b1426)
- useClipboard: Fix issue when permission is not defined - by @Mister-Hope in #3812 (a9f02)
- useIDBKeyval: Use toRaw instead of overriding the original object - by @ferferga in #3805 (1b67d)
- useMounted: Compatible with vue2.7 - by @yanbowe in #3802 (ee297)
- useScrollLock: InitialOverflow is not working - by @BJ0815 in #3798 (74e86)
View changes on GitHub
v10.8.0
🚀 Features
- createInjectionState: InjectionKey use composable name - by @zhangxuyang950313 in #3788 (c2cfd)
- nuxt: Move to ESM-first and fix types - by @userquin in #3606 (b3d74)
- throttleFilter: Support object as argument - by @17359898647 and Anthony Fu in #3722 (66d09)
- useAxios: Support
abortPrevious
option - by @jahnli and @antfu in #3735 (b94de) - useBreakpoints: Enable passing ref or getter to get breakpoints - by @Doctor-wu in #3621 (d3317)
- useBreakpoints: Add
strategy
option to allow desktop-first convention - by @jack-allocate and @antfu in #3783 (15fc0) - useBreakpoints: Add
active
getter, add breakpoints for Vuetify v3 - by @altrusl, @Doctor-wu and @antfu in #3687 (3ae45) - useCurrentElement: Allow get current element from a specific component - by @linspw and @antfu in #3750 (0a9aa)
- useCycleList: Add
go
function - by @Jokerzhzh and @antfu in #3615 (2ae36) - useDraggable: Add disabled parameter - by @huiliangShen and banruo in #3613 (dee9a)
- useEventSource: Add
autoReconnect
andimmediate
to options, update typings - by @schelmo in #3793 (b33ab) - useMutationObserver: Allow multiple targets - by @chirokas in #3741 (98fac)
- useParallax: Can work with different screen orientation - by @huiliangShen and banruo in #3675 (3fd94)
- useTextareaAutosize: Allow configuring
styleProp
to support nativerows
attribute - by @yakudik, alexander.kudinov, Anthony Fu and @antfu in #3552 (5025e)
🐞 Bug Fixes
- Stricter types - by @antfu (a086e)
- createReusableTemplate: Improve types - by @louiss0, louiss0, Anthony Fu and @antfu in #3641 (75168)
- useAnimate: Immediate option set false not working - by @huiliangShen, banruo and Anthony Fu in #3763 (12c09)
- useCloned: Correct return type - by @17359898647 in #3711 (e262f)
- useCounter: Allow
delta
to be negative - by @leewakin, @Doctor-wu and @antfu in #3650 (cf29c) - useDraggable: Avoid moving out of container - by @wangliangxin and wangliangxin3 in #3768 (55b94)
- useElementVisiblity: Can configurable threshold - by @huiliangShen and @Doctor-wu in #3715 (ce9bb)
- useFetch: Mark
isFinished
,isFetching
readonly - by @baboon-king and @antfu in #3616 (31d4a) - useFetch: Remove unnecessary spread operator in iterable conversion - by @BlackCrowxyz in #3660 (f5587)
- useFileSystemAccess: UpdateData on modified file - by @PhE in #3780 (668ca)
- useGamepad: Explicitly ensure gamepad index is available - by @AntoninRousset and AntoninRousset in #3653 (8c735)
- useGamepad: Improve data updating logic - by @okydk in #3775 (9b8ed)
- useMounted: Hold the instance, close #3785, close #3795 - by @antfu in #3785 and #3795 (2f66e)
- useRafFn: Fix
fpsLimit
option, fix #3481, close #3482 - by @antfu in #3481 and #3482 (69990) - useResizeObserver: Do not watch deep to avoid cicular calls - by @birdxiao, birdxiao and @antfu in #3753 (48421)
- useRouteParams,useRouteQuery: Set route param/query to undefined when null or defaultValue - by @mtdvlpr and @antfu in #3583 (c44fe)
- useScroll: Add
onError
hook and avoid throws by default, fix #3580 - by @steklopod, @antfu and Brendo Maciel in #3605 and #3580 (fab86) - useStorage: Ensure setting value to null syncs to other instances - by @callumacrae and @antfu in #3737 (f7ea1)
- useUserMedia: Stop stream on scope dispose - by @Waleed-KH in #3757 (6d44d)
- useWebSocket: Reset
wsRef
on close, fix #3706 - by @a982246809 and @Doctor-wu in #3707 and #3706 (9a47a) - useWebSocket:
immediate
should only be applied once, close #3676 - by @antfu in #3676 (93b96)
View changes on GitHub
v10.7.2
🐞 Bug Fixes
- computedEager: Adapt to changes in vue3.4+ - by @Doctor-wu in #3689 (b6d8f)
- nuxt: Move
nuxt
out of dependencies - by @antfu (866a1) - useAxios: Ignore undefined options - by @geektheripper, @Doctor-wu, @antfu and Doctorwu in #3662 (37eae)
- useBattery: Fake signal API support in some utilities - by @tachibana-shin and @Doctor-wu in #3634 (30245)
- useDraggable: Can not work well when parent element is scrollable - by @huiliangShen and banruo in #3692 (bdd79)
- useStorageAsync: Correct ssr handler - by @Doctor-wu in #3703 (c197e)
- useTimeAgo: Support custom UnitNames type for units field - by @nickmessing and @Doctor-wu in #3684 (1d6be)