This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@vueuse/core | ^8.4.2 -> ^9.0.0 |
Release Notes
vueuse/vueuse
v9.6.0
🐞 Bug Fixes
-
onClickOutside: Call handler if
click
event is fired by a keypress - by @sibbng in https://github.com/vueuse/vueuse/issues/2426 (ff96d) - ssr-plugin: Use useHead instead of useMeta - by @daniil4udo in https://github.com/vueuse/vueuse/issues/2449 (01c28)
- useFirestore: Fix falsy type error - by @kiyopikko in https://github.com/vueuse/vueuse/issues/2431 (6886e)
- useIDBKeyval: Incorrect value init set - by @sun0day in https://github.com/vueuse/vueuse/issues/2416 (1d841)
- useStyleTag: Allow use of existing node - by @jameswragg in https://github.com/vueuse/vueuse/issues/2442 (94413)
- useTransition: Call pause() to stop useRafFn when disabling - by @huodoushigemi, 李众豪 and @antfu in https://github.com/vueuse/vueuse/issues/2360 (0a49e)
View changes on GitHub
v9.5.0
🚀 Features
- onClickOutside: Support options in component - by @fiadone and @sibbng in https://github.com/vueuse/vueuse/issues/2391
-
useEventListener: Accept multiple
events
orlisteners
- by @vaakian and @antfu in https://github.com/vueuse/vueuse/issues/2180 - useFetch: Allow configure lifecycle handler behavior - by @climba03003 in https://github.com/vueuse/vueuse/issues/2333
- useFetch: Support sending the custom request to an absolute URL regardless baseURL - by @sun0day in https://github.com/vueuse/vueuse/issues/2210
- useGeolocation: Pause and resume controls - by @benax-se in https://github.com/vueuse/vueuse/issues/2376
- useIDBKeyval: New integration - Idb-keyval wrapper - by @Harmony222 in https://github.com/vueuse/vueuse/issues/2335
- useWebsocket: Url to be ref/computed - by @rotu in https://github.com/vueuse/vueuse/issues/2367
🐞 Bug Fixes
-
onClickOutside: Access correct
document
- by @sibbng in https://github.com/vueuse/vueuse/issues/2404 - usePointerSwipe: Handle secondary clicks properly - by @curtgrimes in https://github.com/vueuse/vueuse/issues/2379
- useScroll: The expected result cannot be returned after setting the throttle parameter - by @LittleSound in https://github.com/vueuse/vueuse/issues/2390
- useWebSocket: Don't hide pong setTimeout reference - by @kellerza and @antfu in https://github.com/vueuse/vueuse/issues/2206
View changes on GitHub
v9.4.0
🚀 Features
- refDebounced: Use MaybeComputedRef for ms - by @dominikklein in https://github.com/vueuse/vueuse/issues/2337
- useClipboard: Support legacy copy - by @lumdzeehol in https://github.com/vueuse/vueuse/issues/2336
- useVirtualList: Horizontal list - by @Surof1n in https://github.com/vueuse/vueuse/issues/2310
- useWebWorker: Support overloads - by @GODLiangCY in https://github.com/vueuse/vueuse/issues/2259
🐞 Bug Fixes
- useCounter: Set and reset should also be limited - by @iChengbo in https://github.com/vueuse/vueuse/issues/2179
- useRouteHash, useRouteParams, useRouteQuery: Override only selected route param - by @dvh91 in https://github.com/vueuse/vueuse/issues/2350
-
useWebSocket: Don't reconnect WebSocket if
close
issued between retries - by @rotu in https://github.com/vueuse/vueuse/issues/2330 - watchThrottled: Wait incorrect remaining time - by @sun0day in https://github.com/vueuse/vueuse/issues/2267
View changes on GitHub
v9.3.1
🚀 Features
- fromEvent: Support HTMLElement - by @rorry121 and @antfu in https://github.com/vueuse/vueuse/issues/2048
- useAxios: Add R genericity type for custom response data - by @jahnli in https://github.com/vueuse/vueuse/issues/2304
- useFocusTrap: Enable options in component - by @azaleta in https://github.com/vueuse/vueuse/issues/2321
- useSorted: New function - by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1799
🐞 Bug Fixes
- nuxt: Wrap ssr plugin in defineNuxtPlugin - by @dan-online in https://github.com/vueuse/vueuse/issues/2326
-
useBluetooth: Use
shallowRef
for bluetooth instance - by @antfu (0199b) -
useFetch: Fix incorrect
chainCallbacks
behavior - by @GODLiangCY in https://github.com/vueuse/vueuse/issues/2231 - useFirestore: Auto dispose documents - by @Zehir in https://github.com/vueuse/vueuse/issues/2318
- useStorage: Fixed data desynchronization in case of clearing storage - by @yuryrudey in https://github.com/vueuse/vueuse/issues/2221
-
useTitle: Prevent
observe
andtitleTemplate
been specified at the same time - by @huynl-96 and @antfu in https://github.com/vueuse/vueuse/issues/2049
View changes on GitHub
v9.3.0
🚀 Features
- Optional callback for useInterval, useTimeout & useTimestamp - by @Waleed-KH in https://github.com/vueuse/vueuse/issues/2240
-
onClickOutside: Add
bubble
modifier to directive - by @sibbng in https://github.com/vueuse/vueuse/issues/2183 - onKeyStroke: Support capture all handler - by @azaleta in https://github.com/vueuse/vueuse/issues/2197
- useAxios: Improve type - by @azaleta in https://github.com/vueuse/vueuse/issues/2208
- useAxios: Add second generic type to error - by @azaleta in https://github.com/vueuse/vueuse/issues/2248
- useAxios: Add option for choosing shallowRef or ref - by @jahnli in https://github.com/vueuse/vueuse/issues/2251
- useDateFormat: Support MMM and MMMM formatter - by @777Vasya77 in https://github.com/vueuse/vueuse/issues/2234
- useDateFormat: Support meridiem format - by @huynl-96 in https://github.com/vueuse/vueuse/issues/2011
- useFirestore: Support dependent queries - by @kiyopikko in https://github.com/vueuse/vueuse/issues/2103
-
useMediaQuery: Allow query to be a
ref
- by @GODLiangCY in https://github.com/vueuse/vueuse/issues/2178 - useScroll: Support setting scroll position and toggling smooth scrolling - by @curtgrimes in https://github.com/vueuse/vueuse/issues/1996
-
useTimeAgo: New
showSecond
option - by @azaleta in https://github.com/vueuse/vueuse/issues/2209
🐞 Bug Fixes
-
onClickOutside: Put ignore logic on
pointerdown
event - by @GODLiangCY in https://github.com/vueuse/vueuse/issues/2198 - templateRef: Add Component type - by @Holi0317 in https://github.com/vueuse/vueuse/issues/2203
-
until:
.not
returns new instance - by @lsdsjy and @antfu in https://github.com/vueuse/vueuse/issues/2224
View changes on GitHub
v9.2.0
🚨 Breaking Changes
- Bump Nuxt support to RC.9, update
autoImports:sources
hook - by @DamianGlowala in https://github.com/vueuse/vueuse/issues/2166
🚀 Features
-
useAxios: Support RequestConfig for
execute
- by @azaleta in https://github.com/vueuse/vueuse/issues/2152 -
useBreakpoints: Support
greaterOrEqual
etc. - by @azaleta in https://github.com/vueuse/vueuse/issues/2148 - useCloned: New function - by @chaii3 and @antfu in https://github.com/vueuse/vueuse/issues/2045
-
useDraggable: Support customizing
trigger
element - by @imguolao in https://github.com/vueuse/vueuse/issues/2133 -
useElementSize: Support
box
sizing - by @vaakian and @antfu in https://github.com/vueuse/vueuse/issues/2143 - useElementVisibility: Support watch the real element - by @sxzz in https://github.com/vueuse/vueuse/issues/2169
-
useUrlSearchParams: Add
write
option - by @waldonUB in https://github.com/vueuse/vueuse/issues/2165 -
useVModel: Support
clone
option - by @edumudu and @antfu in https://github.com/vueuse/vueuse/issues/2022 - useWebSocket: Enhence heartbeat - by @azaleta in https://github.com/vueuse/vueuse/issues/2170
-
useWindowSize: Support
includeScrollbar
- by @vaakian in https://github.com/vueuse/vueuse/issues/2161
🐞 Bug Fixes
- useArrayMap: Allow return type matches the mapper function - by @GODLiangCY in https://github.com/vueuse/vueuse/issues/2172
-
useAxios: Reset error on
execute
- by @flyingTodream in https://github.com/vueuse/vueuse/issues/2095 - useDevicePixelRatio: More efficient mechanism - by @Waleed-KH and @antfu in https://github.com/vueuse/vueuse/issues/2044
- useFavicon: Improve type overload - by @azaleta in https://github.com/vueuse/vueuse/issues/2123
- useFileDialog: Choose file not work on mobile - by @1SZX1 and @antfu in https://github.com/vueuse/vueuse/issues/2080
- useFocusWithin: Change focused typing to ComputedRef - by @chaii3 in https://github.com/vueuse/vueuse/issues/2073
-
useMemoize: Allow number in
getKey
- by @chaii3 in https://github.com/vueuse/vueuse/issues/2074
View changes on GitHub
v9.1.1
🚀 Features
- usePreferredContrast: New function - by @Zhaocl1997 in https://github.com/vueuse/vueuse/issues/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 https://github.com/vueuse/vueuse/issues/2093 - useElementHover: Support set el ref type - by @JiatLn in https://github.com/vueuse/vueuse/issues/2079
- useScroll: Account for rounding errors when calculating arrivedState - by @curtgrimes in https://github.com/vueuse/vueuse/issues/2051
-
useURLSearchParams: Avoid referencing to global
location
- by @mskr in https://github.com/vueuse/vueuse/issues/2066
View changes on GitHub
v9.1.0
🚀 Features
- useCycleList: Support MaybeRef for initialValue - by @Waleed-KH in https://github.com/vueuse/vueuse/issues/2025
- usePrecision: New function - by @antfu (49c8a)
- usePreferredReducedMotion: New function - by @Zhaocl1997 in https://github.com/vueuse/vueuse/issues/2039
- useToNumber: New function - by @antfu (f69a3)
- useToString: New function - by @antfu (2b869)
🐞 Bug Fixes
- Improve
MaybeComputedRef
- by @antfu (28c5a) - useFavicon: Writable return type - by @chaii3 and @antfu in https://github.com/vueuse/vueuse/issues/2036
- useOffsetPagination: Min value for pageCount should be 1 - by @jd-solanki and @antfu in https://github.com/vueuse/vueuse/issues/2001
-
useScriptTag: Normalize
src
arg - by @huynl-96 in https://github.com/vueuse/vueuse/issues/2030 -
useToFixed: Deprecated in favor of
usePrecision
- by @antfu (790ef) -
useTransition: Improve type of
TransitionPresets
- by @antfu (cc865)
View changes on GitHub
v9.0.2
🐞 Bug Fixes
View changes on GitHub
v9.0.1
🚀 Features
- useDateFormat: Support dd, ddd and dddd formatter - by @aki77 in https://github.com/vueuse/vueuse/issues/1986
- useFirestore: Support reactive query - by @kiyopikko in https://github.com/vueuse/vueuse/issues/2008
- useToFixed: New function - by @FliPPeDround in https://github.com/vueuse/vueuse/issues/2003
🐞 Bug Fixes
- useColorMode: When emitAuto is true, onChanged does not trigger when preferredMode changed - by @Waleed-KH in https://github.com/vueuse/vueuse/issues/2004
- useFetch: Broken callbacks when RequestInit and UseFetchOptions are both passed in - by @curtgrimes in https://github.com/vueuse/vueuse/issues/2013
View changes on GitHub
v9.0.0
🚨 Breaking Changes
-
all:
isSupported
becomesRef<boolean>
instead ofboolean
for SSR compatibility - by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1800 -
all: Rename function options type with consistant
Use
prefix, huge thanks to @okxiaoliang4! (this should not affect most of the usage case, unless you are importing those types directly)-
All Changes
-
useSpeechSynthesis: Rename type
Status
toUseSpeechSynthesisStatus
- by @antfu (db61f) -
onKeyStroke: Rename type
KeyStrokeOptions
toOnKeyStrokeOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1807 -
useAsyncState: Rename type
AsyncStateOptions
toUseAsyncStateOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1809 -
useClipboard: Rename type
ClipboardOptions
toUseClipboardOptions
andClipboardReturn
toUseClipboardReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1861 -
useElementVisibility: Rename type
VisibilityScrollTargetOptions
toUseElementVisibilityOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1863 -
useEventSource: Return type should be
UseEventSourceReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1864 -
useFavicon: Rename type
FaviconOptions
toUseFaviconOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1865 -
useFocusWithin: Rename type
FocusWithinReturn
toUseFocusWithinReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1866 -
useGeolocation: Rename type
GeolocationOptions
toUseGeolocationOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1868 -
useIdle: Rename type
IdleOptions
toUseIdleOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1869 -
useIntersectionObserver: Rename type
IntersectionObserverOptions
toUseIntersectionObserverOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1870 -
useJwt: Rename type
JwtOptions
toUseJwtOptions
andJwtResult
toUseJwtReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1899 -
useKeyModifier: Rename type
ModifierOptions
toUseModifierOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1871 -
useMagicKeys: Rename type
MagicKeys
toUseMagicKeysReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1873 -
useMemoize: Rename type
UseMemoizedFn
toUseMemoizeReturn
and new typeUseMemoizeOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1872 -
useMemory: Rename type
MemoryOptions
toUseMemoryOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1605 -
useMouse: Rename type
MouseOptions
toUseMouseOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1877 -
useMutationObserver: Rename type
MutationObserverOptions
toUseMutationObserverOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1884 -
useParallax: Rename type
ParallaxOptions
toUseParallaxOptions
andParallaxReturn
toUseParallaxReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1885 -
usePointerSwipe: Rename type
PointerSwipeOptions
toUsePointerSwipeOptions
andPointerSwipeReturn
toUsePointerSwipeReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1886 -
useRTDB: Rename type
RTDBOptions
toUseRTDBOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1901 -
useRafFn: Rename type
RafFnOptions
toUseRafFnOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1887 -
useResizeObserver: Rename type
ResizeObserverOptions
toUseResizeObserverOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1862 -
useShare: Rename type
ShareOptions
toUseShareOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1888 -
useSpeechRecognition: Rename type
SpeechRecognitionOptions
toUseSpeechRecognitionOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1889 -
useSpeechSynthesis: Rename type
SpeechSynthesisOptions
toUseSpeechSynthesisOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1890 -
useSpeechSynthesis: Remove
voiceInfo
, allowvoice
as ref - by @sibbng in https://github.com/vueuse/vueuse/issues/1882 -
useStorage: Rename type
StorageOptions
toUseStorageOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1867 -
useStorageAsync: Rename type
StorageAsyncOptions
toUseStorageAsyncOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1883 -
useSwipe: Rename type
SwipeOptions
toUseSwipeOptions
andSwipeReturn
toUseSwipeReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1891 -
useTimestamp: Rename type
TimestampOptions
toUseTimestampOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1892 -
useTransition: Rename type
TransitionOptions
toUseTransitionOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1893 -
useVModel: Rename type
VModelOptions
toUseVModelOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1894 -
useWebSocket: Rename type
WebSocketOptions
toUseWebSocketOptions
andWebSocketResult
toUseWebSocketReturn
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1895 -
useWebWorkerFn: Rename type
WebWorkerOptions
toUseWebWorkerOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1896 -
useWindowSize: Rename type
WindowSizeOptions
toUseWindowSizeOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1897 -
useInterval: Rename type
IntervalOptions
toUseIntervalOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1945 -
useIntervalFn: Rename type
IntervalFnOptions
toUseIntervalFnOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1943 -
useTimeoutFn,useTimeout: Rename type
TimeoutOptions
toUseTimeoutOptions
andTimeoutFnOptions
toUseTimeoutFnOptions
- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1944
-
useSpeechSynthesis: Rename type
-
- firebase: Support firebase 9 modular - by @antfu (9c65f)
-
math: Move
logicAnd
,logicOr
,logicNot
,useClamp
to@vueuse/math
- by @antfu in https://github.com/vueuse/vueuse/issues/1794, https://github.com/vueuse/vueuse/issues/1810 - reactify: Enable support for reactive getter by default - by @antfu in https://github.com/vueuse/vueuse/issues/1860
-
useThrottleFn:
trailing
option should befalse
by default - by @webfansplz and @antfu in https://github.com/vueuse/vueuse/issues/1687 -
useMagicKeys: Store
key
instead ofkeyCode
incurrent
- by @wvffle in https://github.com/vueuse/vueuse/issues/1506
🚀 Features
-
all: Support reactive getter as argument - in https://github.com/vueuse/vueuse/issues/1768
This introduces a new convention of passing reactive getters as arguments. Previously, many of VueUse functions supported a convention to accept optional Ref as arguments (
MaybeRef<T>
) to make the reactivity connections. For example:// pass plain value const title = useTitle('foo') // changes title to 'foo' // pass a ref const myTitle = ref('foo') useTitle(myTitle) // changes title to 'foo' // reactive triggers the update myTitle.value = 'bar' // changes title to 'bar'
Since v9.0, most of the VueUse function also accepts a getter function similar to
computed
or the watch source ofwatch
to provide better flexibility.// before const title = computed(() => `${foo.value} | template`) useTitle(title) // with 9.0 useTitle(() => `${foo.value} | template`)
It also works great with Reactivity Transform.
// before const title = $('foo') useTitle($$(title)) // you need to use $$() to preserve the reactive // with 9.0 const title = $('foo') useTitle(() => title) // you can use a getter function just like `watch`
-
math: New
@vueuse/math
package- useAbs: New function - by @LittleSound and @antfu in https://github.com/vueuse/vueuse/issues/1825
- useCeil: New function - by @webfansplz in https://github.com/vueuse/vueuse/issues/1818
- useFloor: New function - by @webfansplz in https://github.com/vueuse/vueuse/issues/1817
- useMath: New function - by @antfu in https://github.com/vueuse/vueuse/issues/1935
- useMax: New function - by @FrankFang and @antfu in https://github.com/vueuse/vueuse/issues/1829
- useMin: New function - by @antfu in https://github.com/vueuse/vueuse/issues/1934
- useRound: New function - by @webfansplz in https://github.com/vueuse/vueuse/issues/1820
- useSum: New function - by @holazz in https://github.com/vueuse/vueuse/issues/1837
- useTrunc: New function - by @hanpei and @antfu in https://github.com/vueuse/vueuse/issues/1838
- useAverage: New function - by @colgin and @antfu in https://github.com/vueuse/vueuse/issues/1826
-
New Array-related utilities
- useArrayEvery: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/1915
- useArrayFilter: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/1905
- useArrayFind: New function - by @yjl9903 and @antfu in https://github.com/vueuse/vueuse/issues/1875
- useArrayJoin: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/1904
- useArrayMap: New function - by @huynl-96 and @antfu in https://github.com/vueuse/vueuse/issues/1908
- useArrayReduce: New function - by @yjl9903 and @antfu in https://github.com/vueuse/vueuse/issues/1919
- useArraySome: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/1916
- useArrayFindIndex: New function - by @huynl-96 in https://github.com/vueuse/vueuse/issues/1973
-
syncRef: Support custom transforms - by @chaii3 and @antfu in https://github.com/vueuse/vueuse/issues/1968
-
useAsyncState: Add
throwError
option - by @TuiMao233 and @antfu in https://github.com/vueuse/vueuse/issues/1975 -
useStorage:
mergeDefaults
option - by @webfansplz and @antfu in https://github.com/vueuse/vueuse/issues/1957 -
useTextDirection: New function - by @iChengbo and @antfu in https://github.com/vueuse/vueuse/issues/1678
🐞 Bug Fixes
-
nuxt: Support import submodules for
@vueuse/integrations
- by @antfu (18ba0) - onClickOutside: Fix handler type - by @sibbng in https://github.com/vueuse/vueuse/issues/1961
-
useOffsetPagination: Incorrectly
currentPageSize
value - by @webfansplz in https://github.com/vueuse/vueuse/issues/1949 -
useSpeechSynthesis: Remove duplicated
onend
, fix demo - by @sibbng in https://github.com/vueuse/vueuse/issues/1941 -
useWebSocket: Set initial status as
CLOSED
- by @chaii3 in https://github.com/vueuse/vueuse/issues/1960 - useNProgress: Improve SSR support - by @webfansplz in https://github.com/vueuse/vueuse/issues/1990
View changes on GitHub
v8.9.4
🐞 Bug Fixes
- useDropZone: Improve argument type - by @aki77 in https://github.com/vueuse/vueuse/issues/1933
-
useFileDialog: Explict
UseFileDialogReturn
type - by @xiaoxiangmoe in https://github.com/vueuse/vueuse/issues/1927 - useInfiniteScroll: Add direction types - by @sand4rt in https://github.com/vueuse/vueuse/issues/1929
View changes on GitHub
v8.9.3
🐞 Bug Fixes
- useStyleTag: Fix hydration mismatch issue - by @sibbng in https://github.com/vueuse/vueuse/issues/1918
- useVModel: Fix compact with 2.7, fix #1745 - by @Staremang in https://github.com/vueuse/vueuse/issues/1898
View changes on GitHub
v8.9.2
🚀 Features
-
onClickOutside: Add
detectIframe
option - by @sibbng in https://github.com/vueuse/vueuse/issues/1795 - useVModel: Compact with 2.7, fix #1745 - by @jiuran in https://github.com/vueuse/vueuse/issues/1798
🐞 Bug Fixes
- useMagicKeys: Fix setting properties of undefined value - by @Matrixbirds in https://github.com/vueuse/vueuse/issues/1856
View changes on GitHub
v8.9.1
🐞 Bug Fixes
- useFileDialog: SSR compatible, close #1788 - by @antfu (58a45)
- useMagicKeys: Only clean up used keys, close #1793 - by @antfu (3c85d)
View changes on GitHub
v8.9.0
🚀 Features
- useFileDialog: New function - by @wobsoriano, @antfu and @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1218
- useObjectUrl: New function - by @michaelhue in https://github.com/vueuse/vueuse/issues/1763
- useRouteParams: New function - by @DevilTea and @antfu in https://github.com/vueuse/vueuse/issues/1173
- useStepper: New function - by @innocenzi and @antfu in https://github.com/vueuse/vueuse/issues/1754
- useTextareaAutosize: New function - by @innocenzi and @antfu in https://github.com/vueuse/vueuse/issues/1756
- watchArray: New function - by @w1ndy and @antfu in https://github.com/vueuse/vueuse/issues/1705
🐞 Bug Fixes
- useColorMode: Resolve auto to preferred mode internally - by @dfreier in https://github.com/vueuse/vueuse/issues/1766
- useMagicKeys: Reset refs on target blur - by @lavolpecheprogramma and @antfu in https://github.com/vueuse/vueuse/issues/1755
View changes on GitHub
v8.8.1
🚀 Features
🐞 Bug Fixes
-
computedWithControl:
trigger
only work in Vue 3 - by @antfu (a1077) - useMediaQuery: Check if window.matchMedia is a function - by @dfreier in https://github.com/vueuse/vueuse/issues/1765
View changes on GitHub
v8.8.0
🚀 Features
- onLongPress: Added modifiers - by @chaii3 in https://github.com/vueuse/vueuse/issues/1719
- resolveRef: New function - by @antfu in https://github.com/vueuse/vueuse/issues/1743
- useAxios: Awaitable execute method - by @FRSgit in https://github.com/vueuse/vueuse/issues/1723
- useBase64: Accept objects - by @chaii3 and @antfu in https://github.com/vueuse/vueuse/issues/1706
-
useColorMode: Add option to return
auto
mode - by @dfreier and @antfu in https://github.com/vueuse/vueuse/issues/1627 -
useWindowSize: Listen to the
orientationchange
event - by @okxiaoliang4 and @antfu in https://github.com/vueuse/vueuse/issues/1609 -
watchTriggerable: Extending
watch
with a manual trigger - by @LittleSound in https://github.com/vueuse/vueuse/issues/1736
🐞 Bug Fixes
- computedWithControl: Source type match vue.watch - by @kongmoumou in https://github.com/vueuse/vueuse/issues/1674
- reactivePick: Allow nested keys - by @antfu (80c16)
-
types:
reactiveOmit
andreactivePick
support array as second arg - by @Brain777777 in https://github.com/vueuse/vueuse/issues/1742 - useCssVar: Remove spaces at both ends - by @murongg in https://github.com/vueuse/vueuse/issues/1741
- useDrauu: Fix Eraser does not work - by @qinwencheng and @antfu in https://github.com/vueuse/vueuse/issues/1753
-
useMediaQuery: Strict
isSupported
check - by @antfu (5a64c)
View changes on GitHub
v8.7.5
🐞 Bug Fixes
View changes on GitHub
v8.7.4
🚀 Features
🐞 Bug Fixes
-
unrefElement:
- Revert
#1657
- Revert
❤ ️ Contributors
Thanks to @antfu | @carlosgamezdev | @michealroberts | @okxiaoliang4
View changes on GitHub
v8.7.3
🐞 Bug Fixes
-
ci:
- Release script
0d3c1f7a
- Release script
❤ ️ Contributors
Thanks to @antfu
View changes on GitHub
v8.7.2
No significant changes
❤ ️ Contributors
Thanks to @antfu
View changes on GitHub
v8.7.1
No significant changes
❤ ️ Contributors
Thanks to @antfu
View changes on GitHub
v8.7.0
🚀 Features
🐞 Bug Fixes
-
onClickOutside:
- Avoid calling safari workaround on right click
#1673
- Avoid calling safari workaround on right click
-
unrefElement:
- Don't return the Vue instance when
$el
isnull
/undefined
#1657
- Don't return the Vue instance when
-
useFetch:
- Ssr compactible for
headersToObject
8f541b0a
- Ssr compactible for
-
useIntervalFn:
- Watch interval correctly
#1676
- Watch interval correctly
-
useMagicKeys:
-
getModifierState
is not function error in Chrome#1654
-
-
useScroll:
- Compatibility for mobile
#1663
- Compatibility for mobile
-
useUrlSearchParams:
- Preserve history state when updating query
#1661
- Preserve history state when updating query
-
watch*:
- Fix
T
type forWatchCallback
#1692
- Fix
❤ ️ Contributors
Thanks to @antfu | @arcs- | @DrJume | @HannesOberreiter | @HassanZahirnia | @hsyq | @LeSuisse | @luciorubeens | @lvjiaxuan | @meteorlxy | @nhedger | @sibbng | @YunYouJun | @zojize
View changes on GitHub
v8.6.0
Bug Fixes
-
nuxt: add
useStorage
to disabled composables (#1652) (1ed33ec) -
useDraggable: should pass the
stopPropagation
option for component (#1620) (5e3151d) - useIntervalFn: unref interval (#1633) (29fc50c)
Features
- useAsyncValidator: new function (#1497) (f422638)
-
useCssVar: support
initialValue
(#1619) (bbb8334) - useDropZone: new function (#1610) (d64070e)
- useInfiniteScroll: new options (#1354) (5a1b932)
v8.5.0
Bug Fixes
- shared: correct to ignore undefined (#1601) (0aecfe6)
- toRefs: keep class prototype, close #1530 (#1599) (356da7d)
- useAxios: normalize isCanceled flag (#1585) (b833957)
- useFetch: respect custom fetch option (#1603) (56eb358)
- useFetch: return PromiseLike after setting method (#1571) (9b28628)
-
useFocus:
focused
should befalse
whenelement
is undefined (#1580) (f0067ac) -
useMediaQuery: normalize
isSupported
flag (#1575) (0222d48) - useUrlSearchParams: should return initialValue (#1583) (fe58f8a)
- useVModel: unified value (#1568) (70d8092)
- watchThrottled: duplicate callback invokation when leading and trailing edges coincide (#1593) (8ba3b9d)
Features
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.