🚨 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)