ℹ️ Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| @vueuse/core (source) | ^8.6.0 → ^14.2.1 |
Release Notes
vueuse/vueuse (@​vueuse/core)
v14.2.1
🚀 Features
- Add skills at the root directory for skills cli - by @antfu <samp>(c005d)</samp>
- skills: Transfer
@vueuse/skills- by @serkodev in #5286 <samp>(532ac)</samp>
🐞 Bug Fixes
- useRafFn: Resolve reactive null fpsLimit not being handled - by @nemanjamalesija in #5284 <samp>(8ce0d)</samp>
View changes on GitHub
v14.2.0
🚀 Features
- Support configurable scheduler for timed composables - by @9romise in #5129 <samp>(66aad)</samp>
- Allow vue-router 5 as peer deps - by @Ericlm in #5269 <samp>(7c94a)</samp>
- useCssSupports: Add
useCssSupports- by @OrbisK in #5266 <samp>(c1282)</samp> - useDraggable: Auto-scroll with restricted dragging within the container - by @Gazoon007, Alfarish Fizikri, Robin and @OrbisK in #4472 <samp>(a8a85)</samp>
- useElementVisibility: Inherit
rootMarginfromuseIntersectionObserver- by @9romise in #5207 <samp>(46682)</samp> - useIntersectionObserver: Make
rootMarginreactive - by @doyuli, @ilyaliao and @9romise in #4934 <samp>(53abe)</samp> - useSortable: Add
watchElementoption for auto-reinitialize on element change - by @Mini-ghost and @ilyaliao in #5189 <samp>(17ea2)</samp>
🐞 Bug Fixes
- nuxt: Ensure excludes disabledFunctions' alias - by @jinyongp and @9romise in #5240 <samp>(76829)</samp>
- refManualReset: Add explicit return type annotation - by @batuhan-bas in #5246 <samp>(13bbb)</samp>
- useAsyncState: Ensure
executereturn the actual data - by @9romise in #5167 <samp>(0c346)</samp> - useDocumentVisibility: Fix type inference from string to Documen… - by @webfanzc and cowhorse in #5248 <samp>(e8be8)</samp>
- useFocusTrap: Update
focus-traprange to^7 - by ** ^8(#5270)** <samp>()</samp> - useInfiniteScroll: Improve promise handling and add flush post to watch - by @nhquyss and @9romise in #5122 <samp>(abcea)</samp>
- useMagicKeys: Handle undefined key in keyboard events - by @LouisLau-art, LouisLau-art and @OrbisK in #5225 <samp>(65e25)</samp>
View changes on GitHub
v14.1.0
🚀 Features
- useDropZone: Add checkValidity function - by @kolaente in #5169 <samp>(aee84)</samp>
- useElementVisibility: Add
initialValueoption - by @kricsleo and @9romise in #5159 <samp>(13f36)</samp> - useMouseInElement: Add support for tracking inline-level elements - by @siavava and @9romise in #5049 <samp>(62dfb)</samp>
- useTimeAgoIntl: Custom units - by @Menci in #5188 <samp>(c7d09)</samp>
- useWebSocket:
autoConnect.delaysupport function - by @YuchenWell, Anthony Fu and @9romise in #5089 <samp>(176f2)</samp>
🐞 Bug Fixes
- Typescript type of
isIOSconstant - by @toofishes in #5163 <samp>(60888)</samp> - computedWithControl: Allow different types in watch sources array - by @kricsleo in #5184 <samp>(bc4ac)</samp>
- types: Allow async functions in useDebounceFn and useThrottleFn - by @xiaoxiaohuayu in #5131 <samp>(7fb7a)</samp>
- types: Deprecate embeded
ResizeObserverSizetypes - by @9romise in #5127 <samp>(d7a07)</samp> - useArrayReduce: Export
UseArrayReduceReturntype - by @michaelcozzolino in #5177 <samp>(e1204)</samp> - useAsyncQueue: Trigger onFinished when the last task is rejected - by @keeplearning66 and @9romise in #5144 <samp>(c4a46)</samp>
- useClipboard: Add readonly attribute to textarea fallback to support Safari 15 - by @huajianjiu in #5179 <samp>(ef0c4)</samp>
- useInfiniteScroll: Make canLoadMore reactive - by @nhquyss in #5110 <samp>(3dc2d)</samp>
- useMagicKeys: Handle empty key events to prevent errors - by @babu-ch and @9romise in #5149 <samp>(f8aec)</samp>
- useScroll: Use configurable window's
getComputedStyle- by @9romise in #5150 <samp>(f74a6)</samp> - useSpeechRecognition: Catch the error while calling method start - by @ben-lau, liubaobin and @9romise in #5142 <samp>(94f1e)</samp>
- useTimeout: Fix type typo - by @keeplearning66, Robin and Anthony Fu in #5147 <samp>(31e5c)</samp>
View changes on GitHub
v14.0.0
🚨 Breaking Changes
- Migrate to
tsdown, move dist files - by @9romise and Anthony Fu in #5004 <samp>(a2e2c)</samp> - Deprecate alias exports in favor of original function names - by @9romise in #5009 <samp>(e5f74)</samp>
- Requires Vue 3.5 - by @antfu <samp>(fe458)</samp>
- components: Refactor components and make them consistent - by @ilyaliao in #4912 <samp>(8c521)</samp>
- computedAsync: Default to
flush: sync- by @ferferga in #4752 <samp>(573bf)</samp> - createSharedComposable: Return only the sharedComposable on client side - by @9romise in #4997 <samp>(73aad)</samp>
- firebase: Upgrade to firebase v12 - by @antfu <samp>(8cb0b)</samp>
- nuxt: Use Nuxt v4 kit - by @antfu <samp>(070fc)</samp>
- shared: Drop some deprecated apis - by @9romise in #5010 <samp>(971b2)</samp>
- useClipboard: Use
readonly()instead of type assertionComputed- by @9romise in #5081 <samp>(67812)</samp> - useSwipe: Remove isPassiveEventSupported - by @pkc918 in #4886 <samp>(620a9)</samp>
- useThrottleFn: Align with traditional throttle behavior - by @IceMooncake and @ilyaliao in #4923 <samp>(cefd2)</samp>
🚀 Features
- computedEager: Deprecate
computedEager- by @ilyaliao in #5034 <samp>(26a7d)</samp> - onClickOutside: Allow the value of target to be a getter - by @keeplearning66 in #5098 <samp>(7133c)</samp>
- onLongPress: Allow function as value in delay - by @keeplearning66 in #4979 <samp>(415f3)</samp>
- refManualReset: New function - by @phk422, @OrbisK, @ilyaliao and Anthony Fu in #4644 <samp>(81bb3)</samp>
- useAsyncState: Allow initial value to be a ref - by @43081j in #4992 <samp>(e38e8)</samp>
- useIdle: Implement
Stoppableinterface - by @dpbs-715 and Anthony Fu in #5068 <samp>(3f96a)</samp> - useTextSelection: Set initial value for use text selection - by @kevinluo201 in #5092 <samp>(dbb3e)</samp>
- useTransition: Add support for custom interpolator functions - by @scottbedard and Anthony Fu in #5011 <samp>(cf905)</samp>
- watch: Update watch return typo in watchExtractedObservable, watchDebounced, watchDeep, watchImmediate, watchOnce, watchThrottled and watchWithFilter - by @ArthurDarkstone in #4896 <samp>(b8102)</samp>
- watchAtMost: Add pause and resume to return value - by @ArthurDarkstone in #4897 <samp>(d3176)</samp>
- watchPausable: Deprecate
watchPausable- by @ilyaliao in #5040 <samp>(4a28b)</samp>
🐞 Bug Fixes
- Update return type of createReusableTemplate and createTemplateP… - by @ArthurDarkstone in #4962 <samp>(5fd3a)</samp>
- Update return types for createTemplatePromise, useMagicKeys, use… - by @ArthurDarkstone in #4963 <samp>(554b7)</samp>
- Update parameter types to use ComponentInternalInstance in lifec… - by @ArthurDarkstone in #5060 <samp>(a49a3)</samp>
- integrations: Use relative import in
component.ts- by @9romise in #5025 <samp>(d5bcd)</samp> - shared: Support provideLocal/injectLocal in vapor mode - by @ZKunZhang and Zhaokun Zhang in #5050 <samp>(51872)</samp>
- tryOnScopeDispose: Add optional failSilently parameter and updat… - by @ArthurDarkstone and @ilyaliao in #5061 <samp>(a4862)</samp>
- types: Update type casting for watch functions to use WatchSource<t> - by @ArthurDarkstone in #4966 <samp>(00a72)</samp>
- useAsyncState: Track latest execution to avoid newer results being replaced by outdated ones - by @andreww2012 in #5047 <samp>(3e6cb)</samp>
- useFullscreen: Specify return types for request, exit, and enabl… - by @ArthurDarkstone in #4965 <samp>(8ac73)</samp>
- useMagicKeys: Clearing of other keys after releasing alt - by @NoiseFan in #5037 <samp>(3f113)</samp>
- useShare: Improve the accuracy of sharing logic - by @ArthurDarkstone in #5048 <samp>(61e1b)</samp>
- useUrlSearchParams: Restore proper history and navigation behavior - by @yosong-github and @ilyaliao in #4969 <samp>(1cff4)</samp>
- useUserMedia: Add deep watch to constraints - by @babu-ch and @ilyaliao in #5046 <samp>(4b3e9)</samp>
View changes on GitHub
v13.9.0
🚀 Features
- onLongPress: Allow function as value in delay - by @keeplearning66 in #4979 <samp>(415f3)</samp>
- useAsyncState: Allow initial value to be a ref - by @43081j in #4992 <samp>(e38e8)</samp>
🐞 Bug Fixes
- types: Update type casting for watch functions to use WatchSource<t> - by @ArthurDarkstone in #4966 <samp>(00a72)</samp>
- useUrlSearchParams: Restore proper history and navigation behavior - by @yosong-github and @ilyaliao in #4969 <samp>(1cff4)</samp>
View changes on GitHub
v13.8.0
🚀 Features
- useEventSource: Add
serializer- by @imddc and @ilyaliao in #4953 <samp>(64651)</samp>
🏎 Performance
- docs: Replace
twoslashwith own function for comparing js snippet - by @serkodev in #4977 <samp>(909fd)</samp> - usePointer: Use shallowRef for better performance - by @broBinChen and xiaobin in #4980 <samp>(ce09e)</samp>
- usePreferredLanguages: Use shallowRef for better performance - by @ilyaliao in #4973 <samp>(361c8)</samp>
View changes on GitHub
v13.7.0
🚨 Breaking Changes
- useAsyncState: Set globalThis.reportError as default onError - by @kalu5 in #4951 <samp>(f6e88)</samp>
🚀 Features
- computedAsync: Use globalThis.reportError as default onError - by @babu-ch in #4943 <samp>(226a2)</samp>
- useClipboardItems: Expose
read()- by @OrbisK in #4954 <samp>(d03b2)</samp> - useDevicePixelRatio: Improve types - by @doyuli in #4927 <samp>(1b3d4)</samp>
- useSpeechSynthesisOptions: Add option
onBoundary- by @pkc918 in #4960 <samp>(c0dca)</samp> - useTimeAgoIntl: Add
useTimaAgoIntl- by @northword and Anthony Fu in #4821 <samp>(81815)</samp>
🐞 Bug Fixes
- ci: Avoid duplicate
nr updateexecution indocs:build- by @serkodev in #4925 <samp>(a73ee)</samp> - useAnimate: Respect
immediate: falsewith conditionally rendered elements - by @curtgrimes in #4947 <samp>(90c7f)</samp> - useGamepad: Correct type assertion for vibrationActuator - by @ArthurDarkstone in #4964 <samp>(c5277)</samp>
- useStorage: Make sure to always read data if new value is
undefined- by @OrbisK in #4957 <samp>(22116)</samp>
🏎 Performance
- twoslash: Optimize twoslash cache - by @doyuli in #4939 <samp>(93064)</samp>
- useMutationObserver: Watch ref directly - by @VividLemon in #4940 <samp>(01cd9)</samp>
View changes on GitHub
v13.6.0
🚀 Features
- Mark templateRef as deprecated - by @ilyaliao in #4894 <samp>(0271e)</samp>
- useFileDialog: Add MaybRef to multiple, accept, capture, reset, and directory - by @hunterwilhelm, Anthony Fu and @antfu in #4813 <samp>(a44bd)</samp>
- useFocusTrap: Expose updateContainerElements for dynamic contai… - by @PeikyLiu and @ilyaliao in #4849 <samp>(3d5e5)</samp>
- useIDBKeyval: Add
options.serializer- by @matthewjumpsoffbuildings, @OrbisK and @43081j in #4781 <samp>(bb831)</samp> - useStorageAsync: Add
onReadyoption and Promise return - by @asika32764, Fernando Fernández, @OrbisK and Anthony Fu in #4158 <samp>(3a2df)</samp> - useTransition: Support custom window - by @byronogis and Anthony Fu in #4850 <samp>(a75f4)</samp>
🐞 Bug Fixes
- onClickOutside: The order of overload signatures - by @whiteyebrw, @ilyaliao and Anthony Fu in #4839 <samp>(d5812)</samp>
- types: Use Vue's native
MaybeRefandMaybeRefOrGetterinstead - by @RYGRIT in #4913 <samp>(2d179)</samp> - useDraggable: Add capture prop to component - by @wgh970312 in #4911 <samp>(547f8)</samp>
- useMagicKeys: Prevent incorrect clearing of other keys after releasing shift - by @keeplearning66 in #4916 <samp>(d7f28)</samp>
- useMouseInElement: Correctly update elementX and elementY - by @cszhjh and @ilyaliao in #4846 <samp>(cf02b)</samp>
- useVirtualList: Resolve invalid watch source - by @cszhjh and @OrbisK in #4857 <samp>(d2381)</samp>
View changes on GitHub
v13.5.0
🚀 Features
- useSpeechSynthesis: Add reactivity for volume - by @whiteyebrw in #4837 <samp>(4d125)</samp>
🐞 Bug Fixes
- useCookie: Update
universal-cookierange to^7 || ^8#4834
View changes on GitHub
v13.4.0
🚀 Features
- shared: Introduce
TimerHandlefor setTimeout type - by @ilyaliao in #4801 <samp>(319d8)</samp> - useAsyncState: Add executeImmediate with the same type as the promise fn - by @davidglezz in #4716 <samp>(82740)</samp>
- useEventSource: Added lastEventId for named events - by @whiteyebrw in #4791 <samp>(f6f0b)</samp>
- useFetch: Support for custom abort reason - by @doyuli in #4820 <samp>(44c0b)</samp>
- useRefHistory: Add
shouldCommit- by @JonathanSchndr, Anthony Fu and Robin in #4471 <samp>(18acf)</samp> - useUrlSearchParams: Add a stringify option for users to provide stringify logic - by @mingXta, Robin and Anthony Fu in #4773 <samp>(6a523)</samp>
🐞 Bug Fixes
- computedWithControl: Allow deeply watching source - by @MetRonnie and Anthony Fu in #4786 <samp>(ffc1a)</samp>
- useDevicesList: Check for device availability before requesting permissions - by @ilyaliao in #4818 <samp>(c424f)</samp>
- useEventListener: Improve types - by @ArthurDarkstone, liliang18 and @Alfred-Skyblue in #4787 <samp>(6f565)</samp>
- useIdle: Changed the
resetcall when the initial value is true - by @whiteyebrw in #4800 <samp>(c6469)</samp> - useMouseInElement: Fixing the issue where target element updates were not considered. - by @Codfisher and bgm.cod in #4782 <samp>(04af9)</samp>
- useScreenSafeArea: Сhanged initial value update - by @whiteyebrw in #4789 <samp>(ae573)</samp>
- useScriptTag: Support passing nonce - by @1-dilikelei and 董梁玮 in #4753 <samp>(57370)</samp>
- useScroll: Use mutationObserver to update arrivedState when the DOM is changed - by @andylou0102, AndyLuo, Robin and Anthony Fu in #4433 <samp>(135d5)</samp>
- watchIgnorable: Add and export types - by @ArthurDarkstone, liliang18 and Robin in #4809 <samp>(0e10e)</samp>
🏎 Performance
- computedWithControl: Optimize with shallowRef - by @broBinChen and binge_c-admin in #4826 <samp>(2c91a)</samp>
View changes on GitHub
v13.3.0
🚀 Features
- useNow: Expose immediate option - by @scottbedard in #4768 <samp>(44660)</samp>
🐞 Bug Fixes
- asyncComputed: Fix types for
AsyncComputedOptions- by @antfu <samp>(217cc)</samp> - useFetch: Use
globalThis.fetchwhendefaultWindow.fetchnot exist - by @Groupguanfang, Naily and @OrbisK in #4765 <samp>(bf354)</samp> - useSortable: Fix type misalignment - by @michaelcozzolino in #4760 <samp>(16692)</samp>
View changes on GitHub
v13.2.0
🚀 Features
- computedAsync: Add option to control watcher's flush timing - by @ferferga in #4746 <samp>(b1bc8)</samp>
- useFileDialog: Allow custom input element for file dialog - by @ishakhorski in #4679 <samp>(0ea16)</samp>
- useScroll: Add missing measure documentation - by @Matkolit and Mateusz Kołodziej in #4727 <samp>(dd98a)</samp>
- useStyleTag: Support passing
nonce- by @1-dilikelei and 董梁玮 in #4749 <samp>(fa2c0)</samp> - watchOnce: Use vue's native once behaviour - by @ferferga in #4750 <samp>(08f7d)</samp>
🐞 Bug Fixes
- Allow vertical scroll in usePointerSwipe - by @2nofa11 in #4637 and #4720 <samp>(d3ed6)</samp>
- Always mount listeners in useStorage - by @43081j in #4730 <samp>(65a99)</samp>
- UseArrayFindReturn: Missing template type - by @michaelcozzolino in #4715 <samp>(43903)</samp>
- computedAsync: Return
ComputedRef<T>type whenlazy: true- by @ferferga in #4751 <samp>(b1718)</samp> - docs: Grammar in /packages/nuxt/README.md - by @neeko-cat in #4701 <samp>(44b40)</samp>
- fromEvent: Fix type error of element reference - by @ywenhao and @antfu in #4728 <samp>(94fea)</samp>
- onClickOutside: Workaround for iOS - by @ferferga in #4735 <samp>(1c60c)</samp>
- useElementSize: Component type warning - by @menghany in #4722 <samp>(9889f)</samp>
- useEventSource: Add missing data generic - by @OrbisK in #4726 <samp>(a969e)</samp>
- useFullscreen: Get the correct initial state while mounted - by @ben-lau and liubaobin in #4745 <samp>(09cbd)</samp>
- useMagicKeys: Correctly clear current pressed keys when releasing Shift - by @Kedlingar and Skstud5 in #4731 <samp>(ab7ac)</samp>
View changes on GitHub
v13.1.0
🚀 Features
- shared: Ensure return types exists - by @OrbisK in #4659 <samp>(c1d6e)</samp>
- useSortable: Add possibility to use it with Component ref - by @michaelcozzolino in #4684 <samp>(15917)</samp>
🐞 Bug Fixes
- docs: Blog moved to different domain - by @th1m0 in #4663 <samp>(72c9a)</samp>
- nuxt: Don't require
@vueuse/coreinstalled at root - by @danielroe in #4698 <samp>(17a46)</samp> - tryOnMounted: Pass target to getLifeCycleTarget - by @Eazash in #4685 <samp>(16551)</samp>
- useDropZone: Allow passing
documentas target - by @osbre in #4681 <samp>(21fa6)</samp>
View changes on GitHub
v13.0.0
🚨 Breaking Changes
- Drop CJS build, now it's ESM-only - by @antfu in #4581 <samp>(5e046)</samp>
View changes on GitHub
v12.8.2
🐞 Bug Fixes
- types: Wrong import path - by @antfu <samp>(3f5da)</samp>
View changes on GitHub
v12.8.1
🐞 Bug Fixes
- useEventSource: Remove readonly to not be breaking - by @OrbisK in #4645 <samp>(79fcb)</samp>
View changes on GitHub
v12.8.0
🚀 Features
- nuxt: Support wider Nuxt range - by @antfu <samp>(c478e)</samp>
- types: Deprecate
MaybeRefandMaybeRefOrGetterin favor of Vue's native - by @ilyaliao and @antfu in #4636 <samp>(7432f)</samp> - useCached: Add
options.deepRefs- by @OrbisK and @antfu in #4591 <samp>(9afee)</samp> - useWebSocket: Pass the
retriedto theautoReconnect.retries- by @9romise and @OrbisK in #4604 <samp>(73e6d)</samp>
🐞 Bug Fixes
- onStartTyping: Incorrect accepted valid characters - by @Bernard-Borg in #4616 <samp>(58a3b)</samp>
- useAnimate: Correct condition for updating keyframes - by @Mrlilili and liyan1 in #4619 <samp>(e8665)</samp>
- useClipboard: Unhandled rejection on read permission prompt - by @Vitalis11 in #4615 <samp>(a54c4)</samp>
- useCssVar: Update
variablewhen initial - by @ilyaliao in #4641 <samp>(d680f)</samp> - useDeviceList: AudioInputs doesn't update if camera permission is
granted- by @Nikitatopodin and Никита Быковский in #4559 <samp>(f9685)</samp> - useScroll: Handle negative scroll values - by @ilyaliao and eavlee in #4613 <samp>(4b7ab)</samp>
- useWebSocket: Don't call close() on pongTimeout if connection al… - by @Azurency in #4608 <samp>(9ba07)</samp>
View changes on GitHub
v12.7.0
🚀 Features
- useRafFn: Add
onceoption - by @btea in #4583 <samp>(3041e)</samp>
🐞 Bug Fixes
- useFetch: Partial overwrite when
{combination: 'overwrite'}- by @pkc918 and @antfu in #4430 <samp>(3ca0d)</samp> - useTextareaAutosize: Improve resize handling with requestAnimationFrame - by @ilyaliao, Robin and @antfu in #4557 <samp>(e1a7e)</samp>
View changes on GitHub
v12.6.1
No significant changes
View changes on GitHub
v12.6.0
🚀 Features
- createReusableTemplate: Explicit props - by @antfu in #4535 <samp>(18031)</samp>
- onClickOutside: Add
controls- by @sibbng and @antfu in #4537 <samp>(ab116)</samp> - useDateFormat: Add
z...zzzzfor timezone information - by @OrbisK in #4553 <samp>(cd6d7)</samp> - useElementVisibility: Add
onceoptions - by @ilyaliao in #4577 <samp>(f2f94)</samp> - useTimtoutFn,useTimeoutPoll: Align behavior - by @ilyaliao in #4543 <samp>(64c53)</samp>
- watchPausable: Add
options.initialStateto control the initial active value - by @OrbisK in #4533 <samp>(ceb56)</samp>
🐞 Bug Fixes
- createEventHook: Type check for multiple arguments - by @isimehmeti and @ilyaliao in [#4555](https://redirect.github.com/vueuse/vueu
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, check this box
This PR was generated by Mend Renovate. View the repository job log.