@vue/compat 3.5.0-beta.3 → 3.5.0-rc.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 +34 -24
- package/dist/vue.cjs.prod.js +33 -23
- package/dist/vue.esm-browser.js +34 -24
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +34 -24
- package/dist/vue.global.js +34 -24
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +33 -23
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +33 -23
- package/dist/vue.runtime.global.js +33 -23
- 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.0-
|
|
2
|
+
* @vue/compat v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -404,12 +404,13 @@ class EffectScope {
|
|
|
404
404
|
pause() {
|
|
405
405
|
if (this._active) {
|
|
406
406
|
this._isPaused = true;
|
|
407
|
+
let i, l;
|
|
407
408
|
if (this.scopes) {
|
|
408
|
-
for (
|
|
409
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
409
410
|
this.scopes[i].pause();
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
|
-
for (
|
|
413
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
413
414
|
this.effects[i].pause();
|
|
414
415
|
}
|
|
415
416
|
}
|
|
@@ -421,12 +422,13 @@ class EffectScope {
|
|
|
421
422
|
if (this._active) {
|
|
422
423
|
if (this._isPaused) {
|
|
423
424
|
this._isPaused = false;
|
|
425
|
+
let i, l;
|
|
424
426
|
if (this.scopes) {
|
|
425
|
-
for (
|
|
427
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
426
428
|
this.scopes[i].resume();
|
|
427
429
|
}
|
|
428
430
|
}
|
|
429
|
-
for (
|
|
431
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
430
432
|
this.effects[i].resume();
|
|
431
433
|
}
|
|
432
434
|
}
|
|
@@ -619,11 +621,9 @@ function startBatch() {
|
|
|
619
621
|
batchDepth++;
|
|
620
622
|
}
|
|
621
623
|
function endBatch() {
|
|
622
|
-
if (batchDepth >
|
|
623
|
-
batchDepth--;
|
|
624
|
+
if (--batchDepth > 0) {
|
|
624
625
|
return;
|
|
625
626
|
}
|
|
626
|
-
batchDepth--;
|
|
627
627
|
let error;
|
|
628
628
|
while (batchedEffect) {
|
|
629
629
|
let e = batchedEffect;
|
|
@@ -1286,7 +1286,12 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
|
|
1289
|
-
const result = Reflect.set(
|
|
1289
|
+
const result = Reflect.set(
|
|
1290
|
+
target,
|
|
1291
|
+
key,
|
|
1292
|
+
value,
|
|
1293
|
+
isRef(target) ? target : receiver
|
|
1294
|
+
);
|
|
1290
1295
|
if (target === toRaw(receiver)) {
|
|
1291
1296
|
if (!hadKey) {
|
|
1292
1297
|
trigger(target, "add", key, value);
|
|
@@ -2105,18 +2110,25 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2105
2110
|
const depth = deep === true ? Infinity : deep;
|
|
2106
2111
|
getter = () => traverse(baseGetter(), depth);
|
|
2107
2112
|
}
|
|
2113
|
+
const scope = getCurrentScope();
|
|
2114
|
+
const watchHandle = () => {
|
|
2115
|
+
effect.stop();
|
|
2116
|
+
if (scope) {
|
|
2117
|
+
remove(scope.effects, effect);
|
|
2118
|
+
}
|
|
2119
|
+
};
|
|
2108
2120
|
if (once) {
|
|
2109
2121
|
if (cb) {
|
|
2110
2122
|
const _cb = cb;
|
|
2111
2123
|
cb = (...args) => {
|
|
2112
2124
|
_cb(...args);
|
|
2113
|
-
|
|
2125
|
+
watchHandle();
|
|
2114
2126
|
};
|
|
2115
2127
|
} else {
|
|
2116
2128
|
const _getter = getter;
|
|
2117
2129
|
getter = () => {
|
|
2118
2130
|
_getter();
|
|
2119
|
-
|
|
2131
|
+
watchHandle();
|
|
2120
2132
|
};
|
|
2121
2133
|
}
|
|
2122
2134
|
}
|
|
@@ -2185,13 +2197,6 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2185
2197
|
} else {
|
|
2186
2198
|
effect.run();
|
|
2187
2199
|
}
|
|
2188
|
-
const scope = getCurrentScope();
|
|
2189
|
-
const watchHandle = () => {
|
|
2190
|
-
effect.stop();
|
|
2191
|
-
if (scope) {
|
|
2192
|
-
remove(scope.effects, effect);
|
|
2193
|
-
}
|
|
2194
|
-
};
|
|
2195
2200
|
watchHandle.pause = effect.pause.bind(effect);
|
|
2196
2201
|
watchHandle.resume = effect.resume.bind(effect);
|
|
2197
2202
|
watchHandle.stop = watchHandle;
|
|
@@ -4180,7 +4185,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
4180
4185
|
// @__NO_SIDE_EFFECTS__
|
|
4181
4186
|
function defineComponent(options, extraOptions) {
|
|
4182
4187
|
return isFunction(options) ? (
|
|
4183
|
-
// #
|
|
4188
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
4184
4189
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
4185
4190
|
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
4186
4191
|
) : options;
|
|
@@ -5318,6 +5323,7 @@ const KeepAliveImpl = {
|
|
|
5318
5323
|
);
|
|
5319
5324
|
const { include, exclude, max } = props;
|
|
5320
5325
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
5326
|
+
vnode.shapeFlag &= ~256;
|
|
5321
5327
|
current = vnode;
|
|
5322
5328
|
return rawVNode;
|
|
5323
5329
|
}
|
|
@@ -7068,7 +7074,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7068
7074
|
return vm;
|
|
7069
7075
|
}
|
|
7070
7076
|
}
|
|
7071
|
-
Vue.version = `2.6.14-compat:${"3.5.0-
|
|
7077
|
+
Vue.version = `2.6.14-compat:${"3.5.0-rc.1"}`;
|
|
7072
7078
|
Vue.config = singletonApp.config;
|
|
7073
7079
|
Vue.use = (plugin, ...options) => {
|
|
7074
7080
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12258,7 +12264,7 @@ function isMemoSame(cached, memo) {
|
|
|
12258
12264
|
return true;
|
|
12259
12265
|
}
|
|
12260
12266
|
|
|
12261
|
-
const version = "3.5.0-
|
|
12267
|
+
const version = "3.5.0-rc.1";
|
|
12262
12268
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12263
12269
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12264
12270
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12957,8 +12963,9 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
12957
12963
|
|
|
12958
12964
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12959
12965
|
if (key === "innerHTML" || key === "textContent") {
|
|
12960
|
-
if (value
|
|
12961
|
-
|
|
12966
|
+
if (value != null) {
|
|
12967
|
+
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
12968
|
+
}
|
|
12962
12969
|
return;
|
|
12963
12970
|
}
|
|
12964
12971
|
const tag = el.tagName;
|
|
@@ -13401,6 +13408,9 @@ class VueElement extends BaseClass {
|
|
|
13401
13408
|
delete this._props[key];
|
|
13402
13409
|
} else {
|
|
13403
13410
|
this._props[key] = val;
|
|
13411
|
+
if (key === "key" && this._app) {
|
|
13412
|
+
this._app._ceVNode.key = val;
|
|
13413
|
+
}
|
|
13404
13414
|
}
|
|
13405
13415
|
if (shouldUpdate && this._instance) {
|
|
13406
13416
|
this._update();
|
|
@@ -17538,7 +17548,7 @@ function genNode(node, context) {
|
|
|
17538
17548
|
break;
|
|
17539
17549
|
case 26:
|
|
17540
17550
|
break;
|
|
17541
|
-
/*
|
|
17551
|
+
/* v8 ignore start */
|
|
17542
17552
|
case 10:
|
|
17543
17553
|
break;
|
|
17544
17554
|
default:
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.0-
|
|
2
|
+
* @vue/compat v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -407,12 +407,13 @@ var Vue = (function () {
|
|
|
407
407
|
pause() {
|
|
408
408
|
if (this._active) {
|
|
409
409
|
this._isPaused = true;
|
|
410
|
+
let i, l;
|
|
410
411
|
if (this.scopes) {
|
|
411
|
-
for (
|
|
412
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
412
413
|
this.scopes[i].pause();
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
|
-
for (
|
|
416
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
416
417
|
this.effects[i].pause();
|
|
417
418
|
}
|
|
418
419
|
}
|
|
@@ -424,12 +425,13 @@ var Vue = (function () {
|
|
|
424
425
|
if (this._active) {
|
|
425
426
|
if (this._isPaused) {
|
|
426
427
|
this._isPaused = false;
|
|
428
|
+
let i, l;
|
|
427
429
|
if (this.scopes) {
|
|
428
|
-
for (
|
|
430
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
429
431
|
this.scopes[i].resume();
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
|
-
for (
|
|
434
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
433
435
|
this.effects[i].resume();
|
|
434
436
|
}
|
|
435
437
|
}
|
|
@@ -622,11 +624,9 @@ var Vue = (function () {
|
|
|
622
624
|
batchDepth++;
|
|
623
625
|
}
|
|
624
626
|
function endBatch() {
|
|
625
|
-
if (batchDepth >
|
|
626
|
-
batchDepth--;
|
|
627
|
+
if (--batchDepth > 0) {
|
|
627
628
|
return;
|
|
628
629
|
}
|
|
629
|
-
batchDepth--;
|
|
630
630
|
let error;
|
|
631
631
|
while (batchedEffect) {
|
|
632
632
|
let e = batchedEffect;
|
|
@@ -1285,7 +1285,12 @@ var Vue = (function () {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
|
|
1288
|
-
const result = Reflect.set(
|
|
1288
|
+
const result = Reflect.set(
|
|
1289
|
+
target,
|
|
1290
|
+
key,
|
|
1291
|
+
value,
|
|
1292
|
+
isRef(target) ? target : receiver
|
|
1293
|
+
);
|
|
1289
1294
|
if (target === toRaw(receiver)) {
|
|
1290
1295
|
if (!hadKey) {
|
|
1291
1296
|
trigger(target, "add", key, value);
|
|
@@ -2098,18 +2103,25 @@ var Vue = (function () {
|
|
|
2098
2103
|
const depth = deep === true ? Infinity : deep;
|
|
2099
2104
|
getter = () => traverse(baseGetter(), depth);
|
|
2100
2105
|
}
|
|
2106
|
+
const scope = getCurrentScope();
|
|
2107
|
+
const watchHandle = () => {
|
|
2108
|
+
effect.stop();
|
|
2109
|
+
if (scope) {
|
|
2110
|
+
remove(scope.effects, effect);
|
|
2111
|
+
}
|
|
2112
|
+
};
|
|
2101
2113
|
if (once) {
|
|
2102
2114
|
if (cb) {
|
|
2103
2115
|
const _cb = cb;
|
|
2104
2116
|
cb = (...args) => {
|
|
2105
2117
|
_cb(...args);
|
|
2106
|
-
|
|
2118
|
+
watchHandle();
|
|
2107
2119
|
};
|
|
2108
2120
|
} else {
|
|
2109
2121
|
const _getter = getter;
|
|
2110
2122
|
getter = () => {
|
|
2111
2123
|
_getter();
|
|
2112
|
-
|
|
2124
|
+
watchHandle();
|
|
2113
2125
|
};
|
|
2114
2126
|
}
|
|
2115
2127
|
}
|
|
@@ -2178,13 +2190,6 @@ var Vue = (function () {
|
|
|
2178
2190
|
} else {
|
|
2179
2191
|
effect.run();
|
|
2180
2192
|
}
|
|
2181
|
-
const scope = getCurrentScope();
|
|
2182
|
-
const watchHandle = () => {
|
|
2183
|
-
effect.stop();
|
|
2184
|
-
if (scope) {
|
|
2185
|
-
remove(scope.effects, effect);
|
|
2186
|
-
}
|
|
2187
|
-
};
|
|
2188
2193
|
watchHandle.pause = effect.pause.bind(effect);
|
|
2189
2194
|
watchHandle.resume = effect.resume.bind(effect);
|
|
2190
2195
|
watchHandle.stop = watchHandle;
|
|
@@ -4164,7 +4169,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4164
4169
|
// @__NO_SIDE_EFFECTS__
|
|
4165
4170
|
function defineComponent(options, extraOptions) {
|
|
4166
4171
|
return isFunction(options) ? (
|
|
4167
|
-
// #
|
|
4172
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
4168
4173
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
4169
4174
|
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
4170
4175
|
) : options;
|
|
@@ -5285,6 +5290,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5285
5290
|
);
|
|
5286
5291
|
const { include, exclude, max } = props;
|
|
5287
5292
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
5293
|
+
vnode.shapeFlag &= ~256;
|
|
5288
5294
|
current = vnode;
|
|
5289
5295
|
return rawVNode;
|
|
5290
5296
|
}
|
|
@@ -7030,7 +7036,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7030
7036
|
return vm;
|
|
7031
7037
|
}
|
|
7032
7038
|
}
|
|
7033
|
-
Vue.version = `2.6.14-compat:${"3.5.0-
|
|
7039
|
+
Vue.version = `2.6.14-compat:${"3.5.0-rc.1"}`;
|
|
7034
7040
|
Vue.config = singletonApp.config;
|
|
7035
7041
|
Vue.use = (plugin, ...options) => {
|
|
7036
7042
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12130,7 +12136,7 @@ Component that was made reactive: `,
|
|
|
12130
12136
|
return true;
|
|
12131
12137
|
}
|
|
12132
12138
|
|
|
12133
|
-
const version = "3.5.0-
|
|
12139
|
+
const version = "3.5.0-rc.1";
|
|
12134
12140
|
const warn = warn$1 ;
|
|
12135
12141
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12136
12142
|
const devtools = devtools$1 ;
|
|
@@ -12812,8 +12818,9 @@ Component that was made reactive: `,
|
|
|
12812
12818
|
|
|
12813
12819
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12814
12820
|
if (key === "innerHTML" || key === "textContent") {
|
|
12815
|
-
if (value
|
|
12816
|
-
|
|
12821
|
+
if (value != null) {
|
|
12822
|
+
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
12823
|
+
}
|
|
12817
12824
|
return;
|
|
12818
12825
|
}
|
|
12819
12826
|
const tag = el.tagName;
|
|
@@ -13256,6 +13263,9 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13256
13263
|
delete this._props[key];
|
|
13257
13264
|
} else {
|
|
13258
13265
|
this._props[key] = val;
|
|
13266
|
+
if (key === "key" && this._app) {
|
|
13267
|
+
this._app._ceVNode.key = val;
|
|
13268
|
+
}
|
|
13259
13269
|
}
|
|
13260
13270
|
if (shouldUpdate && this._instance) {
|
|
13261
13271
|
this._update();
|
|
@@ -17345,7 +17355,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17345
17355
|
break;
|
|
17346
17356
|
case 26:
|
|
17347
17357
|
break;
|
|
17348
|
-
/*
|
|
17358
|
+
/* v8 ignore start */
|
|
17349
17359
|
case 10:
|
|
17350
17360
|
break;
|
|
17351
17361
|
default:
|