Releases: vueuse/vueuse
Releases · vueuse/vueuse
v10.7.1
🚀 Features
- syncRef: Enhance type - by @Doctor-wu in #3678 (dad66)
🐞 Bug Fixes
- Fix
tryOnMounted
in vue2 - by @Doctor-wu in #3658 (ce420) - nuxt: Stable optimizeDeps augmenting - by @antfu (98985)
- useDropzone: Avoid circular reference - by @diegopf in #3683 (15a38)
- useElementBounding: Trigger by css or style - by @huiliangShen in #3664 (70dbd)
- useIpcRenderer: Set explicit return type - by @antfu (dd820)
- useMouse: Handle Touch class compatibility for Firefox - by @elschilling in #3679 (5719b)
- useVirtualList: Ensure component applies overflow style - by @reubns in #3626 (286c3)
View changes on GitHub
v10.7.0
🚀 Features
- Upgrade deps - by @antfu in #3614 (fccf2)
- isIOS: Detect new iPad - by @Doctor-wu and @antfu in #3582 (47d2d)
- onLongPress: Add
distanceThreshold
option - by @donaldxdonald and @antfu in #3578 (0e04a) - tryOnMounted: Support target arguement - by @tolking and @antfu in #3185 (f2aeb)
- useBreakpoints: Make parameters reactivity - by @Doctor-wu in #3592 (dc624)
- useFileDialog: Trigger onChange when reset - by @Doctor-wu in #3548 (7e2da)
- useInfiniteScroll: Add the
canLoadMore
option - by @Alfred-Skyblue in #3558 (e780f) - usePointerSwipe: Add
disableTextSelect
option - by @aminmokhtari94 in #3604 (fd67b) - useTitle: Restore title on unmounted - by @Doctor-wu and @antfu in #3570 (0ab76)
🐞 Bug Fixes
- createEventHook: Make createEventHook union type can be inferred correctly - by @Doctor-wu in #3569 (e48ca)
- createEventHook:
trigger
should not ignore falsy values - by @romansp and @Alfred-Skyblue in #3561 (3733b) - syncRef: SyncRef typing issue for boolean - by @s-montigny-desautels in #3553 (acb2f)
- useAxios: Reset
isAborted
value on success - by @17359898647 and @antfu in #3547 (4b159) - useDark: In Vue 2.6 mode.system is undefined - by @Teaghy, hguan and @antfu in #3562 (68688)
- useDropZone: Fix file types filter - by @getname1997 and @antfu in #3540 (8f42a)
- useElementVisibility: Use last intersection entry - by @ziolko-appfire, Mateusz Zieliński and @antfu in #3365 (07d39)
- useFetch: Immediately modify the status after the request is completed - by @tolking and @antfu in #3603 (3456d)
- useFetch: Clone 'Response' on reading - by @mymx2 and @antfu in #3607 and #3608 (8cbfd)
- useMemoize: Use shallowReactive to wrap Map - by @antfu (fecbe)
- useMousePressed: Change type of element parameter to MaybeComputedElementRef - by @4350pChris in #3566 (17f97)
- useOffsetPagination: Don't mutate props when it's readonly - by @Doctor-wu in #3581 (4dace)
- useScreenOrientation: Add fault tolerance to lock and unlock - by @satrong in #3575 (be3cc)
- useStorage: Fix undefined defaults - by @Doctor-wu in #3597 (04220)
View changes on GitHub
v10.6.1
🐞 Bug Fixes
- useScroll: Can not read properties of null (reading document) - by @Jokerzhzh and @joaopslins in #3544 (e9742)
- useVirtualList:
.style
can be undefined - by @antfu (3d6b9)
View changes on GitHub
v10.6.0
🚀 Features
- createEventHook: Allow trigger to optionally have no parameters - by @curtgrimes in #3507 (6040e)
- onLongClick: Return stop function - by @its-lee and lee in #3506 (8eb0b)
- syncRef: Enhance syncRef type restrict - by @Doctor-wu in #3515 (89266)
- useClipboard: UseClipboard component - by @alexzvn, Alexzvn and @antfu in #3359 (71b46)
- useClipboardItems: New function - by @Doctor-wu and @antfu in #3477 (1aa50)
- useDateFormat: Add date ordinal formatting - by @Jokerzhzh and @antfu in #3474 (61ceb)
- useDropZone: Add
dataTypes
option - by @rtugeek and @antfu in #3471 (3f3f1) - useElementSize: Stop function - by @chaii3 and @antfu in #3367 (5f545)
- useFileDialog: Add directory parameters - by @huiliangShen and banruo in #3513 (cefca)
- useMutationObserver: Add
takeRecords
function - by @Alfred-Skyblue in #3480 (f9136) - useStorage: Add
waitOnMounted
option for SSR - by @posva and @antfu in #3504 (dc6f2) - useWindowScroll: Allow rewriting back to scroll - by @nothing-sy, chensiyuan and @antfu in #3500 (931b2)
- watchOnce: Return function for manual watcher stopping - by @valerypatorius in #3475 (bb0a7)
🐞 Bug Fixes
- onClickOutside: Adjust shouldListen handling timing - by @Doctor-wu in #3503 (69851)
- onScrollLock: Cache the el initial overflow value - by @Doctor-wu in #3527 (03866)
- useAxios: Bail out on request abort - by @jahnli in #3394 (151f9)
- useClipboard: Use legacy way when without permission - by @Cat1007, catye, @posva and @antfu in #3379 (37e86)
- useDraggable: Element can't relative parent element move - by @huiliangShen and banruo in #3531 (08246)
- useElementSize: Get value in onMounted hook - by @chaii3 and @antfu in #3366 (165c8)
- useFetch: Don't set isFetching to false when a request is aborted because of a refetch - by @mweghorst and @antfu in #3479 (75ca2)
- useMouseInElement: Optimize outside computation - by @qiYuei, fengmingjian and @antfu in #3380 (7c88d)
- useRouteQuery,useRouteParams: Prevent reset on other scope dispose - by @s-montigny-desautels and @antfu in #3418 (771e7)
- useScroll: Trigger once
onMounted
to get correct inital arrivedStates values - by @nicooprat and @antfu in #3384 (86bd8) - useSortable: Prevent from creating multi instances - by @Doctor-wu in #3501 (d9846)
- useStorage: Fix defaults not unwrapped - by @Alfred-Skyblue in #3534 (b6d2b)
- useWebSocket: Webworker support - by @binary-signal and @antfu in #3469 (9b014)
View changes on GitHub
v10.5.0
🚀 Features
- Add
Promisify
type definition - by @Alfred-Skyblue in #3420 (b067b) - createInjectionState: Allow provide and inject in same component - by @xiaoxiangmoe and @antfu in #3387 (5d948)
- createInjectionState: Add injectionKey option - by @PPetau and @antfu in #3404 (90d34)
- rxjs: Add useExtractedObservable and watchExtractedObservable - by @Voltra in #3453 (23b8c)
- useFavicon: Add link tag if it doesn't exist - by @babu-ch in #3444 (d1fcc)
- useMousePressed: Add capture option - by @DerZade and @antfu in #3392 (d5c81)
- useMutationObserver: Use MaybeComputedElementRef - by @huodoushigemi in #3430 (8167b)
- useRafFn: Option fpsLimit - by @f820602h and @antfu in #3459 (8e4c0)
🐞 Bug Fixes
- Vue 2 support for provideLocal and injectLocal - by @xiaoxiangmoe in #3464 (cf757)
- useBreakpoints: Add missing breakpoint for the bootstrap - by @edtorba in #3413 (ec9a4)
- useDrauu: Spread options for
brush
- by @17359898647 in #3463 (87ea3) - useVModels: Type error with passive: true - by @chaii3 in #3362 (51f01)
- useWebNotification: Condition check on permission - by @SampsonCrowley in #3422 (2f2b4)
- useWebSocket: Ssr support - by @huangyan321 in #3370 (c3a69)
View changes on GitHub
v10.4.1
v10.4.0
🚀 Features
- refAutoReset: Support maybe-ref as value - by @moander in #3342 (71685)
- useAsyncQueue: Support in infinite tasks in typescript - by @ethansnow2012 in #3333 (22e26)
- useBreakpoints: Add breakpoints for PrimeFlex - by @adrianrudnik and @antfu in #3317 (8b5ed)
- useDraggable: Allowing calculations of bounds with fixed element - by @linspw in #3335 (c08e5)
- useFetch: Introduce
updateDataOnError
option - by @climba03003 and @antfu in #3092 (945ca) - useIdbKeyval: Ability to wait for IDB writes - by @AbdallahAlhaddad and @antfu in #3338 (77a86)
- useWebNotification: Add
requestPermissions
option, returnpermissionGranted
andensurePermissions
- by @michealroberts and @antfu in #3325 (a1753)
🐞 Bug Fixes
- syncRef: Avoid infinite sync - by @chaii3 and @antfu in #3312 (bc966)
- useElementSize: Add
as
prop for component usage - by @menghany in #3274 (791f7) - useElementVisibility: Adjust threshold to 0 to fix visibility issue with large element - by @erikkkwu in #3308 (429ed)
- useFileSystemAccess: Make options to be optional - by @171h in #3320 (a9c8b)
- useMouse: Position won't be changed on page scroll when
type
ispage
, closes #2922 - by @CatsJuice and @antfu in #3244 and #2922 (c2f64) - useScroll: Evade edge case when window or document is Proxy - by @MinatoHikari in #3280 (c1b29)
- useScrollLock: Support using window or document - by @lzl0304 in #3319 (8acdb)
- useSortable: Fixed moveArrayElement repeatedly triggering side effects - by @Alfred-Skyblue in #3322 (b8515)
- useStorage: Read object only when it's serialized differently - by @chenglu4343, chenglu and @antfu in #2782 and #3091 (6fabe)
- useVModel: Clone set to true triggered infinite loop - by @motian and @antfu in #3097 (48f4c)
- useWebWorker: Prevent error event bubbling - by @Luvoy and @antfu in #3141 (34206)
- useWebsocket: PongTimeout auto-reconnect no work - by @shanyi-front and @antfu in #3321 (93372)
- useWebsocket: Reset pongTimeout on close - by @alipay404 and @antfu in #3324 (aea27)
- utils: Update
isClient
to checkdocument
too - by @brc-dd and @antfu in #3329 (786cb)
View changes on GitHub
v10.3.0
🚀 Features
- createReusableTemplate: Inherit attrs - by @wiidede and @antfu in #3226 (a32ae)
- useActiveElement: Search deeply in shadow dom - by @duoduoObama and @antfu in #3208 (296dc)
- useCounter: InitialValue support ref - by @Rock070 in #3266 (6ae3a)
- useFocus: Support
:focus-visible
- by @onmax and @antfu in #3254 (80329) - useRTDB: Add errorHandler option - by @wobsoriano in #3232 (b5e52)
- useSorted: Accept getter function as source - by @wvffle in #3249 (33a12)
- useSpeechSynthesis: Add reactivity for pitch and rate - by @shestmintsev-kirill in #3205 (ac88f)
🐞 Bug Fixes
- build: Ensure correct typing for node esm - by @xiaoxiangmoe and @antfu in #3209 (e7556)
- createReusableTemplate: Camelize props - by @94726, @antfu and @wvffle in #3253 (d79e1)
- onClickOutside: Fix outside click on html element in ios - by @sibbng in #3252 (9091e)
- reactiveComputed: Unwrap reactive type - by @sxzz in #3215 (17a72)
- router: Improves router functions: synchronize values, adds tests, and optimize performance - by @anteriovieira, @antfu, CJBoy and tzyoo in #3184 (0d02f)
- toRefs: Don't trigger unwanted watchEffects - by @wvffle in #3260 (5309c)
- useDateFormat: Handle zero properly - by @JocelynFloresz and @antfu in #3272 (d6428)
- useEventListener: Improved
useEventListener
overload - by @Alfred-Skyblue in #3246 (4f414) - useFetch: Generated payloadType on execute - by @tolking in #3251 (b7e3d)
- useInfiniteScroll: Improve visibility check - by @erikkkwu in #3212 (5ce61)
- useMediaQuery: Only add/remove event listeners on query change - by @Ingramz and @antfu in #3236 (f3969)
- useObjectUrl: Improve parameter type - by @ferreira-tb in #3239 (d3f7e)
- usePointer: Add
pointerup
event forpressure
field - by @cunzaizhuyi and @antfu in #3217 (ee425) - useScroll: Support configurable window - by @sheremet-va and @antfu in #3229 (dde41)
View changes on GitHub
v10.2.1
🚀 Features
- useDropZone: Expose more hooks - by @antfu (17d8d)
- useDropZone: Expose files as ref - by @antfu (6d4ef)
🐞 Bug Fixes
- fromEvent: Torn down properly - by @benlesh in #3155 (fa7ed)
- toRefs: Fix stack overflow caused by recursive
setPrototypeOf
- by @Alfred-Skyblue in #3166 (9f998) - useFullscreen: Skip exiting when not in fullscreen mode - by @tawen, @antfu and Fernando Fernández in #3144 (14edb)
- useInfiniteScroll: Prevent infinite load when v-show set false - by @wonderl17 in #3143 (a4dfa)
- useRafFn: Set initial delta to zero - by @haykkh in #3150 (cf6eb)
- useTimeoutPoll: Unexpected immediate execution - by @jiadesen in #3159 (7a897)
View changes on GitHub
v10.2.0
🚀 Features
- useAsyncQueue: Add
options.signal
parameter - by @Cross-Origin in #3033 (7da7c) - useColorMode: DisableTransition support pseudo-elements - by @lainbo in #3129 (78a3a)
- useDraggable: Improve component props - by @Alfred-Skyblue in #3075 (6b670)
- useElementByPoint: New
multiple
andinterval
options - by @okxiaoliang4 in #3089 (31b66) - useFileDialog: Add a parameter
reset
- by @zaqvil in #3059 (6d847) - useImage: Support referrerPolicy option - by @btea in #3132 (04d32)
- useSortable: Add option set get method - by @Alfred-Skyblue in #3108 (14283)
- useVModel: Improve types overload - by @Mini-ghost in #3055 (7d788)
🐞 Bug Fixes
- onClickOutside: Ensure focus on iframe captured in firefox - by @Geit in #3066 (2c66e)
- useAxios: Prevent premature loading refs reset - by @MickaelOth in #3076 (b1701)
- useCloned: Check for getter function to watch - by @ydcjeff in #3142 (6d630)
- useCssVar: Observe changes based on element class list - by @Waleed-KH in #3131 (9d34a)
- useMediaControls: Better representation for "waiting" value - by @ferferga in #3072 (0b253)
- useRouteHash,useRouteQuery,useRouteParams: Re-evaluates the value immediately - by @anteriovieira in #3002 (d5252)
- useScroll: Support window in setArrivedState - by @smallnine9 and yulj5 in #3086 (8855f)
- useScrollLock: Fix scrollable children check - by @valerypatorius in #3065 (cdc28)
- useTextareaAutosize: Autosize error when changing
input
asynchronously - by @jsonleex in #3118 (1b0ec) - useWebWorker: Add web worker transferable option - by @yassilah in #3123 (5988f)
- watchImmediate: Fix overload signature - by @ferreira-tb in #3114 (4b4e6)
🏎 Performance
- useCssVar: Only listen for style changes - by @Alfred-Skyblue in #3057 (3233a)