Breaking Changes
- Deprecated usage of
@vueuse/core/nuxt
has been removed, use@vueuse/nuxt
instead syncRef
renamed tosyncRefs
(5ec1da1)biSyncRef
renamed tosyncRef
, with configurable syncing direction (360833d)- fix(useTextSelection)!: listen to
selectionchange
event by @okxiaoliang4 in #1194 - refactor(useFocus)!: made target an required argument instead of an option by @wtykirby in #1010
Bug Fixes
- useAxios: args param need limit (#1343) (42fc7a7)
- useFetch: uppercase HTTP methods in useFetch (#1336) (4ce7c72)
- useTextSelection: ssr compactible (2a87733)
- onClickOutside: should work normal w/ directive (#1366) (66cefd5)
New Features
- New
@vueuse/metadata
package to replace theindexes.json
with proper types - Better support of related functions in docs
- Support alias of functions
- New functions
- Enhancements
- Directive support for functions
- onKeyStroke: directive support (#1362) (9f8eabb)
- useElementHover: directive support (#1359) (73b0def)
- useInfiniteScroll: directive support (#1340) (fd8ca8e)
- useIntersectionObserver: directive support (#1339) (53d4dfd)
- useScroll: directive support (#1348) (0daf86f)
- useScrollLock: directive support (#1360) (4356613)
- useElementSize: directive support (#1365) (1346456)
Refactoring
- Normalize the function names with the backward compact alias
eagerComputed
->computedEager
asyncComputed
->computedAsync
controlledComputed
->computedWithControl
useThrottle
,throttledRef
->refThrottled
useDebounce
,debouncedRef
->refDebounced
controlledRef
->refWithControl
pasuableWatch
->watchPasuable
ignorableWatch
->watchIgnorable
debouncedWatch
->watchDebounced
throttledWatch
->watchThrottled
and
,or
,not
->logicAnd
,logicOr
,logicNot
autoResetRef
->refAutoReset
New Contributors
- @Glandos made their first contribution in #1336
- @WuLianN made their first contribution in #1343
- @hengshanMWC made their first contribution in #1363
- @Rolanddoda made their first contribution in #1380
- @Flamenco made their first contribution in #1384
- @dospunk made their first contribution in #1392
New Team Members
Full Changelog: v7.7.1...v8.0.0