npm @vueuse/core 8.0.0
v8.0.0

latest releases: 11.2.0, 11.1.0, 11.0.3...
2 years ago

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

Don't miss a new core release

NewReleases is sending notifications on new releases.