vue 3.5.34 → 3.5.35
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 +70 -55
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +70 -55
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +69 -54
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +69 -54
- package/dist/vue.runtime.global.prod.js +3 -3
- 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.
|
|
2
|
+
* vue v3.5.35
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1745,9 +1745,6 @@ function targetTypeMap(rawType) {
|
|
|
1745
1745
|
return 0 /* INVALID */;
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
function getTargetType(value) {
|
|
1749
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1750
|
-
}
|
|
1751
1748
|
// @__NO_SIDE_EFFECTS__
|
|
1752
1749
|
function reactive(target) {
|
|
1753
1750
|
if (/* @__PURE__ */ isReadonly(target)) {
|
|
@@ -1805,14 +1802,17 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1805
1802
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1806
1803
|
return target;
|
|
1807
1804
|
}
|
|
1808
|
-
|
|
1809
|
-
if (targetType === 0 /* INVALID */) {
|
|
1805
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) {
|
|
1810
1806
|
return target;
|
|
1811
1807
|
}
|
|
1812
1808
|
const existingProxy = proxyMap.get(target);
|
|
1813
1809
|
if (existingProxy) {
|
|
1814
1810
|
return existingProxy;
|
|
1815
1811
|
}
|
|
1812
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1813
|
+
if (targetType === 0 /* INVALID */) {
|
|
1814
|
+
return target;
|
|
1815
|
+
}
|
|
1816
1816
|
const proxy = new Proxy(
|
|
1817
1817
|
target,
|
|
1818
1818
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -3495,19 +3495,18 @@ const TeleportImpl = {
|
|
|
3495
3495
|
target,
|
|
3496
3496
|
props
|
|
3497
3497
|
} = vnode;
|
|
3498
|
-
|
|
3498
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3499
3499
|
const pendingMount = pendingMounts.get(vnode);
|
|
3500
3500
|
if (pendingMount) {
|
|
3501
3501
|
pendingMount.flags |= 8;
|
|
3502
3502
|
pendingMounts.delete(vnode);
|
|
3503
|
-
shouldRemove = false;
|
|
3504
3503
|
}
|
|
3505
3504
|
if (target) {
|
|
3506
3505
|
hostRemove(targetStart);
|
|
3507
3506
|
hostRemove(targetAnchor);
|
|
3508
3507
|
}
|
|
3509
3508
|
doRemove && hostRemove(anchor);
|
|
3510
|
-
if (shapeFlag & 16) {
|
|
3509
|
+
if (!pendingMount && shapeFlag & 16) {
|
|
3511
3510
|
for (let i = 0; i < children.length; i++) {
|
|
3512
3511
|
const child = children[i];
|
|
3513
3512
|
unmount(
|
|
@@ -4475,20 +4474,16 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4475
4474
|
slotScopeIds,
|
|
4476
4475
|
optimized
|
|
4477
4476
|
);
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
`Hydration children mismatch on`,
|
|
4484
|
-
el,
|
|
4485
|
-
`
|
|
4477
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
4478
|
+
warn$1(
|
|
4479
|
+
`Hydration children mismatch on`,
|
|
4480
|
+
el,
|
|
4481
|
+
`
|
|
4486
4482
|
Server rendered element contains more child nodes than client vdom.`
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
}
|
|
4483
|
+
);
|
|
4484
|
+
logMismatchError();
|
|
4485
|
+
}
|
|
4486
|
+
while (next) {
|
|
4492
4487
|
const cur = next;
|
|
4493
4488
|
next = next.nextSibling;
|
|
4494
4489
|
remove(cur);
|
|
@@ -4551,7 +4546,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4551
4546
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
4552
4547
|
const children = parentVNode.children;
|
|
4553
4548
|
const l = children.length;
|
|
4554
|
-
let
|
|
4549
|
+
let hasCheckedMismatch = false;
|
|
4555
4550
|
for (let i = 0; i < l; i++) {
|
|
4556
4551
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
4557
4552
|
const isText = vnode.type === Text;
|
|
@@ -4579,17 +4574,17 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4579
4574
|
} else if (isText && !vnode.children) {
|
|
4580
4575
|
insert(vnode.el = createText(""), container);
|
|
4581
4576
|
} else {
|
|
4582
|
-
if (!
|
|
4583
|
-
|
|
4577
|
+
if (!hasCheckedMismatch) {
|
|
4578
|
+
hasCheckedMismatch = true;
|
|
4579
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
4584
4580
|
warn$1(
|
|
4585
4581
|
`Hydration children mismatch on`,
|
|
4586
4582
|
container,
|
|
4587
4583
|
`
|
|
4588
4584
|
Server rendered element contains fewer child nodes than client vdom.`
|
|
4589
4585
|
);
|
|
4590
|
-
|
|
4586
|
+
logMismatchError();
|
|
4591
4587
|
}
|
|
4592
|
-
logMismatchError();
|
|
4593
4588
|
}
|
|
4594
4589
|
patch(
|
|
4595
4590
|
null,
|
|
@@ -8871,9 +8866,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8871
8866
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
8872
8867
|
if (needTransition2) {
|
|
8873
8868
|
if (moveType === 0) {
|
|
8874
|
-
transition.
|
|
8875
|
-
|
|
8876
|
-
|
|
8869
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
8870
|
+
hostInsert(el, container, anchor);
|
|
8871
|
+
} else {
|
|
8872
|
+
transition.beforeEnter(el);
|
|
8873
|
+
hostInsert(el, container, anchor);
|
|
8874
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
8875
|
+
}
|
|
8877
8876
|
} else {
|
|
8878
8877
|
const { leave, delayLeave, afterLeave } = transition;
|
|
8879
8878
|
const remove2 = () => {
|
|
@@ -8884,16 +8883,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8884
8883
|
}
|
|
8885
8884
|
};
|
|
8886
8885
|
const performLeave = () => {
|
|
8886
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
8887
8887
|
if (el._isLeaving) {
|
|
8888
8888
|
el[leaveCbKey](
|
|
8889
8889
|
true
|
|
8890
8890
|
/* cancelled */
|
|
8891
8891
|
);
|
|
8892
8892
|
}
|
|
8893
|
-
|
|
8893
|
+
if (transition.persisted && !wasLeaving) {
|
|
8894
8894
|
remove2();
|
|
8895
|
-
|
|
8896
|
-
|
|
8895
|
+
} else {
|
|
8896
|
+
leave(el, () => {
|
|
8897
|
+
remove2();
|
|
8898
|
+
afterLeave && afterLeave();
|
|
8899
|
+
});
|
|
8900
|
+
}
|
|
8897
8901
|
};
|
|
8898
8902
|
if (delayLeave) {
|
|
8899
8903
|
delayLeave(el, remove2, performLeave);
|
|
@@ -10900,7 +10904,7 @@ function isMemoSame(cached, memo) {
|
|
|
10900
10904
|
return true;
|
|
10901
10905
|
}
|
|
10902
10906
|
|
|
10903
|
-
const version = "3.5.
|
|
10907
|
+
const version = "3.5.35";
|
|
10904
10908
|
const warn = warn$1 ;
|
|
10905
10909
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10906
10910
|
const devtools = devtools$1 ;
|
|
@@ -11657,12 +11661,37 @@ function createInvoker(initialValue, instance) {
|
|
|
11657
11661
|
} else if (e._vts <= invoker.attached) {
|
|
11658
11662
|
return;
|
|
11659
11663
|
}
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11664
|
+
const value = invoker.value;
|
|
11665
|
+
if (isArray(value)) {
|
|
11666
|
+
const originalStop = e.stopImmediatePropagation;
|
|
11667
|
+
e.stopImmediatePropagation = () => {
|
|
11668
|
+
originalStop.call(e);
|
|
11669
|
+
e._stopped = true;
|
|
11670
|
+
};
|
|
11671
|
+
const handlers = value.slice();
|
|
11672
|
+
const args = [e];
|
|
11673
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
11674
|
+
if (e._stopped) {
|
|
11675
|
+
break;
|
|
11676
|
+
}
|
|
11677
|
+
const handler = handlers[i];
|
|
11678
|
+
if (handler) {
|
|
11679
|
+
callWithAsyncErrorHandling(
|
|
11680
|
+
handler,
|
|
11681
|
+
instance,
|
|
11682
|
+
5,
|
|
11683
|
+
args
|
|
11684
|
+
);
|
|
11685
|
+
}
|
|
11686
|
+
}
|
|
11687
|
+
} else {
|
|
11688
|
+
callWithAsyncErrorHandling(
|
|
11689
|
+
value,
|
|
11690
|
+
instance,
|
|
11691
|
+
5,
|
|
11692
|
+
[e]
|
|
11693
|
+
);
|
|
11694
|
+
}
|
|
11666
11695
|
};
|
|
11667
11696
|
invoker.value = initialValue;
|
|
11668
11697
|
invoker.attached = getNow();
|
|
@@ -11678,20 +11707,6 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11678
11707
|
);
|
|
11679
11708
|
return NOOP;
|
|
11680
11709
|
}
|
|
11681
|
-
function patchStopImmediatePropagation(e, value) {
|
|
11682
|
-
if (isArray(value)) {
|
|
11683
|
-
const originalStop = e.stopImmediatePropagation;
|
|
11684
|
-
e.stopImmediatePropagation = () => {
|
|
11685
|
-
originalStop.call(e);
|
|
11686
|
-
e._stopped = true;
|
|
11687
|
-
};
|
|
11688
|
-
return value.map(
|
|
11689
|
-
(fn) => (e2) => !e2._stopped && fn && fn(e2)
|
|
11690
|
-
);
|
|
11691
|
-
} else {
|
|
11692
|
-
return value;
|
|
11693
|
-
}
|
|
11694
|
-
}
|
|
11695
11710
|
|
|
11696
11711
|
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
11697
11712
|
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
@@ -16624,7 +16639,7 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
16624
16639
|
const keyProp = findProp(node, `key`, false, true);
|
|
16625
16640
|
keyProp && keyProp.type === 7;
|
|
16626
16641
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
16627
|
-
const keyProperty =
|
|
16642
|
+
const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
16628
16643
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
|
16629
16644
|
const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
|
|
16630
16645
|
forNode.codegenNode = createVNodeCall(
|