@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
|
@@ -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
|
**/
|
|
@@ -337,12 +337,13 @@ class EffectScope {
|
|
|
337
337
|
pause() {
|
|
338
338
|
if (this._active) {
|
|
339
339
|
this._isPaused = true;
|
|
340
|
+
let i, l;
|
|
340
341
|
if (this.scopes) {
|
|
341
|
-
for (
|
|
342
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
342
343
|
this.scopes[i].pause();
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
|
-
for (
|
|
346
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
346
347
|
this.effects[i].pause();
|
|
347
348
|
}
|
|
348
349
|
}
|
|
@@ -354,12 +355,13 @@ class EffectScope {
|
|
|
354
355
|
if (this._active) {
|
|
355
356
|
if (this._isPaused) {
|
|
356
357
|
this._isPaused = false;
|
|
358
|
+
let i, l;
|
|
357
359
|
if (this.scopes) {
|
|
358
|
-
for (
|
|
360
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
359
361
|
this.scopes[i].resume();
|
|
360
362
|
}
|
|
361
363
|
}
|
|
362
|
-
for (
|
|
364
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
363
365
|
this.effects[i].resume();
|
|
364
366
|
}
|
|
365
367
|
}
|
|
@@ -552,11 +554,9 @@ function startBatch() {
|
|
|
552
554
|
batchDepth++;
|
|
553
555
|
}
|
|
554
556
|
function endBatch() {
|
|
555
|
-
if (batchDepth >
|
|
556
|
-
batchDepth--;
|
|
557
|
+
if (--batchDepth > 0) {
|
|
557
558
|
return;
|
|
558
559
|
}
|
|
559
|
-
batchDepth--;
|
|
560
560
|
let error;
|
|
561
561
|
while (batchedEffect) {
|
|
562
562
|
let e = batchedEffect;
|
|
@@ -1215,7 +1215,12 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
|
|
1218
|
-
const result = Reflect.set(
|
|
1218
|
+
const result = Reflect.set(
|
|
1219
|
+
target,
|
|
1220
|
+
key,
|
|
1221
|
+
value,
|
|
1222
|
+
isRef(target) ? target : receiver
|
|
1223
|
+
);
|
|
1219
1224
|
if (target === toRaw(receiver)) {
|
|
1220
1225
|
if (!hadKey) {
|
|
1221
1226
|
trigger(target, "add", key, value);
|
|
@@ -2028,18 +2033,25 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2028
2033
|
const depth = deep === true ? Infinity : deep;
|
|
2029
2034
|
getter = () => traverse(baseGetter(), depth);
|
|
2030
2035
|
}
|
|
2036
|
+
const scope = getCurrentScope();
|
|
2037
|
+
const watchHandle = () => {
|
|
2038
|
+
effect.stop();
|
|
2039
|
+
if (scope) {
|
|
2040
|
+
remove(scope.effects, effect);
|
|
2041
|
+
}
|
|
2042
|
+
};
|
|
2031
2043
|
if (once) {
|
|
2032
2044
|
if (cb) {
|
|
2033
2045
|
const _cb = cb;
|
|
2034
2046
|
cb = (...args) => {
|
|
2035
2047
|
_cb(...args);
|
|
2036
|
-
|
|
2048
|
+
watchHandle();
|
|
2037
2049
|
};
|
|
2038
2050
|
} else {
|
|
2039
2051
|
const _getter = getter;
|
|
2040
2052
|
getter = () => {
|
|
2041
2053
|
_getter();
|
|
2042
|
-
|
|
2054
|
+
watchHandle();
|
|
2043
2055
|
};
|
|
2044
2056
|
}
|
|
2045
2057
|
}
|
|
@@ -2108,13 +2120,6 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2108
2120
|
} else {
|
|
2109
2121
|
effect.run();
|
|
2110
2122
|
}
|
|
2111
|
-
const scope = getCurrentScope();
|
|
2112
|
-
const watchHandle = () => {
|
|
2113
|
-
effect.stop();
|
|
2114
|
-
if (scope) {
|
|
2115
|
-
remove(scope.effects, effect);
|
|
2116
|
-
}
|
|
2117
|
-
};
|
|
2118
2123
|
watchHandle.pause = effect.pause.bind(effect);
|
|
2119
2124
|
watchHandle.resume = effect.resume.bind(effect);
|
|
2120
2125
|
watchHandle.stop = watchHandle;
|
|
@@ -4094,7 +4099,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
4094
4099
|
// @__NO_SIDE_EFFECTS__
|
|
4095
4100
|
function defineComponent(options, extraOptions) {
|
|
4096
4101
|
return isFunction(options) ? (
|
|
4097
|
-
// #
|
|
4102
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
4098
4103
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
4099
4104
|
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
4100
4105
|
) : options;
|
|
@@ -5221,6 +5226,7 @@ const KeepAliveImpl = {
|
|
|
5221
5226
|
);
|
|
5222
5227
|
const { include, exclude, max } = props;
|
|
5223
5228
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
5229
|
+
vnode.shapeFlag &= ~256;
|
|
5224
5230
|
current = vnode;
|
|
5225
5231
|
return rawVNode;
|
|
5226
5232
|
}
|
|
@@ -6969,7 +6975,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6969
6975
|
return vm;
|
|
6970
6976
|
}
|
|
6971
6977
|
}
|
|
6972
|
-
Vue.version = `2.6.14-compat:${"3.5.0-
|
|
6978
|
+
Vue.version = `2.6.14-compat:${"3.5.0-rc.1"}`;
|
|
6973
6979
|
Vue.config = singletonApp.config;
|
|
6974
6980
|
Vue.use = (plugin, ...options) => {
|
|
6975
6981
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12105,7 +12111,7 @@ function isMemoSame(cached, memo) {
|
|
|
12105
12111
|
return true;
|
|
12106
12112
|
}
|
|
12107
12113
|
|
|
12108
|
-
const version = "3.5.0-
|
|
12114
|
+
const version = "3.5.0-rc.1";
|
|
12109
12115
|
const warn = warn$1 ;
|
|
12110
12116
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12111
12117
|
const devtools = devtools$1 ;
|
|
@@ -12804,8 +12810,9 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
12804
12810
|
|
|
12805
12811
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12806
12812
|
if (key === "innerHTML" || key === "textContent") {
|
|
12807
|
-
if (value
|
|
12808
|
-
|
|
12813
|
+
if (value != null) {
|
|
12814
|
+
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
12815
|
+
}
|
|
12809
12816
|
return;
|
|
12810
12817
|
}
|
|
12811
12818
|
const tag = el.tagName;
|
|
@@ -13248,6 +13255,9 @@ class VueElement extends BaseClass {
|
|
|
13248
13255
|
delete this._props[key];
|
|
13249
13256
|
} else {
|
|
13250
13257
|
this._props[key] = val;
|
|
13258
|
+
if (key === "key" && this._app) {
|
|
13259
|
+
this._app._ceVNode.key = val;
|
|
13260
|
+
}
|
|
13251
13261
|
}
|
|
13252
13262
|
if (shouldUpdate && this._instance) {
|
|
13253
13263
|
this._update();
|