Migration, v13 to v15
Version-specific rules for @vueuse/components, each cited to an official release or the prepared 15.0.0 source. Current baseline: 15.0.0.
v15.0.0
Release: https://github.com/vueuse/vueuse/releases/tag/v15.0.0
- BREAKING: Node.js 20 support dropped;
engines.nodeis now>=22(release notes; package.json:37) - BREAKING (core): deprecated timer options removed in favor of
scheduler. AffectsUseNow,UseTimeAgo,UseTimestamp, whose timing prop is now onlyscheduler(release notes; dist/index.js:892-904, 1149-1169, 1172-1187) - BREAKING (core):
useThrottleFndefaulttrailingchanged fromfalsetotrue; affects throttled event filters passed viaoptionsprops such aseventFilter - FIX:
onLongPress(component and directive) clears a pending long press onpointercancel - Also in core, not in this package:
templateRefdropped,useEventSourceSSE handling changed,useIDBKeyvalcross-tab sync
v14.0.0
Release: https://github.com/vueuse/vueuse/releases/tag/v14.0.0
- BREAKING: requires Vue 3.5+ (release notes; current peer range
^3.5.0in package.json:40) - BREAKING: components refactored for consistency.
OnClickOutsideandOnLongPressmoved configuration to theoptionsprop and actions to the@triggeremit; current shape verified at dist/index.js:5-17 and dist/index.js:57-69 - DEPRECATED:
VOnClickOutsideandVOnLongPressuppercase aliases; the@deprecatedtags persist in 15.0.0 (dist/index.d.ts:17-18, 43-44)
v13.0.0
Release: https://github.com/vueuse/vueuse/releases/tag/v13.0.0
- BREAKING: CJS build dropped; the package is ESM-only (
"type": "module", package.json:3). Bundlers and Node must use ESM imports; norequire()support
Upgrade checklist
- Node toolchain at 22+ and an ESM-capable build setup.
- Vue 3.5+.
- Replace
VOnClickOutside/VOnLongPressimports withvOnClickOutside/vOnLongPress. - On
On*components, move inline handler props to theoptionsprop and listen with@trigger. - Replace removed timer options on
UseNow,UseTimeAgo,UseTimestampwithscheduler.