Releases: vueuse/vueuse
Releases · vueuse/vueuse
v13.6.0
🚀 Features
- Mark templateRef as deprecated - by @ilyaliao in #4894 (0271e)
- useFileDialog: Add MaybRef to multiple, accept, capture, reset, and directory - by @hunterwilhelm, Anthony Fu and @antfu in #4813 (a44bd)
- useFocusTrap: Expose updateContainerElements for dynamic contai… - by @PeikyLiu and @ilyaliao in #4849 (3d5e5)
- useIDBKeyval: Add
options.serializer
- by @matthewjumpsoffbuildings, @OrbisK and @43081j in #4781 (bb831) - useStorageAsync: Add
onReady
option and Promise return - by @asika32764, Fernando Fernández, @OrbisK and Anthony Fu in #4158 (3a2df) - useTransition: Support custom window - by @byronogis and Anthony Fu in #4850 (a75f4)
🐞 Bug Fixes
- onClickOutside: The order of overload signatures - by @whiteyebrw, @ilyaliao and Anthony Fu in #4839 (d5812)
- types: Use Vue's native
MaybeRef
andMaybeRefOrGetter
instead - by @RYGRIT in #4913 (2d179) - useDraggable: Add capture prop to component - by @wgh970312 in #4911 (547f8)
- useMagicKeys: Prevent incorrect clearing of other keys after releasing shift - by @keeplearning66 in #4916 (d7f28)
- useMouseInElement: Correctly update elementX and elementY - by @cszhjh and @ilyaliao in #4846 (cf02b)
- useVirtualList: Resolve invalid watch source - by @cszhjh and @OrbisK in #4857 (d2381)
View changes on GitHub
v13.5.0
🚀 Features
- useSpeechSynthesis: Add reactivity for volume - by @whiteyebrw in #4837 (4d125)
🐞 Bug Fixes
- useCookie: Update
universal-cookie
range to^7 || ^8
#4834
View changes on GitHub
v13.4.0
🚀 Features
- shared: Introduce
TimerHandle
for setTimeout type - by @ilyaliao in #4801 (319d8) - useAsyncState: Add executeImmediate with the same type as the promise fn - by @davidglezz in #4716 (82740)
- useEventSource: Added lastEventId for named events - by @whiteyebrw in #4791 (f6f0b)
- useFetch: Support for custom abort reason - by @doyuli in #4820 (44c0b)
- useRefHistory: Add
shouldCommit
- by @JonathanSchndr, Anthony Fu and Robin in #4471 (18acf) - useUrlSearchParams: Add a stringify option for users to provide stringify logic - by @mingXta, Robin and Anthony Fu in #4773 (6a523)
🐞 Bug Fixes
- computedWithControl: Allow deeply watching source - by @MetRonnie and Anthony Fu in #4786 (ffc1a)
- useDevicesList: Check for device availability before requesting permissions - by @ilyaliao in #4818 (c424f)
- useEventListener: Improve types - by @ArthurDarkstone, liliang18 and @Alfred-Skyblue in #4787 (6f565)
- useIdle: Changed the
reset
call when the initial value is true - by @whiteyebrw in #4800 (c6469) - useMouseInElement: Fixing the issue where target element updates were not considered. - by @Codfisher and bgm.cod in #4782 (04af9)
- useScreenSafeArea: Сhanged initial value update - by @whiteyebrw in #4789 (ae573)
- useScriptTag: Support passing nonce - by @1-dilikelei and 董梁玮 in #4753 (57370)
- useScroll: Use mutationObserver to update arrivedState when the DOM is changed - by @andylou0102, AndyLuo, Robin and Anthony Fu in #4433 (135d5)
- watchIgnorable: Add and export types - by @ArthurDarkstone, liliang18 and Robin in #4809 (0e10e)
🏎 Performance
- computedWithControl: Optimize with shallowRef - by @broBinChen and binge_c-admin in #4826 (2c91a)
View changes on GitHub
v13.3.0
🚀 Features
- useNow: Expose immediate option - by @scottbedard in #4768 (44660)
🐞 Bug Fixes
- asyncComputed: Fix types for
AsyncComputedOptions
- by @antfu (217cc) - useFetch: Use
globalThis.fetch
whendefaultWindow.fetch
not exist - by @Groupguanfang, Naily and @OrbisK in #4765 (bf354) - useSortable: Fix type misalignment - by @michaelcozzolino in #4760 (16692)
View changes on GitHub
v13.2.0
🚀 Features
- computedAsync: Add option to control watcher's flush timing - by @ferferga in #4746 (b1bc8)
- useFileDialog: Allow custom input element for file dialog - by @ishakhorski in #4679 (0ea16)
- useScroll: Add missing measure documentation - by @Matkolit and Mateusz Kołodziej in #4727 (dd98a)
- useStyleTag: Support passing
nonce
- by @1-dilikelei and 董梁玮 in #4749 (fa2c0) - watchOnce: Use vue's native once behaviour - by @ferferga in #4750 (08f7d)
🐞 Bug Fixes
- Allow vertical scroll in usePointerSwipe - by @2nofa11 in #4637 and #4720 (d3ed6)
- Always mount listeners in useStorage - by @43081j in #4730 (65a99)
- UseArrayFindReturn: Missing template type - by @michaelcozzolino in #4715 (43903)
- computedAsync: Return
ComputedRef<T>
type whenlazy: true
- by @ferferga in #4751 (b1718) - docs: Grammar in /packages/nuxt/README.md - by @neeko-cat in #4701 (44b40)
- fromEvent: Fix type error of element reference - by @ywenhao and @antfu in #4728 (94fea)
- onClickOutside: Workaround for iOS - by @ferferga in #4735 (1c60c)
- useElementSize: Component type warning - by @menghany in #4722 (9889f)
- useEventSource: Add missing data generic - by @OrbisK in #4726 (a969e)
- useFullscreen: Get the correct initial state while mounted - by @ben-lau and liubaobin in #4745 (09cbd)
- useMagicKeys: Correctly clear current pressed keys when releasing Shift - by @Kedlingar and Skstud5 in #4731 (ab7ac)
View changes on GitHub
v13.1.0
🚀 Features
- shared: Ensure return types exists - by @OrbisK in #4659 (c1d6e)
- useSortable: Add possibility to use it with Component ref - by @michaelcozzolino in #4684 (15917)
🐞 Bug Fixes
- docs: Blog moved to different domain - by @th1m0 in #4663 (72c9a)
- nuxt: Don't require
@vueuse/core
installed at root - by @danielroe in #4698 (17a46) - tryOnMounted: Pass target to getLifeCycleTarget - by @Eazash in #4685 (16551)
- useDropZone: Allow passing
document
as target - by @osbre in #4681 (21fa6)