Releases: vueuse/vueuse
Releases · vueuse/vueuse
v9.8.1
🐞 Bug Fixes
View changes on GitHub
v9.8.0
🚀 Features
- extendRef: Support 2.7, close #2340 - by @antfu in #2340 (8c82e)
- onClickOutside: Allow selector strings for ignore list - by @sibbng and @antfu in #2439 (7b3db)
- useTimeAgo: Non-reactive version
formatTimeAgo
- by @antfu (9293c)
🐞 Bug Fixes
- onClickOutside: Apply ignore list on keyboard clicks - by @sibbng in #2438 (12e21)
- useTimeAgo: Rounding unit fallback - by @antfu (f40a0)
View changes on GitHub
v9.7.0
🚀 Features
- createEeventHook: Auto dispose - by @ARZarkesh and @antfu in #2518 (fdd4d)
- useBreakpoints: Add breakpoints for Master CSS - by @imsus in #2529 (30c5b)
- useRafFn: Add
delta
andtimestamp
- by @innocenzi in #2493 (692d0) - useTimeAgo: Add
floor
andceil
value calculation - by @userquin and @antfu in #2543 (a7dc6) - useTimeAgo: Custom units, number rounding - by @antfu (324de)
🐞 Bug Fixes
- Reference - by @antfu (ea497)
- useActiveElement: Ignore blur for relatedTarget - by @dpschen in #2540 (88b44)
- useDraggable: Use
clientX
instead ofpageX
, close #2053 - by @stefnotch in #2054 and #2053 (c9186) - useGeolocation: Implement immediate option - by @ebisbe in #2472 (161fd)
- useIntervalFn: Watch computed refs instead of just refs - by @innocenzi in #2539 (8bb7b)
- useMagicKeys: Also clear 'current' on @Focus - by @hartmut (@blur)
- useStyleTag: Allow multiline CSS - by @jameswragg in #2476 (cfcc2)
- useTextareaAutosize: Support changes of element width - by @dpschen in #2541 (ebd48)
- useTimeAgo: Add
showSecond
prop to component - by @CS-Birb in #2547 (0c333) - useWindowScroll: Use configured window onScroll - by @94726 in #2545 (5df0a)
View changes on GitHub
v9.6.0
🐞 Bug Fixes
- onClickOutside: Call handler if
click
event is fired by a keypress - by @sibbng in #2426 (ff96d) - ssr-plugin: Use useHead instead of useMeta - by @daniil4udo in #2449 (01c28)
- useFirestore: Fix falsy type error - by @kiyopikko in #2431 (6886e)
- useIDBKeyval: Incorrect value init set - by @sun0day in #2416 (1d841)
- useStyleTag: Allow use of existing node - by @jameswragg in #2442 (94413)
- useTransition: Call pause() to stop useRafFn when disabling - by @huodoushigemi, 李众豪 and @antfu in #2360 (0a49e)
View changes on GitHub
v9.5.0
🚀 Features
- onClickOutside: Support options in component - by @fiadone and @sibbng in #2391
- useEventListener: Accept multiple
events
orlisteners
- by @vaakian and @antfu in #2180 - useFetch: Allow configure lifecycle handler behavior - by @climba03003 in #2333
- useFetch: Support sending the custom request to an absolute URL regardless baseURL - by @sun0day in #2210
- useGeolocation: Pause and resume controls - by @benax-se in #2376
- useIDBKeyval: New integration - Idb-keyval wrapper - by @Harmony222 in #2335
- useWebsocket: Url to be ref/computed - by @rotu in #2367
🐞 Bug Fixes
- onClickOutside: Access correct
document
- by @sibbng in #2404 - usePointerSwipe: Handle secondary clicks properly - by @curtgrimes in #2379
- useScroll: The expected result cannot be returned after setting the throttle parameter - by @LittleSound in #2390
- useWebSocket: Don't hide pong setTimeout reference - by @kellerza and @antfu in #2206
View changes on GitHub
v9.4.0
🚀 Features
- refDebounced: Use MaybeComputedRef for ms - by @dominikklein in #2337
- useClipboard: Support legacy copy - by @lumdzeehol in #2336
- useVirtualList: Horizontal list - by @Surof1n in #2310
- useWebWorker: Support overloads - by @GODLiangCY in #2259
🐞 Bug Fixes
- useCounter: Set and reset should also be limited - by @iChengbo in #2179
- useRouteHash, useRouteParams, useRouteQuery: Override only selected route param - by @dvh91 in #2350
- useWebSocket: Don't reconnect WebSocket if
close
issued between retries - by @rotu in #2330 - watchThrottled: Wait incorrect remaining time - by @sun0day in #2267
View changes on GitHub
v9.3.1
🚀 Features
- fromEvent: Support HTMLElement - by @rorry121 and @antfu in #2048
- useAxios: Add R genericity type for custom response data - by @jahnli in #2304
- useFocusTrap: Enable options in component - by @azaleta in #2321
- useSorted: New function - by @okxiaoliang4 in #1799
🐞 Bug Fixes
- nuxt: Wrap ssr plugin in defineNuxtPlugin - by @dan-online in #2326
- useBluetooth: Use
shallowRef
for bluetooth instance - by @antfu (0199b) - useFetch: Fix incorrect
chainCallbacks
behavior - by @GODLiangCY in #2231 - useFirestore: Auto dispose documents - by @Zehir in #2318
- useStorage: Fixed data desynchronization in case of clearing storage - by @yuryrudey in #2221
- useTitle: Prevent
observe
andtitleTemplate
been specified at the same time - by @huynl-96 and @antfu in #2049
View changes on GitHub
v9.3.0
🚀 Features
- Optional callback for useInterval, useTimeout & useTimestamp - by @Waleed-KH in #2240
- onClickOutside: Add
bubble
modifier to directive - by @sibbng in #2183 - onKeyStroke: Support capture all handler - by @azaleta in #2197
- useAxios: Improve type - by @azaleta in #2208
- useAxios: Add second generic type to error - by @azaleta in #2248
- useAxios: Add option for choosing shallowRef or ref - by @jahnli in #2251
- useDateFormat: Support MMM and MMMM formatter - by @777Vasya77 in #2234
- useDateFormat: Support meridiem format - by @huynl-96 in #2011
- useFirestore: Support dependent queries - by @kiyopikko in #2103
- useMediaQuery: Allow query to be a
ref
- by @GODLiangCY in #2178 - useScroll: Support setting scroll position and toggling smooth scrolling - by @curtgrimes in #1996
- useTimeAgo: New
showSecond
option - by @azaleta in #2209
🐞 Bug Fixes
- onClickOutside: Put ignore logic on
pointerdown
event - by @GODLiangCY in #2198 - templateRef: Add Component type - by @Holi0317 in #2203
- until:
.not
returns new instance - by @lsdsjy and @antfu in #2224
View changes on GitHub
v9.2.0
🚨 Breaking Changes
- Bump Nuxt support to RC.9, update
autoImports:sources
hook - by @DamianGlowala in #2166
🚀 Features
- useAxios: Support RequestConfig for
execute
- by @azaleta in #2152 - useBreakpoints: Support
greaterOrEqual
etc. - by @azaleta in #2148 - useCloned: New function - by @chaii3 and @antfu in #2045
- useDraggable: Support customizing
trigger
element - by @imguolao in #2133 - useElementSize: Support
box
sizing - by @vaakian and @antfu in #2143 - useElementVisibility: Support watch the real element - by @sxzz in #2169
- useUrlSearchParams: Add
write
option - by @waldonUB in #2165 - useVModel: Support
clone
option - by @edumudu and @antfu in #2022 - useWebSocket: Enhence heartbeat - by @azaleta in #2170
- useWindowSize: Support
includeScrollbar
- by @vaakian in #2161
🐞 Bug Fixes
- useArrayMap: Allow return type matches the mapper function - by @GODLiangCY in #2172
- useAxios: Reset error on
execute
- by @flyingTodream in #2095 - useDevicePixelRatio: More efficient mechanism - by @Waleed-KH and @antfu in #2044
- useFavicon: Improve type overload - by @azaleta in #2123
- useFileDialog: Choose file not work on mobile - by @1SZX1 and @antfu in #2080
- useFocusWithin: Change focused typing to ComputedRef - by @chaii3 in #2073
- useMemoize: Allow number in
getKey
- by @chaii3 in #2074
View changes on GitHub
v9.1.1
🚀 Features
- usePreferredContrast: New function - by @Zhaocl1997 in #2040
🐞 Bug Fixes
- firebase: Improve externalization - by @antfu (e2a78)
- shared: Resolve internal circular reference - by @antfu (0fdbb)
- useActiveElement: Use
computedWithControl
instead ofcounter
ref - by @vaakian in #2093 - useElementHover: Support set el ref type - by @JiatLn in #2079
- useScroll: Account for rounding errors when calculating arrivedState - by @curtgrimes in #2051
- useURLSearchParams: Avoid referencing to global
location
- by @mskr in #2066