ant-design-vue
ant-design-vue copied to clipboard
chore(deps): update dependency @vueuse/core to v9
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @vueuse/core | ^8.3.1 -> ^9.0.0 |
Release Notes
vueuse/vueuse
v9.2.0
🚨 Breaking Changes
- Bump Nuxt support to RC.9, update
autoImports:sourceshook - 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
greaterOrEqualetc. - 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
triggerelement - by @imguolao in https://github.com/vueuse/vueuse/issues/2133 - useElementSize: Support
boxsizing - 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
writeoption - by @waldonUB in https://github.com/vueuse/vueuse/issues/2165 - useVModel: Support
cloneoption - 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
computedWithControlinstead ofcounterref - 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
srcarg - 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:
isSupportedbecomesRef<boolean>instead ofbooleanfor SSR compatibility - by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1800 - all: Rename function options type with consistant
Useprefix, 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
StatustoUseSpeechSynthesisStatus- by @antfu (db61f) - onKeyStroke: Rename type
KeyStrokeOptionstoOnKeyStrokeOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1807 - useAsyncState: Rename type
AsyncStateOptionstoUseAsyncStateOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1809 - useClipboard: Rename type
ClipboardOptionstoUseClipboardOptionsandClipboardReturntoUseClipboardReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1861 - useElementVisibility: Rename type
VisibilityScrollTargetOptionstoUseElementVisibilityOptions- 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
FaviconOptionstoUseFaviconOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1865 - useFocusWithin: Rename type
FocusWithinReturntoUseFocusWithinReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1866 - useGeolocation: Rename type
GeolocationOptionstoUseGeolocationOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1868 - useIdle: Rename type
IdleOptionstoUseIdleOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1869 - useIntersectionObserver: Rename type
IntersectionObserverOptionstoUseIntersectionObserverOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1870 - useJwt: Rename type
JwtOptionstoUseJwtOptionsandJwtResulttoUseJwtReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1899 - useKeyModifier: Rename type
ModifierOptionstoUseModifierOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1871 - useMagicKeys: Rename type
MagicKeystoUseMagicKeysReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1873 - useMemoize: Rename type
UseMemoizedFntoUseMemoizeReturnand new typeUseMemoizeOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1872 - useMemory: Rename type
MemoryOptionstoUseMemoryOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1605 - useMouse: Rename type
MouseOptionstoUseMouseOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1877 - useMutationObserver: Rename type
MutationObserverOptionstoUseMutationObserverOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1884 - useParallax: Rename type
ParallaxOptionstoUseParallaxOptionsandParallaxReturntoUseParallaxReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1885 - usePointerSwipe: Rename type
PointerSwipeOptionstoUsePointerSwipeOptionsandPointerSwipeReturntoUsePointerSwipeReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1886 - useRTDB: Rename type
RTDBOptionstoUseRTDBOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1901 - useRafFn: Rename type
RafFnOptionstoUseRafFnOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1887 - useResizeObserver: Rename type
ResizeObserverOptionstoUseResizeObserverOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1862 - useShare: Rename type
ShareOptionstoUseShareOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1888 - useSpeechRecognition: Rename type
SpeechRecognitionOptionstoUseSpeechRecognitionOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1889 - useSpeechSynthesis: Rename type
SpeechSynthesisOptionstoUseSpeechSynthesisOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1890 - useSpeechSynthesis: Remove
voiceInfo, allowvoiceas ref - by @sibbng in https://github.com/vueuse/vueuse/issues/1882 - useStorage: Rename type
StorageOptionstoUseStorageOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1867 - useStorageAsync: Rename type
StorageAsyncOptionstoUseStorageAsyncOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1883 - useSwipe: Rename type
SwipeOptionstoUseSwipeOptionsandSwipeReturntoUseSwipeReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1891 - useTimestamp: Rename type
TimestampOptionstoUseTimestampOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1892 - useTransition: Rename type
TransitionOptionstoUseTransitionOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1893 - useVModel: Rename type
VModelOptionstoUseVModelOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1894 - useWebSocket: Rename type
WebSocketOptionstoUseWebSocketOptionsandWebSocketResulttoUseWebSocketReturn- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1895 - useWebWorkerFn: Rename type
WebWorkerOptionstoUseWebWorkerOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1896 - useWindowSize: Rename type
WindowSizeOptionstoUseWindowSizeOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1897 - useInterval: Rename type
IntervalOptionstoUseIntervalOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1945 - useIntervalFn: Rename type
IntervalFnOptionstoUseIntervalFnOptions- by @okxiaoliang4 in https://github.com/vueuse/vueuse/issues/1943 - useTimeoutFn,useTimeout: Rename type
TimeoutOptionstoUseTimeoutOptionsandTimeoutFnOptionstoUseTimeoutFnOptions- 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,useClampto@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:
trailingoption should befalseby default - by @webfansplz and @antfu in https://github.com/vueuse/vueuse/issues/1687 - useMagicKeys: Store
keyinstead ofkeyCodeincurrent- 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
computedor the watch source ofwatchto 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/mathpackage- 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
throwErroroption - by @TuiMao233 and @antfu in https://github.com/vueuse/vueuse/issues/1975 -
useStorage:
mergeDefaultsoption - 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
currentPageSizevalue - 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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.