VueUse v14.3.0
vueuse/vueuse
Summary
VueUse v14.3.0 introduces several new features including pointer event support for onLongPress, enhanced createInjectionState functionality, and composable variants for Nuxt auto imports. Additionally, bug fixes improve SSR handling in useCssSupports and enhance the onClickOutside directive to detect iframes within shadow DOM.
Full release notes
🚀 Features
- Expose pointer event onLongPress - by @mrcwbr in https://github.com/vueuse/vueuse/issues/5295 (b1688)
- createInjectionState: Non-undefined return when default specified - by @Laupetin in https://github.com/vueuse/vueuse/issues/5306 (b0c51)
- createReusableTemplate: Add support for specifying component names - by @wbolster in https://github.com/vueuse/vueuse/issues/5300 (ea29d)
- nuxt: Add composable variants to auto imports - by @OrbisK in https://github.com/vueuse/vueuse/issues/5285 (ac2ef)
- useElementVisibility: Add
controlsoption - by @kricsleo in https://github.com/vueuse/vueuse/issues/5191 (0cb03) - useTextareaAutosize: Add optional
maxHeightto limit autosize growth - by @palamarchukser, @antfu and @9romise in https://github.com/vueuse/vueuse/issues/5324 (1a3e5)
🐞 Bug Fixes
- Add explicit
./package.jsonexport to all packages - by @babu-ch and @OrbisK in https://github.com/vueuse/vueuse/issues/5343 (0d989) - core: Always return ssrValue in useCssSupports before mounted - by @danielroe in https://github.com/vueuse/vueuse/issues/5290 (76b0b)
- directive: Create disposable directive func cleanup of side effects unmounted - by @kalu5, @43081j, Raman Paulau and @OrbisK in https://github.com/vueuse/vueuse/issues/5244 (52d68)
- docs: Typos in useManualRefHistory, useFocusWithin, useStorageAsync, useIntersectionObserver - by @blowsie, Sam Blowes and @OrbisK in https://github.com/vueuse/vueuse/issues/5329 (1d9c4)
- docs: Add
ignoreDeprecationsfor twoslash TS 6.0 compat - by @antfu and Claude Opus 4.6 (1M context) in https://github.com/vueuse/vueuse/issues/5367 (9d1eb) - metadata: Cleanup removed function
resolveRef- by @ntnyq in https://github.com/vueuse/vueuse/issues/5307 (49da8) - onClickOutside: Detect iframe inside shadow DOM with detectIframe option - by @babu-ch and @OrbisK in https://github.com/vueuse/vueuse/issues/5336 (1a77b)
- shared: Align overloads order of watch functions with original version - by @KazariEX in https://github.com/vueuse/vueuse/issues/5288 (f1d32)
- useAxios: Handle optional response data safely - by @jahnli in https://github.com/vueuse/vueuse/issues/5318 (51198)
- useCached: Update comparator type and improve documentation - by @IceMooncake in https://github.com/vueuse/vueuse/issues/5376 (d886c)
- useClipboard: Prevents fail in Safari for async operation - by @MatteoGabriele in https://github.com/vueuse/vueuse/issues/5369 (5ec56)
- useSortable: Re-query DOM on every
start()for string selectors - by @Mini-ghost in https://github.com/vueuse/vueuse/issues/5374 (3341f) - useVirtualList: React to changes made in mutable arrays properly - by @dcherman in https://github.com/vueuse/vueuse/issues/5267 (7069e)
- useWakeLock: Auto-release wake lock on component unmount - by @ProgrammingWithSid and @OrbisK in https://github.com/vueuse/vueuse/issues/5271 (43937)
- useWebSocket: Race condition caused by onopen/onclose events. - by @DanCardin, @antfu and @9romise in https://github.com/vueuse/vueuse/issues/5175 (6661c)
- whenever: Improve old value types - by @VChet in https://github.com/vueuse/vueuse/issues/5096 (979c6)
🏎 Performance
- Replace
deepRefwithshallowRefwhere appropriate - by @9romise in https://github.com/vueuse/vueuse/issues/5293 (80004)
