@vue/compat 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.cjs.js +39 -27
- package/dist/vue.cjs.prod.js +39 -27
- package/dist/vue.esm-browser.js +39 -27
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +39 -27
- package/dist/vue.global.js +39 -27
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +38 -26
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +38 -26
- package/dist/vue.runtime.global.js +38 -26
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1046,7 +1046,7 @@ const arrayInstrumentations = {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
concat(...args) {
|
|
1048
1048
|
return reactiveReadArray(this).concat(
|
|
1049
|
-
...args.map((x) => reactiveReadArray(x))
|
|
1049
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
1050
1050
|
);
|
|
1051
1051
|
},
|
|
1052
1052
|
entries() {
|
|
@@ -3914,7 +3914,9 @@ const BaseTransitionImpl = {
|
|
|
3914
3914
|
// #11061, ensure enterHooks is fresh after clone
|
|
3915
3915
|
(hooks) => enterHooks = hooks
|
|
3916
3916
|
);
|
|
3917
|
-
|
|
3917
|
+
if (innerChild.type !== Comment) {
|
|
3918
|
+
setTransitionHooks(innerChild, enterHooks);
|
|
3919
|
+
}
|
|
3918
3920
|
const oldChild = instance.subTree;
|
|
3919
3921
|
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3920
3922
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
@@ -4241,10 +4243,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4241
4243
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
4242
4244
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4243
4245
|
const setupState = owner.setupState;
|
|
4246
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
|
|
4244
4247
|
if (oldRef != null && oldRef !== ref) {
|
|
4245
4248
|
if (isString(oldRef)) {
|
|
4246
4249
|
refs[oldRef] = null;
|
|
4247
|
-
if (
|
|
4250
|
+
if (canSetSetupRef(oldRef)) {
|
|
4248
4251
|
setupState[oldRef] = null;
|
|
4249
4252
|
}
|
|
4250
4253
|
} else if (isRef(oldRef)) {
|
|
@@ -4259,14 +4262,14 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4259
4262
|
if (_isString || _isRef) {
|
|
4260
4263
|
const doSet = () => {
|
|
4261
4264
|
if (rawRef.f) {
|
|
4262
|
-
const existing = _isString ?
|
|
4265
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4263
4266
|
if (isUnmount) {
|
|
4264
4267
|
isArray(existing) && remove(existing, refValue);
|
|
4265
4268
|
} else {
|
|
4266
4269
|
if (!isArray(existing)) {
|
|
4267
4270
|
if (_isString) {
|
|
4268
4271
|
refs[ref] = [refValue];
|
|
4269
|
-
if (
|
|
4272
|
+
if (canSetSetupRef(ref)) {
|
|
4270
4273
|
setupState[ref] = refs[ref];
|
|
4271
4274
|
}
|
|
4272
4275
|
} else {
|
|
@@ -4279,7 +4282,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4279
4282
|
}
|
|
4280
4283
|
} else if (_isString) {
|
|
4281
4284
|
refs[ref] = value;
|
|
4282
|
-
if (
|
|
4285
|
+
if (canSetSetupRef(ref)) {
|
|
4283
4286
|
setupState[ref] = value;
|
|
4284
4287
|
}
|
|
4285
4288
|
} else if (_isRef) {
|
|
@@ -5367,10 +5370,11 @@ const KeepAliveImpl = {
|
|
|
5367
5370
|
};
|
|
5368
5371
|
}
|
|
5369
5372
|
};
|
|
5370
|
-
{
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5373
|
+
const decorate$2 = (t) => {
|
|
5374
|
+
t.__isBuiltIn = true;
|
|
5375
|
+
return t;
|
|
5376
|
+
};
|
|
5377
|
+
const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl) ;
|
|
5374
5378
|
function matches(pattern, name) {
|
|
5375
5379
|
if (isArray(pattern)) {
|
|
5376
5380
|
return pattern.some((p) => matches(p, name));
|
|
@@ -7084,7 +7088,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7084
7088
|
return vm;
|
|
7085
7089
|
}
|
|
7086
7090
|
}
|
|
7087
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7091
|
+
Vue.version = `2.6.14-compat:${"3.5.1"}`;
|
|
7088
7092
|
Vue.config = singletonApp.config;
|
|
7089
7093
|
Vue.use = (plugin, ...options) => {
|
|
7090
7094
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12274,7 +12278,7 @@ function isMemoSame(cached, memo) {
|
|
|
12274
12278
|
return true;
|
|
12275
12279
|
}
|
|
12276
12280
|
|
|
12277
|
-
const version = "3.5.
|
|
12281
|
+
const version = "3.5.1";
|
|
12278
12282
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12279
12283
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12280
12284
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12385,11 +12389,6 @@ const nodeOps = {
|
|
|
12385
12389
|
const TRANSITION$1 = "transition";
|
|
12386
12390
|
const ANIMATION = "animation";
|
|
12387
12391
|
const vtcKey = Symbol("_vtc");
|
|
12388
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
12389
|
-
Transition.displayName = "Transition";
|
|
12390
|
-
{
|
|
12391
|
-
Transition.__isBuiltIn = true;
|
|
12392
|
-
}
|
|
12393
12392
|
const DOMTransitionPropsValidators = {
|
|
12394
12393
|
name: String,
|
|
12395
12394
|
type: String,
|
|
@@ -12408,11 +12407,22 @@ const DOMTransitionPropsValidators = {
|
|
|
12408
12407
|
leaveActiveClass: String,
|
|
12409
12408
|
leaveToClass: String
|
|
12410
12409
|
};
|
|
12411
|
-
const TransitionPropsValidators =
|
|
12410
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend(
|
|
12412
12411
|
{},
|
|
12413
12412
|
BaseTransitionPropsValidators,
|
|
12414
12413
|
DOMTransitionPropsValidators
|
|
12415
12414
|
);
|
|
12415
|
+
const decorate$1 = (t) => {
|
|
12416
|
+
t.displayName = "Transition";
|
|
12417
|
+
t.props = TransitionPropsValidators;
|
|
12418
|
+
{
|
|
12419
|
+
t.__isBuiltIn = true;
|
|
12420
|
+
}
|
|
12421
|
+
return t;
|
|
12422
|
+
};
|
|
12423
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
12424
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
12425
|
+
);
|
|
12416
12426
|
const callHook = (hook, args = []) => {
|
|
12417
12427
|
if (isArray(hook)) {
|
|
12418
12428
|
hook.forEach((h2) => h2(...args));
|
|
@@ -13626,7 +13636,14 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
13626
13636
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
13627
13637
|
const moveCbKey = Symbol("_moveCb");
|
|
13628
13638
|
const enterCbKey = Symbol("_enterCb");
|
|
13629
|
-
const
|
|
13639
|
+
const decorate = (t) => {
|
|
13640
|
+
delete t.props.mode;
|
|
13641
|
+
{
|
|
13642
|
+
t.__isBuiltIn = true;
|
|
13643
|
+
}
|
|
13644
|
+
return t;
|
|
13645
|
+
};
|
|
13646
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
13630
13647
|
name: "TransitionGroup",
|
|
13631
13648
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
13632
13649
|
tag: String,
|
|
@@ -13718,12 +13735,7 @@ const TransitionGroupImpl = {
|
|
|
13718
13735
|
return createVNode(tag, null, children);
|
|
13719
13736
|
};
|
|
13720
13737
|
}
|
|
13721
|
-
};
|
|
13722
|
-
{
|
|
13723
|
-
TransitionGroupImpl.__isBuiltIn = true;
|
|
13724
|
-
}
|
|
13725
|
-
const removeMode = (props) => delete props.mode;
|
|
13726
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
13738
|
+
});
|
|
13727
13739
|
const TransitionGroup = TransitionGroupImpl;
|
|
13728
13740
|
function callPendingCbs(c) {
|
|
13729
13741
|
const el = c.el;
|
|
@@ -17244,7 +17256,7 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
17244
17256
|
};
|
|
17245
17257
|
}
|
|
17246
17258
|
|
|
17247
|
-
const PURE_ANNOTATION =
|
|
17259
|
+
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
17248
17260
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
17249
17261
|
function createCodegenContext(ast, {
|
|
17250
17262
|
mode = "function",
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1045,7 +1045,7 @@ var Vue = (function () {
|
|
|
1045
1045
|
},
|
|
1046
1046
|
concat(...args) {
|
|
1047
1047
|
return reactiveReadArray(this).concat(
|
|
1048
|
-
...args.map((x) => reactiveReadArray(x))
|
|
1048
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
1049
1049
|
);
|
|
1050
1050
|
},
|
|
1051
1051
|
entries() {
|
|
@@ -3899,7 +3899,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3899
3899
|
// #11061, ensure enterHooks is fresh after clone
|
|
3900
3900
|
(hooks) => enterHooks = hooks
|
|
3901
3901
|
);
|
|
3902
|
-
|
|
3902
|
+
if (innerChild.type !== Comment) {
|
|
3903
|
+
setTransitionHooks(innerChild, enterHooks);
|
|
3904
|
+
}
|
|
3903
3905
|
const oldChild = instance.subTree;
|
|
3904
3906
|
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3905
3907
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
@@ -4225,10 +4227,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4225
4227
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
4226
4228
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4227
4229
|
const setupState = owner.setupState;
|
|
4230
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
|
|
4228
4231
|
if (oldRef != null && oldRef !== ref) {
|
|
4229
4232
|
if (isString(oldRef)) {
|
|
4230
4233
|
refs[oldRef] = null;
|
|
4231
|
-
if (
|
|
4234
|
+
if (canSetSetupRef(oldRef)) {
|
|
4232
4235
|
setupState[oldRef] = null;
|
|
4233
4236
|
}
|
|
4234
4237
|
} else if (isRef(oldRef)) {
|
|
@@ -4243,14 +4246,14 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4243
4246
|
if (_isString || _isRef) {
|
|
4244
4247
|
const doSet = () => {
|
|
4245
4248
|
if (rawRef.f) {
|
|
4246
|
-
const existing = _isString ?
|
|
4249
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4247
4250
|
if (isUnmount) {
|
|
4248
4251
|
isArray(existing) && remove(existing, refValue);
|
|
4249
4252
|
} else {
|
|
4250
4253
|
if (!isArray(existing)) {
|
|
4251
4254
|
if (_isString) {
|
|
4252
4255
|
refs[ref] = [refValue];
|
|
4253
|
-
if (
|
|
4256
|
+
if (canSetSetupRef(ref)) {
|
|
4254
4257
|
setupState[ref] = refs[ref];
|
|
4255
4258
|
}
|
|
4256
4259
|
} else {
|
|
@@ -4263,7 +4266,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4263
4266
|
}
|
|
4264
4267
|
} else if (_isString) {
|
|
4265
4268
|
refs[ref] = value;
|
|
4266
|
-
if (
|
|
4269
|
+
if (canSetSetupRef(ref)) {
|
|
4267
4270
|
setupState[ref] = value;
|
|
4268
4271
|
}
|
|
4269
4272
|
} else if (_isRef) {
|
|
@@ -5334,10 +5337,11 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5334
5337
|
};
|
|
5335
5338
|
}
|
|
5336
5339
|
};
|
|
5337
|
-
{
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5340
|
+
const decorate$2 = (t) => {
|
|
5341
|
+
t.__isBuiltIn = true;
|
|
5342
|
+
return t;
|
|
5343
|
+
};
|
|
5344
|
+
const KeepAlive = /* @__PURE__ */ decorate$2(KeepAliveImpl) ;
|
|
5341
5345
|
function matches(pattern, name) {
|
|
5342
5346
|
if (isArray(pattern)) {
|
|
5343
5347
|
return pattern.some((p) => matches(p, name));
|
|
@@ -7046,7 +7050,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7046
7050
|
return vm;
|
|
7047
7051
|
}
|
|
7048
7052
|
}
|
|
7049
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7053
|
+
Vue.version = `2.6.14-compat:${"3.5.1"}`;
|
|
7050
7054
|
Vue.config = singletonApp.config;
|
|
7051
7055
|
Vue.use = (plugin, ...options) => {
|
|
7052
7056
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12146,7 +12150,7 @@ Component that was made reactive: `,
|
|
|
12146
12150
|
return true;
|
|
12147
12151
|
}
|
|
12148
12152
|
|
|
12149
|
-
const version = "3.5.
|
|
12153
|
+
const version = "3.5.1";
|
|
12150
12154
|
const warn = warn$1 ;
|
|
12151
12155
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12152
12156
|
const devtools = devtools$1 ;
|
|
@@ -12247,11 +12251,6 @@ Component that was made reactive: `,
|
|
|
12247
12251
|
const TRANSITION$1 = "transition";
|
|
12248
12252
|
const ANIMATION = "animation";
|
|
12249
12253
|
const vtcKey = Symbol("_vtc");
|
|
12250
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
12251
|
-
Transition.displayName = "Transition";
|
|
12252
|
-
{
|
|
12253
|
-
Transition.__isBuiltIn = true;
|
|
12254
|
-
}
|
|
12255
12254
|
const DOMTransitionPropsValidators = {
|
|
12256
12255
|
name: String,
|
|
12257
12256
|
type: String,
|
|
@@ -12270,11 +12269,22 @@ Component that was made reactive: `,
|
|
|
12270
12269
|
leaveActiveClass: String,
|
|
12271
12270
|
leaveToClass: String
|
|
12272
12271
|
};
|
|
12273
|
-
const TransitionPropsValidators =
|
|
12272
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend(
|
|
12274
12273
|
{},
|
|
12275
12274
|
BaseTransitionPropsValidators,
|
|
12276
12275
|
DOMTransitionPropsValidators
|
|
12277
12276
|
);
|
|
12277
|
+
const decorate$1 = (t) => {
|
|
12278
|
+
t.displayName = "Transition";
|
|
12279
|
+
t.props = TransitionPropsValidators;
|
|
12280
|
+
{
|
|
12281
|
+
t.__isBuiltIn = true;
|
|
12282
|
+
}
|
|
12283
|
+
return t;
|
|
12284
|
+
};
|
|
12285
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
12286
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
12287
|
+
);
|
|
12278
12288
|
const callHook = (hook, args = []) => {
|
|
12279
12289
|
if (isArray(hook)) {
|
|
12280
12290
|
hook.forEach((h2) => h2(...args));
|
|
@@ -13469,7 +13479,14 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13469
13479
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
13470
13480
|
const moveCbKey = Symbol("_moveCb");
|
|
13471
13481
|
const enterCbKey = Symbol("_enterCb");
|
|
13472
|
-
const
|
|
13482
|
+
const decorate = (t) => {
|
|
13483
|
+
delete t.props.mode;
|
|
13484
|
+
{
|
|
13485
|
+
t.__isBuiltIn = true;
|
|
13486
|
+
}
|
|
13487
|
+
return t;
|
|
13488
|
+
};
|
|
13489
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
13473
13490
|
name: "TransitionGroup",
|
|
13474
13491
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
13475
13492
|
tag: String,
|
|
@@ -13561,12 +13578,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13561
13578
|
return createVNode(tag, null, children);
|
|
13562
13579
|
};
|
|
13563
13580
|
}
|
|
13564
|
-
};
|
|
13565
|
-
{
|
|
13566
|
-
TransitionGroupImpl.__isBuiltIn = true;
|
|
13567
|
-
}
|
|
13568
|
-
const removeMode = (props) => delete props.mode;
|
|
13569
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
13581
|
+
});
|
|
13570
13582
|
const TransitionGroup = TransitionGroupImpl;
|
|
13571
13583
|
function callPendingCbs(c) {
|
|
13572
13584
|
const el = c.el;
|
|
@@ -17051,7 +17063,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17051
17063
|
};
|
|
17052
17064
|
}
|
|
17053
17065
|
|
|
17054
|
-
const PURE_ANNOTATION =
|
|
17066
|
+
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
17055
17067
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
17056
17068
|
function createCodegenContext(ast, {
|
|
17057
17069
|
mode = "function",
|