🚀 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)