Skip to content

v8.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Mar 07:49
· 1280 commits to main since this release

Breaking Changes

  • Deprecated usage of @vueuse/core/nuxt has been removed, use @vueuse/nuxt instead
  • syncRef renamed to syncRefs (5ec1da1)
  • biSyncRef renamed to syncRef, 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 the indexes.json with proper types
  • Better support of related functions in docs
  • Support alias of functions
  • New functions
  • Enhancements
    • useAxios: allow useAxios to be awaited (#1228) (8812e7e)
    • useAxios: allow not passing url in constructor (#1388) (2a582d4)
    • useDraggable: add stopPropagation option (#1391) (7445f0a)
  • Directive support for functions

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

New Team Members

Full Changelog: v7.7.1...v8.0.0