Releases: vueuse/vueuse
Releases · vueuse/vueuse
v10.0.0-beta.2
🚨 Breaking Changes
- useElementVisibility: Use useIntersectionObserver instead of scroll event handler - by @curtgrimes in #2551 (74b00)
🚀 Features
- onKeyStroke: Support ignoring repeated stroke - by @vaakian in #2652 (22ca5)
- reactiveOmit: Add predicate parameter - by @Alfred-Skyblue and @antfu in #2849 (2e297)
- reactivePick: Add predicate parameter - by @Alfred-Skyblue in #2850 (0bde4)
- useArrayUnique: Add a custom function to deduplicate - by @Alfred-Skyblue in #2612 (c8c30)
- useAsyncValidator: Add
manual
option - by @jaw52 and @antfu in #2903 (16461) - useAxios: Added
onFinish
callback - by @Alfred-Skyblue in #2829 (a2f33) - useBreakpoints: Getting current breakpoints - by @ineshbose and @antfu in #2906 (bbabd)
- useDark: Passthrough default handler from
useColorSchema
- by @godismyjudge95 and @antfu in #2866 (d6d35) - useParentElement: New function - by @jd-solanki and @antfu in #2855 (e8168)
- useResizeObserver: Support element list - by @acyza and @antfu in #2841 (3e187)
- useSupported: Support tracking reactivity for the callback function - by @ferferga and @antfu in #2904 (55a32)
🐞 Bug Fixes
- useDevicesList: Show devices for Firefox - by @felixzapata in #2798 (0823d)
View changes on GitHub
v10.0.0-beta.1
🚀 Features
- useAsyncValidator: Add immediate and execute - by @jaw52 and @antfu in #2899 (79176)
- useFileDialog: Add listener for file change events - by @Alfred-Skyblue in #2893 (5e697)
- useIdle: Add
reset
capability - by @nahvego and @antfu in #2880 (f4d35) - useTransition: Support
MaybeComputedRef
- by @zhiyuanzmj in #2871 (5944e) - useVModel: Add
shouldEmit
hook - by @baiwusanyu-c and @antfu in #2836 (f8a53)
🐞 Bug Fixes
- useArrayDifference: Error with falsey - by @simpleoo0o and lix in #2869 (41858)
- useAsyncState: Fix toThrowError error type - by @Alfred-Skyblue in #2898 (b636f)
View changes on GitHub
v10.0.0-beta.0
🚨 Breaking Changes
- Remove deprecated types - by @Alfred-Skyblue in #2656 (c2fee)
- computedAsync: Set shallow defalut to true - by @xiankaiqun and @antfu in #2621 (23c9d)
- useAxios:
error
should return typeunknown
- by @jbaubree and @antfu in #2807 (d8d73) - useEventBus,createEventHook: Dedupe registration of the same function - by @Alfred-Skyblue in #2748 (dd514)
- useIDBKeyval: Return format changed, add
isFinished
- by @jssullivan and james.sullivan in #2474 (ef281) - useSwipe: Use literal for swipe direction instead of enum - by @antfu (f285c)
- useUserMedia: Add constraints - remove deviceIds - by @mango-martin in #2032 (8f2a3)
- useWebNotification: Should be exposed as EventHooksOn - by @Alfred-Skyblue and @antfu in #2821 (bcd2a)
🚀 Features
- createEventHook: Allow awaiting on
trigger
- by @Akryum and @antfu in #2824 (31347) - createGlobalState: Allow passing initial args - by @jd-solanki and @antfu in #2790 (f21b2)
- useArrayDifference: New function - by @Alfred-Skyblue in #2710 (a2a33)
- useArrayIncludes: New function - by @Alfred-Skyblue and @antfu in #2708 (4d6bc)
- useBrowserLocation: Two-way binding - by @sxzz in #2168 (a860c)
- useCssVar: Introduce
observe
option - by @Alfred-Skyblue in #2800 (ae6e1) - useCycleList: Allow receiving reactive list - by @hjJunior and @antfu in #2864 (b65c2)
- useDark, useColorMode: Introduce
disableTransition
option - by @antfu (320ab) - useFetch: Update data on success - by @pbrzosko and Przemyslaw Brzosko in #2711 (78cfb)
- usePerformanceObserver: New function - by @LockingReal, Admin and @okxiaoliang4 in #2736 (21536)
- useSortable: New function - by @Alfred-Skyblue, @okxiaoliang4 and @antfu in #2763 (6bc60)
- useSwipe, usePointerSwipe, useTransition: Improve tree-shaking - by @webistomin and @antfu in #2863 (08c21)
- useTextareaAutosize: Added
styleTarget
option to style other element - by @jd-solanki in #2312 (a3e95) - useTransition: Expose transition utility for manual control - by @scottbedard in #2743 (526d5)
- watch: Shorthands for watch - by @mrhammadasif in #2651 (b4ec7)
🐞 Bug Fixes
- Use ts-ignore instead of ts-expect-error for version-specifc errors - by @sodatea in #2802 (37ec7)
- useAsyncValidator: Incorrect condition for choosing constructor - by @theruziev in #2788 (93b45)
- useElementHover:
window
is not defined - by @okxiaoliang4 in #2793 (c86f2) - useFetch: Abort before updating state - by @Alfred-Skyblue in #2805 (fff45)
- useFullscreen: Handle Safari iOS - by @ferferga and @antfu in #2822 (9d394)
View changes on GitHub
v9.13.0
🚀 Features
- useArrayFindLast: New function - by @huynl-96 in #2471 (b0ac4)
- useAsyncState: Get a promise function parameter type declaration - by @Brain777777 in #2765 (b4c63)
- useAxios: Add success and error callbacks - by @Alfred-Skyblue in #2714 (809fc)
- useClamp: Composable computed usage improvements - by @clemdee and @antfu in #2696 (08a07)
- useElementHover: Give hook delay properties - by @LockingReal and @antfu in #2741 (23283)
- useEventListener: Support reactive options - by @antfu (103d6)
- useFetch: Cancel previous request on refetch - by @Alfred-Skyblue and 丶远方 in #2750 (cd9d6)
- useInterval: Add
reset
function - by @mohammadhosry and Mohammad Agbareya in #2686 (81db6) - useMutationObserver: Added test cases - by @Alfred-Skyblue in #2734 (192c8)
- useScroll: Support scrollend event - by @kongmoumou in #2716 (f8872)
- useSpeechSynthesis: Add
stop
function - by @zwkkwz1 in #2774 (820e2)
🐞 Bug Fixes
- useAsyncValidator: Fix Schema importing from async-validator - by @theruziev and @okxiaoliang4 in #2761 (dbcdb)
- useAxios: Fix cancelToken - by @Alfred-Skyblue and 丶远方 in #2728 (7ad51)
- useDevicePixelRatio: Remove unnecessary cleanup - by @Waleed-KH and @antfu in #2325 (83feb)
- useFetch: Check if it's object for
isFetchOptions
- by @antfu (c2bc6) - useFocus: Listen
focus
andblur
to thetargetElement
- by @okxiaoliang4 in #2631 (7cd88) - useInterval: Fix types - by @antfu (db66c)
- useScrollLock: Detect parent with overflow auto - by @dpschen in #2699 (7e590)
- useStorage: Emit a custom event to support custom storage areas - by @43081j and @okxiaoliang4 in #2630 (c6185)
- useStorageAsync: Handle mergeDefaults option - by @ModyQyW in #2773 (105f4)
- useThrottleFn: Check negative timeout - by @vaakian in #2620 (a7238)
- useWindowScroll: Use
scrollX
instead ofpageXOffset
- by @okxiaoliang4 in #2776 (e490a)
View changes on GitHub
v9.12.0
🚀 Features
- usePrevious: New function - by @antfu (e101f)
- useRafFn, useIntervalFn, useTimeoutFn: Make status readonly - by @rotu in #2685 (39183)
- useWebSocket: Allow undefined ref for url - by @ferferga in #2473 (13924)
🐞 Bug Fixes
- useElementSize: Use contentBoxSize as an array in useElementSize - by @threedayAAAAA and vaakian X in #2520 (30475)
- useElementSize: Fix incorrect element size on SVG - by @Lionad-Morotar, @wheatjs and @antfu in #2661 (902b3)
- useMediaControls: Ended status not updating - by @ferferga in #2680 (4ef27)
- useMouseInElement: Check if mouse out of window - by @chaii3 and @antfu in #2458 (54f4e)
- usePrecision: Fix return type - by @clemdee in #2676 (e331b)
- useTimeoutFn: Respect callback parameters in start function - by @wvffle in #2693 (e054a)
View changes on GitHub
v9.11.1
v9.11.0
🚀 Features
- computedAsync: Introduce
shadow
option - by @xiankaiqun in #2616 (a0656) - createInjectionState: Return state when providing injection state - by @Tanimodori and lsdsjy in #2309 (f7ce6)
- reactivePick: Add test cases - by @Alfred-Skyblue, 丶远方 and @wheatjs in #2653 (b06b8)
- useAsyncState: Add test cases - by @Alfred-Skyblue and @wheatjs in #2657 (5907f)
- usePointerLock: New function - by @daniser, Sergey Danilchenko, Jelf and @wheatjs in #2590 (ae69f)
- useThrottleFn: Add test cases - by @Alfred-Skyblue in #2649 (85ab1)
🐞 Bug Fixes
- Nuxt3 implementation - by @roiLeo in #2644 (8f6ce)
- components: Mark
defineComponent
as pure - by @vaakian and @wheatjs in #2623 (d5321) - docs: Remove unnecessary import - by @yuyinws in #2611 (7a2ff)
- useAxios: Assign AxiosError to error.value when no url provided - by @syy11cn and @wheatjs in #2478 and #2484 (1e270)
- useDraggable: Write to useStorage - by @akifo in #2575 (e39c2)
- useElementByPoint: Make document configurable - by @vaakian in #2614 (c3639)
- useRouteQuery: Allow setting multiple route queries in same tick - by @wheatjs in #2646 (07c95)
- useVirtualList: List sometimes missing elements - by @begedin and @wheatjs in #2477 (25f6e)
View changes on GitHub
v9.10.0
🚀 Features
- useActiveElement: Support shadow roots - by @43081j and @antfu in #2592 (07f20)
- useArrayUnique: New function - by @Alfred-Skyblue in #2597 (162cd)
- useDebounceFn,useThrottleFn: Return result using promise - by @vaakian in #2580 (4d305)
- useMouse: Support for movement detection - by @daniser and Sergey Danilchenko in #2589 (0c39d)
- useVirutalList: Expose
scrollTo
in component - by @Agapanthus and Eric Skaliks in #2397 (9f495)
🐞 Bug Fixes
- nuxt: Disable useImage in the Nuxt package for auto imports - by @wheatjs in #2602 (d3d1d)
- onKeyStroke: Make
target
ref nullable - by @vaakian in #2579 (28614) - useActiveElement: Ignore if relatedTarget is set - by @dpschen in #2600 (ae78d)
- useElementBounding: Update on scroll - by @Ducz01 and sibbng in #2596 (268a6)
- useScrollLock: Fix iOS touchmove bug - by @robinscholz, Robin Scholz, webfansplz and @antfu in #2362 (c9a9a)