Releases: vueuse/vueuse
Releases · vueuse/vueuse
v14.2.1
v14.2.0
🚀 Features
- Support configurable scheduler for timed composables - by @9romise in #5129 (66aad)
- Allow vue-router 5 as peer deps - by @Ericlm in #5269 (7c94a)
- useCssSupports: Add
useCssSupports- by @OrbisK in #5266 (c1282) - useDraggable: Auto-scroll with restricted dragging within the container - by @Gazoon007, Alfarish Fizikri, Robin and @OrbisK in #4472 (a8a85)
- useElementVisibility: Inherit
rootMarginfromuseIntersectionObserver- by @9romise in #5207 (46682) - useIntersectionObserver: Make
rootMarginreactive - by @doyuli, @ilyaliao and @9romise in #4934 (53abe) - useSortable: Add
watchElementoption for auto-reinitialize on element change - by @Mini-ghost and @ilyaliao in #5189 (17ea2)
🐞 Bug Fixes
- nuxt: Ensure excludes disabledFunctions' alias - by @jinyongp and @9romise in #5240 (76829)
- refManualReset: Add explicit return type annotation - by @batuhan-bas in #5246 (13bbb)
- useAsyncState: Ensure
executereturn the actual data - by @9romise in #5167 (0c346) - useDocumentVisibility: Fix type inference from string to Documen… - by @webfanzc and cowhorse in #5248 (e8be8)
- useFocusTrap: Update
focus-traprange to^7 - by ** ^8(#5270)** () - useInfiniteScroll: Improve promise handling and add flush post to watch - by @nhquyss and @9romise in #5122 (abcea)
- useMagicKeys: Handle undefined key in keyboard events - by @LouisLau-art, LouisLau-art and @OrbisK in #5225 (65e25)
View changes on GitHub
v14.1.0
🚀 Features
- useDropZone: Add checkValidity function - by @kolaente in #5169 (aee84)
- useElementVisibility: Add
initialValueoption - by @kricsleo and @9romise in #5159 (13f36) - useMouseInElement: Add support for tracking inline-level elements - by @siavava and @9romise in #5049 (62dfb)
- useTimeAgoIntl: Custom units - by @Menci in #5188 (c7d09)
- useWebSocket:
autoConnect.delaysupport function - by @YuchenWell, Anthony Fu and @9romise in #5089 (176f2)
🐞 Bug Fixes
- Typescript type of
isIOSconstant - by @toofishes in #5163 (60888) - computedWithControl: Allow different types in watch sources array - by @kricsleo in #5184 (bc4ac)
- types: Allow async functions in useDebounceFn and useThrottleFn - by @xiaoxiaohuayu in #5131 (7fb7a)
- types: Deprecate embeded
ResizeObserverSizetypes - by @9romise in #5127 (d7a07) - useArrayReduce: Export
UseArrayReduceReturntype - by @michaelcozzolino in #5177 (e1204) - useAsyncQueue: Trigger onFinished when the last task is rejected - by @keeplearning66 and @9romise in #5144 (c4a46)
- useClipboard: Add readonly attribute to textarea fallback to support Safari 15 - by @huajianjiu in #5179 (ef0c4)
- useInfiniteScroll: Make canLoadMore reactive - by @nhquyss in #5110 (3dc2d)
- useMagicKeys: Handle empty key events to prevent errors - by @babu-ch and @9romise in #5149 (f8aec)
- useScroll: Use configurable window's
getComputedStyle- by @9romise in #5150 (f74a6) - useSpeechRecognition: Catch the error while calling method start - by @ben-lau, liubaobin and @9romise in #5142 (94f1e)
- useTimeout: Fix type typo - by @keeplearning66, Robin and Anthony Fu in #5147 (31e5c)
View changes on GitHub
v14.0.0
🚨 Breaking Changes
- Migrate to
tsdown, move dist files - by @9romise and Anthony Fu in #5004 (a2e2c) - Deprecate alias exports in favor of original function names - by @9romise in #5009 (e5f74)
- Requires Vue 3.5 - by @antfu (fe458)
- components: Refactor components and make them consistent - by @ilyaliao in #4912 (8c521)
- computedAsync: Default to
flush: sync- by @ferferga in #4752 (573bf) - createSharedComposable: Return only the sharedComposable on client side - by @9romise in #4997 (73aad)
- firebase: Upgrade to firebase v12 - by @antfu (8cb0b)
- nuxt: Use Nuxt v4 kit - by @antfu (070fc)
- shared: Drop some deprecated apis - by @9romise in #5010 (971b2)
- useClipboard: Use
readonly()instead of type assertionComputed- by @9romise in #5081 (67812) - useSwipe: Remove isPassiveEventSupported - by @pkc918 in #4886 (620a9)
- useThrottleFn: Align with traditional throttle behavior - by @IceMooncake and @ilyaliao in #4923 (cefd2)
🚀 Features
- computedEager: Deprecate
computedEager- by @ilyaliao in #5034 (26a7d) - onClickOutside: Allow the value of target to be a getter - by @keeplearning66 in #5098 (7133c)
- onLongPress: Allow function as value in delay - by @keeplearning66 in #4979 (415f3)
- refManualReset: New function - by @phk422, @OrbisK, @ilyaliao and Anthony Fu in #4644 (81bb3)
- useAsyncState: Allow initial value to be a ref - by @43081j in #4992 (e38e8)
- useIdle: Implement
Stoppableinterface - by @dpbs-715 and Anthony Fu in #5068 (3f96a) - useTextSelection: Set initial value for use text selection - by @kevinluo201 in #5092 (dbb3e)
- useTransition: Add support for custom interpolator functions - by @scottbedard and Anthony Fu in #5011 (cf905)
- watch: Update watch return typo in watchExtractedObservable, watchDebounced, watchDeep, watchImmediate, watchOnce, watchThrottled and watchWithFilter - by @ArthurDarkstone in #4896 (b8102)
- watchAtMost: Add pause and resume to return value - by @ArthurDarkstone in #4897 (d3176)
- watchPausable: Deprecate
watchPausable- by @ilyaliao in #5040 (4a28b)
🐞 Bug Fixes
- Update return type of createReusableTemplate and createTemplateP… - by @ArthurDarkstone in #4962 (5fd3a)
- Update return types for createTemplatePromise, useMagicKeys, use… - by @ArthurDarkstone in #4963 (554b7)
- Update parameter types to use ComponentInternalInstance in lifec… - by @ArthurDarkstone in #5060 (a49a3)
- integrations: Use relative import in
component.ts- by @9romise in #5025 (d5bcd) - shared: Support provideLocal/injectLocal in vapor mode - by @ZKunZhang and Zhaokun Zhang in #5050 (51872)
- tryOnScopeDispose: Add optional failSilently parameter and updat… - by @ArthurDarkstone and @ilyaliao in #5061 (a4862)
- types: Update type casting for watch functions to use WatchSource - by @ArthurDarkstone in #4966 (00a72)
- useAsyncState: Track latest execution to avoid newer results being replaced by outdated ones - by @andreww2012 in #5047 (3e6cb)
- useFullscreen: Specify return types for request, exit, and enabl… - by @ArthurDarkstone in #4965 (8ac73)
- useMagicKeys: Clearing of other keys after releasing alt - by @NoiseFan in #5037 (3f113)
- useShare: Improve the accuracy of sharing logic - by @ArthurDarkstone in #5048 (61e1b)
- useUrlSearchParams: Restore proper history and navigation behavior - by @yosong-github and @ilyaliao in #4969 (1cff4)
- useUserMedia: Add deep watch to constraints - by @babu-ch and @ilyaliao in #5046 (4b3e9)
View changes on GitHub
v14.0.0-beta.1
🚀 Features
- useTransition: Add support for custom interpolator functions - by @scottbedard and Anthony Fu in #5011 (cf905)
🐞 Bug Fixes
- useAsyncState: Track latest execution to avoid newer results being replaced by outdated ones - by @andreww2012 in #5047 (3e6cb)
- useShare: Improve the accuracy of sharing logic - by @ArthurDarkstone in #5048 (61e1b)
- useUserMedia: Add deep watch to constraints - by @babu-ch and @ilyaliao in #5046 (4b3e9)
View changes on GitHub
v14.0.0-alpha.3
🚨 Breaking Changes
- createSharedComposable: Return only the sharedComposable on client side - by @9romise in #4997 (73aad)
🚀 Features
- computedEager: Deprecate
computedEager- by @ilyaliao in #5034 (26a7d) - watch: Update watch return typo in watchExtractedObservable, watchDebounced, watchDeep, watchImmediate, watchOnce, watchThrottled and watchWithFilter - by @ArthurDarkstone in #4896 (b8102)
- watchAtMost: Add pause and resume to return value - by @ArthurDarkstone in #4897 (d3176)
- watchPausable: Deprecate
watchPausable- by @ilyaliao in #5040 (4a28b)
🐞 Bug Fixes
- Update return type of createReusableTemplate and createTemplateP… - by @ArthurDarkstone in #4962 (5fd3a)
- Update return types for createTemplatePromise, useMagicKeys, use… - by @ArthurDarkstone in #4963 (554b7)
- useFullscreen: Specify return types for request, exit, and enabl… - by @ArthurDarkstone in #4965 (8ac73)
- useMagicKeys: Clearing of other keys after releasing alt - by @NoiseFan in #5037 (3f113)
View changes on GitHub
v14.0.0-alpha.2
🚨 Breaking Changes
- Deprecate alias exports in favor of original function names - by @9romise in #5009 (e5f74)
- Requires Vue 3.5 - by @antfu (fe458)
- firebase: Upgrade to firebase v12 - by @antfu (8cb0b)
- nuxt: Use Nuxt v4 kit - by @antfu (070fc)
- shared: Drop some deprecated apis - by @9romise in #5010 (971b2)
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v14.0.0-alpha.1
v14.0.0-alpha.0
🚨 Breaking Changes
- components: Refactor components and make them consistent - by @ilyaliao in #4912 (8c521)
- useThrottleFn: Align with traditional throttle behavior - by @IceMooncake and @ilyaliao in #4923 (cefd2)
🚀 Features
- onLongPress: Allow function as value in delay - by @keeplearning66 in #4979 (415f3)
- useAsyncState: Allow initial value to be a ref - by @43081j in #4992 (e38e8)
🐞 Bug Fixes
- types: Update type casting for watch functions to use WatchSource - by @ArthurDarkstone in #4966 (00a72)
- useUrlSearchParams: Restore proper history and navigation behavior - by @yosong-github and @ilyaliao in #4969 (1cff4)
View changes on GitHub
v13.9.0
🚀 Features
- onLongPress: Allow function as value in delay - by @keeplearning66 in #4979 (415f3)
- useAsyncState: Allow initial value to be a ref - by @43081j in #4992 (e38e8)
🐞 Bug Fixes
- types: Update type casting for watch functions to use WatchSource - by @ArthurDarkstone in #4966 (00a72)
- useUrlSearchParams: Restore proper history and navigation behavior - by @yosong-github and @ilyaliao in #4969 (1cff4)