chore(deps): update vueuse to v13 (major)
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @vueuse/core (source) | dependencies | major | ^12.4.0 -> ^13.0.0 |
| @vueuse/integrations (source) | dependencies | major | ^12.4.0 -> ^13.0.0 |
| @vueuse/router (source) | dependencies | major | ^12.4.0 -> ^13.0.0 |
Release Notes
vueuse/vueuse (@vueuse/core)
v13.4.0
🚀 Features
-
shared: Introduce
TimerHandlefor setTimeout type - by @ilyaliao in https://github.com/vueuse/vueuse/issues/4801 (319d8) - useAsyncState: Add executeImmediate with the same type as the promise fn - by @davidglezz in https://github.com/vueuse/vueuse/issues/4716 (82740)
- useEventSource: Added lastEventId for named events - by @whiteyebrw in https://github.com/vueuse/vueuse/issues/4791 (f6f0b)
- useFetch: Support for custom abort reason - by @doyuli in https://github.com/vueuse/vueuse/issues/4820 (44c0b)
-
useRefHistory: Add
shouldCommit- by @JonathanSchndr, Anthony Fu and Robin in https://github.com/vueuse/vueuse/issues/4471 (18acf) - useUrlSearchParams: Add a stringify option for users to provide stringify logic - by @mingXta, Robin and Anthony Fu in https://github.com/vueuse/vueuse/issues/4773 (6a523)
🐞 Bug Fixes
- computedWithControl: Allow deeply watching source - by @MetRonnie and Anthony Fu in https://github.com/vueuse/vueuse/issues/4786 (ffc1a)
- useDevicesList: Check for device availability before requesting permissions - by @ilyaliao in https://github.com/vueuse/vueuse/issues/4818 (c424f)
- useEventListener: Improve types - by @ArthurDarkstone, liliang18 and @Alfred-Skyblue in https://github.com/vueuse/vueuse/issues/4787 (6f565)
-
useIdle: Changed the
resetcall when the initial value is true - by @whiteyebrw in https://github.com/vueuse/vueuse/issues/4800 (c6469) - useMouseInElement: Fixing the issue where target element updates were not considered. - by @Codfisher and bgm.cod in https://github.com/vueuse/vueuse/issues/4782 (04af9)
- useScreenSafeArea: Сhanged initial value update - by @whiteyebrw in https://github.com/vueuse/vueuse/issues/4789 (ae573)
- useScriptTag: Support passing nonce - by @1-dilikelei and 董梁玮 in https://github.com/vueuse/vueuse/issues/4753 (57370)
- useScroll: Use mutationObserver to update arrivedState when the DOM is changed - by @andylou0102, AndyLuo, Robin and Anthony Fu in https://github.com/vueuse/vueuse/issues/4433 (135d5)
- watchIgnorable: Add and export types - by @ArthurDarkstone, liliang18 and Robin in https://github.com/vueuse/vueuse/issues/4809 (0e10e)
🏎️ Performance
- computedWithControl: Optimize with shallowRef - by @broBinChen and binge_c-admin in https://github.com/vueuse/vueuse/issues/4826 (2c91a)
View changes on GitHub
v13.3.0
🚀 Features
- useNow: Expose immediate option - by @scottbedard in https://github.com/vueuse/vueuse/issues/4768 (44660)
🐞 Bug Fixes
-
asyncComputed: Fix types for
AsyncComputedOptions- by @antfu (217cc) -
useFetch: Use
globalThis.fetchwhendefaultWindow.fetchnot exist - by @Groupguanfang, Naily and @OrbisK in https://github.com/vueuse/vueuse/issues/4765 (bf354) - useSortable: Fix type misalignment - by @michaelcozzolino in https://github.com/vueuse/vueuse/issues/4760 (16692)
View changes on GitHub
v13.2.0
🚀 Features
- computedAsync: Add option to control watcher's flush timing - by @ferferga in https://github.com/vueuse/vueuse/issues/4746 (b1bc8)
- useFileDialog: Allow custom input element for file dialog - by @ishakhorski in https://github.com/vueuse/vueuse/issues/4679 (0ea16)
- useScroll: Add missing measure documentation - by @Matkolit and Mateusz Kołodziej in https://github.com/vueuse/vueuse/issues/4727 (dd98a)
-
useStyleTag: Support passing
nonce- by @1-dilikelei and 董梁玮 in https://github.com/vueuse/vueuse/issues/4749 (fa2c0) - watchOnce: Use vue's native once behaviour - by @ferferga in https://github.com/vueuse/vueuse/issues/4750 (08f7d)
🐞 Bug Fixes
- Allow vertical scroll in usePointerSwipe - by @2nofa11 in https://github.com/vueuse/vueuse/issues/4637 and https://github.com/vueuse/vueuse/issues/4720 (d3ed6)
- Always mount listeners in useStorage - by @43081j in https://github.com/vueuse/vueuse/issues/4730 (65a99)
- UseArrayFindReturn: Missing template type - by @michaelcozzolino in https://github.com/vueuse/vueuse/issues/4715 (43903)
-
computedAsync: Return
ComputedRef<T>type whenlazy: true- by @ferferga in https://github.com/vueuse/vueuse/issues/4751 (b1718) - docs: Grammar in /packages/nuxt/README.md - by @neeko-cat in https://github.com/vueuse/vueuse/issues/4701 (44b40)
- fromEvent: Fix type error of element reference - by @ywenhao and @antfu in https://github.com/vueuse/vueuse/issues/4728 (94fea)
- onClickOutside: Workaround for iOS - by @ferferga in https://github.com/vueuse/vueuse/issues/4735 (1c60c)
- useElementSize: Component type warning - by @menghany in https://github.com/vueuse/vueuse/issues/4722 (9889f)
- useEventSource: Add missing data generic - by @OrbisK in https://github.com/vueuse/vueuse/issues/4726 (a969e)
- useFullscreen: Get the correct initial state while mounted - by @ben-lau and liubaobin in https://github.com/vueuse/vueuse/issues/4745 (09cbd)
- useMagicKeys: Correctly clear current pressed keys when releasing Shift - by @Kedlingar and Skstud5 in https://github.com/vueuse/vueuse/issues/4731 (ab7ac)
View changes on GitHub
v13.1.0
🚀 Features
- shared: Ensure return types exists - by @OrbisK in https://github.com/vueuse/vueuse/issues/4659 (c1d6e)
- useSortable: Add possibility to use it with Component ref - by @michaelcozzolino in https://github.com/vueuse/vueuse/issues/4684 (15917)
🐞 Bug Fixes
- docs: Blog moved to different domain - by @th1m0 in https://github.com/vueuse/vueuse/issues/4663 (72c9a)
-
nuxt: Don't require
@vueuse/coreinstalled at root - by @danielroe in https://github.com/vueuse/vueuse/issues/4698 (17a46) - tryOnMounted: Pass target to getLifeCycleTarget - by @Eazash in https://github.com/vueuse/vueuse/issues/4685 (16551)
-
useDropZone: Allow passing
documentas target - by @osbre in https://github.com/vueuse/vueuse/issues/4681 (21fa6)
View changes on GitHub
v13.0.0
🚨 Breaking Changes
- Drop CJS build, now it's ESM-only - by @antfu in https://github.com/vueuse/vueuse/issues/4581 (5e046)
View changes on GitHub
v12.8.2
🐞 Bug Fixes
View changes on GitHub
v12.8.1
🐞 Bug Fixes
- useEventSource: Remove readonly to not be breaking - by @OrbisK in https://github.com/vueuse/vueuse/issues/4645 (79fcb)
View changes on GitHub
v12.8.0
🚀 Features
- nuxt: Support wider Nuxt range - by @antfu (c478e)
-
types: Deprecate
MaybeRefandMaybeRefOrGetterin favor of Vue's native - by @ilyaliao and @antfu in https://github.com/vueuse/vueuse/issues/4636 (7432f) -
useCached: Add
options.deepRefs- by @OrbisK and @antfu in https://github.com/vueuse/vueuse/issues/4591 (9afee) -
useWebSocket: Pass the
retriedto theautoReconnect.retries- by @9romise and @OrbisK in https://github.com/vueuse/vueuse/issues/4604 (73e6d)
🐞 Bug Fixes
- onStartTyping: Incorrect accepted valid characters - by @Bernard-Borg in https://github.com/vueuse/vueuse/issues/4616 (58a3b)
- useAnimate: Correct condition for updating keyframes - by @Mrlilili and liyan1 in https://github.com/vueuse/vueuse/issues/4619 (e8665)
- useClipboard: Unhandled rejection on read permission prompt - by @Vitalis11 in https://github.com/vueuse/vueuse/issues/4615 (a54c4)
-
useCssVar: Update
variablewhen initial - by @ilyaliao in https://github.com/vueuse/vueuse/issues/4641 (d680f) -
useDeviceList: AudioInputs doesn't update if camera permission is
granted- by @Nikitatopodin and Никита Быковский in https://github.com/vueuse/vueuse/issues/4559 (f9685) - useScroll: Handle negative scroll values - by @ilyaliao and eavlee in https://github.com/vueuse/vueuse/issues/4613 (4b7ab)
- useWebSocket: Don't call close() on pongTimeout if connection al… - by @Azurency in https://github.com/vueuse/vueuse/issues/4608 (9ba07)
View changes on GitHub
v12.7.0
🚀 Features
-
useRafFn: Add
onceoption - by @btea in https://github.com/vueuse/vueuse/issues/4583 (3041e)
🐞 Bug Fixes
-
useFetch: Partial overwrite when
{combination: 'overwrite'}- by @pkc918 and @antfu in https://github.com/vueuse/vueuse/issues/4430 (3ca0d) - useTextareaAutosize: Improve resize handling with requestAnimationFrame - by @ilyaliao, Robin and @antfu in https://github.com/vueuse/vueuse/issues/4557 (e1a7e)
View changes on GitHub
v12.6.1
No significant changes
View changes on GitHub
v12.6.0
🚀 Features
- createReusableTemplate: Explicit props - by @antfu in https://github.com/vueuse/vueuse/issues/4535 (18031)
-
onClickOutside: Add
controls- by @sibbng and @antfu in https://github.com/vueuse/vueuse/issues/4537 (ab116) -
useDateFormat: Add
z...zzzzfor timezone information - by @OrbisK in https://github.com/vueuse/vueuse/issues/4553 (cd6d7) -
useElementVisibility: Add
onceoptions - by @ilyaliao in https://github.com/vueuse/vueuse/issues/4577 (f2f94) - useTimtoutFn,useTimeoutPoll: Align behavior - by @ilyaliao in https://github.com/vueuse/vueuse/issues/4543 (64c53)
-
watchPausable: Add
options.initialStateto control the initial active value - by @OrbisK in https://github.com/vueuse/vueuse/issues/4533 (ceb56)
🐞 Bug Fixes
- createEventHook: Type check for multiple arguments - by @isimehmeti and @ilyaliao in https://github.com/vueuse/vueuse/issues/4555 (636b8)
- nuxt: Check if packages exist in any layer - by @dgrayvold in https://github.com/vueuse/vueuse/issues/4571 (45e5c)
-
reactiveComputed: Computed fn should be
ComputedGetter- by @OrbisK in https://github.com/vueuse/vueuse/issues/4528 (bea31) - useAnimate: Clear animate when element is gone - by @babu-ch in https://github.com/vueuse/vueuse/issues/4579 (1a934)
-
useCountdown:
start()should accept a custom initial value - by @ralacerda in https://github.com/vueuse/vueuse/issues/4554 (93591) - useCssVar: New Behavior - by @ilyaliao and OrbisK in https://github.com/vueuse/vueuse/issues/4500 (d5dd8)
-
useMouse: Check for
MouseEventinstead ofTouchto work with FF - by @OrbisK and @antfu in https://github.com/vueuse/vueuse/issues/4457 (ce9e5) - useSpeechRecognition: Improve start and stop method behavior - by @ilyaliao in https://github.com/vueuse/vueuse/issues/4565 (4f104)
View changes on GitHub
v12.5.0
🚀 Features
- More passive event handlers - by @ferferga in https://github.com/vueuse/vueuse/issues/4484 (eddbf)
- Use
useEventListenerwhere it was not being used - by @ferferga in https://github.com/vueuse/vueuse/issues/4479 (c6c6e) - useClipboard: Should fall back to legacy clipboard when read/write fails - by @OrbisK in https://github.com/vueuse/vueuse/issues/4512 (01acd)
- useCountdown: New function - by @rtugeek, @huang-julien, Anthony Fu and @antfu in https://github.com/vueuse/vueuse/issues/4125 (69ced)
- useEventListener: Make all parameters arrayable and reactive - by @ferferga in https://github.com/vueuse/vueuse/issues/4486 (caf08)
-
useFetch: Add parameters to the
afterFetchandonFetchError- by @tolking and Anthony Fu in https://github.com/vueuse/vueuse/issues/4499 (98a83) - useFileDialog: Add initialFiles option - by @EvgenyWas in https://github.com/vueuse/vueuse/issues/4509 (8a8d6)
🐞 Bug Fixes
- debounceFilter: Invoke on maxWait with the latest invoker - by @43081j and @OrbisK in https://github.com/vueuse/vueuse/issues/4497 (48e0a)
- useMagicKeys: Fix key order issue on first use - by @babu-ch in https://github.com/vueuse/vueuse/issues/4505 (b6947)
- useVirtualList: Allow readonly arrays as input - by @RebeccaStevens in https://github.com/vueuse/vueuse/issues/4504 (f3cc7)
View changes on GitHub
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Alexandre Boucey