vue 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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +33 -23
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +33 -23
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +32 -22
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +32 -22
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.5.0-
|
|
2
|
+
* vue 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;
|
|
@@ -1282,7 +1282,12 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
|
|
1285
|
-
const result = Reflect.set(
|
|
1285
|
+
const result = Reflect.set(
|
|
1286
|
+
target,
|
|
1287
|
+
key,
|
|
1288
|
+
value,
|
|
1289
|
+
isRef(target) ? target : receiver
|
|
1290
|
+
);
|
|
1286
1291
|
if (target === toRaw(receiver)) {
|
|
1287
1292
|
if (!hadKey) {
|
|
1288
1293
|
trigger(target, "add", key, value);
|
|
@@ -2095,18 +2100,25 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2095
2100
|
const depth = deep === true ? Infinity : deep;
|
|
2096
2101
|
getter = () => traverse(baseGetter(), depth);
|
|
2097
2102
|
}
|
|
2103
|
+
const scope = getCurrentScope();
|
|
2104
|
+
const watchHandle = () => {
|
|
2105
|
+
effect.stop();
|
|
2106
|
+
if (scope) {
|
|
2107
|
+
remove(scope.effects, effect);
|
|
2108
|
+
}
|
|
2109
|
+
};
|
|
2098
2110
|
if (once) {
|
|
2099
2111
|
if (cb) {
|
|
2100
2112
|
const _cb = cb;
|
|
2101
2113
|
cb = (...args) => {
|
|
2102
2114
|
_cb(...args);
|
|
2103
|
-
|
|
2115
|
+
watchHandle();
|
|
2104
2116
|
};
|
|
2105
2117
|
} else {
|
|
2106
2118
|
const _getter = getter;
|
|
2107
2119
|
getter = () => {
|
|
2108
2120
|
_getter();
|
|
2109
|
-
|
|
2121
|
+
watchHandle();
|
|
2110
2122
|
};
|
|
2111
2123
|
}
|
|
2112
2124
|
}
|
|
@@ -2175,13 +2187,6 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2175
2187
|
} else {
|
|
2176
2188
|
effect.run();
|
|
2177
2189
|
}
|
|
2178
|
-
const scope = getCurrentScope();
|
|
2179
|
-
const watchHandle = () => {
|
|
2180
|
-
effect.stop();
|
|
2181
|
-
if (scope) {
|
|
2182
|
-
remove(scope.effects, effect);
|
|
2183
|
-
}
|
|
2184
|
-
};
|
|
2185
2190
|
watchHandle.pause = effect.pause.bind(effect);
|
|
2186
2191
|
watchHandle.resume = effect.resume.bind(effect);
|
|
2187
2192
|
watchHandle.stop = watchHandle;
|
|
@@ -3630,7 +3635,7 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
3630
3635
|
// @__NO_SIDE_EFFECTS__
|
|
3631
3636
|
function defineComponent(options, extraOptions) {
|
|
3632
3637
|
return isFunction(options) ? (
|
|
3633
|
-
// #
|
|
3638
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
3634
3639
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
3635
3640
|
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
3636
3641
|
) : options;
|
|
@@ -4757,6 +4762,7 @@ const KeepAliveImpl = {
|
|
|
4757
4762
|
);
|
|
4758
4763
|
const { include, exclude, max } = props;
|
|
4759
4764
|
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
4765
|
+
vnode.shapeFlag &= ~256;
|
|
4760
4766
|
current = vnode;
|
|
4761
4767
|
return rawVNode;
|
|
4762
4768
|
}
|
|
@@ -10411,7 +10417,7 @@ function isMemoSame(cached, memo) {
|
|
|
10411
10417
|
return true;
|
|
10412
10418
|
}
|
|
10413
10419
|
|
|
10414
|
-
const version = "3.5.0-
|
|
10420
|
+
const version = "3.5.0-rc.1";
|
|
10415
10421
|
const warn = warn$1 ;
|
|
10416
10422
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10417
10423
|
const devtools = devtools$1 ;
|
|
@@ -11038,8 +11044,9 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
11038
11044
|
|
|
11039
11045
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
11040
11046
|
if (key === "innerHTML" || key === "textContent") {
|
|
11041
|
-
if (value
|
|
11042
|
-
|
|
11047
|
+
if (value != null) {
|
|
11048
|
+
el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
|
|
11049
|
+
}
|
|
11043
11050
|
return;
|
|
11044
11051
|
}
|
|
11045
11052
|
const tag = el.tagName;
|
|
@@ -11466,6 +11473,9 @@ class VueElement extends BaseClass {
|
|
|
11466
11473
|
delete this._props[key];
|
|
11467
11474
|
} else {
|
|
11468
11475
|
this._props[key] = val;
|
|
11476
|
+
if (key === "key" && this._app) {
|
|
11477
|
+
this._app._ceVNode.key = val;
|
|
11478
|
+
}
|
|
11469
11479
|
}
|
|
11470
11480
|
if (shouldUpdate && this._instance) {
|
|
11471
11481
|
this._update();
|
|
@@ -15372,7 +15382,7 @@ function genNode(node, context) {
|
|
|
15372
15382
|
break;
|
|
15373
15383
|
case 26:
|
|
15374
15384
|
break;
|
|
15375
|
-
/*
|
|
15385
|
+
/* v8 ignore start */
|
|
15376
15386
|
case 10:
|
|
15377
15387
|
break;
|
|
15378
15388
|
default:
|