Upgrading @vueuse/nuxt 7 to 8
Breaking7.7.1 → 8.9.4Breaking6Platform1Deprecated12New55Changed5Fixed91Other2
BreakingUpgrade verdict
6 breaking changes and a platform requirement change.
In plain terms
- The aborted flag returned by useAxios is now called isAborted, so code using the old name must be updated.
- The old way of importing the Nuxt module from the core package no longer works. Install and import the separate Nuxt package instead.
- The function that syncs several refs at once has a new name.
- The two-way ref sync function is now called `syncRef` and lets you choose which direction values flow.
Must act Top 5 of 19 that need code or config changes
Adds @nuxt/kit ^3.0.0-rc.4, @vueuse/metadata 8.9.4.
Drops @nuxt/kit-edge.
Installs 51 packages in all (was 158).
What you must change
Breaking6
Renames useAxios aborted to isAborted.
useAxiosabortedisAbortedRemoves the deprecated
@vueuse/core/nuxt entry point; use @vueuse/nuxt instead.@vueuse/core/nuxt@vueuse/nuxtRenames
syncRef to syncRefs.syncRefsyncRefsRenames
biSyncRef to syncRef and adds a configurable syncing direction.biSyncRefsyncRefChanges
useTextSelection to listen to the selectionchange event.useTextSelectionselectionchangeMakes the target a required argument of
useFocus instead of an option.useFocusPlatform1
Marks change-case as an optional peer dependency in integrations.
change-caseDeprecations to plan for
Deprecated12
Deprecates
eagerComputed in favor of computedEager.eagerComputedcomputedEagerDeprecates
asyncComputed in favor of computedAsync.asyncComputedcomputedAsyncDeprecates
controlledComputed in favor of computedWithControl.controlledComputedcomputedWithControlDeprecates
useThrottle and throttledRef in favor of refThrottled.useThrottlethrottledRefrefThrottledDeprecates
useDebounce and debouncedRef in favor of refDebounced.useDebouncedebouncedRefrefDebouncedDeprecates
controlledRef in favor of refWithControl.controlledRefrefWithControlDeprecates
pasuableWatch in favor of watchPasuable.pasuableWatchwatchPasuableDeprecates
ignorableWatch in favor of watchIgnorable.ignorableWatchwatchIgnorableDeprecates
debouncedWatch in favor of watchDebounced.debouncedWatchwatchDebouncedDeprecates
throttledWatch in favor of watchThrottled.throttledWatchwatchThrottledDeprecates
and, or and not in favor of logicAnd, logicOr and logicNot.andornotlogicAndlogicOrlogicNotDeprecates
autoResetRef in favor of refAutoReset.autoResetRefrefAutoReset