vue 3.5.15 → 3.5.17
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 +30 -19
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +30 -19
- package/dist/vue.global.prod.js +8 -8
- package/dist/vue.runtime.esm-browser.js +18 -7
- 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 +18 -7
- package/dist/vue.runtime.global.prod.js +3 -3
- package/jsx-runtime/index.d.ts +1 -1
- 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.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -126,7 +126,7 @@ const PatchFlagNames = {
|
|
|
126
126
|
[512]: `NEED_PATCH`,
|
|
127
127
|
[1024]: `DYNAMIC_SLOTS`,
|
|
128
128
|
[2048]: `DEV_ROOT_FRAGMENT`,
|
|
129
|
-
[-1]: `
|
|
129
|
+
[-1]: `CACHED`,
|
|
130
130
|
[-2]: `BAIL`
|
|
131
131
|
};
|
|
132
132
|
|
|
@@ -857,6 +857,7 @@ class Link {
|
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
class Dep {
|
|
860
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
860
861
|
constructor(computed) {
|
|
861
862
|
this.computed = computed;
|
|
862
863
|
this.version = 0;
|
|
@@ -877,6 +878,10 @@ class Dep {
|
|
|
877
878
|
* Subscriber counter
|
|
878
879
|
*/
|
|
879
880
|
this.sc = 0;
|
|
881
|
+
/**
|
|
882
|
+
* @internal
|
|
883
|
+
*/
|
|
884
|
+
this.__v_skip = true;
|
|
880
885
|
{
|
|
881
886
|
this.subsHead = void 0;
|
|
882
887
|
}
|
|
@@ -4480,7 +4485,7 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4480
4485
|
if (allowedType === 0 /* TEXT */ && list.includes("children")) {
|
|
4481
4486
|
return true;
|
|
4482
4487
|
}
|
|
4483
|
-
return
|
|
4488
|
+
return list.includes(MismatchTypeString[allowedType]);
|
|
4484
4489
|
}
|
|
4485
4490
|
}
|
|
4486
4491
|
|
|
@@ -6727,6 +6732,8 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
6727
6732
|
const initSlots = (instance, children, optimized) => {
|
|
6728
6733
|
const slots = instance.slots = createInternalObject();
|
|
6729
6734
|
if (instance.vnode.shapeFlag & 32) {
|
|
6735
|
+
const cacheIndexes = children.__;
|
|
6736
|
+
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
6730
6737
|
const type = children._;
|
|
6731
6738
|
if (type) {
|
|
6732
6739
|
assignSlots(slots, children, optimized);
|
|
@@ -6938,6 +6945,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6938
6945
|
}
|
|
6939
6946
|
if (ref != null && parentComponent) {
|
|
6940
6947
|
setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
6948
|
+
} else if (ref == null && n1 && n1.ref != null) {
|
|
6949
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
6941
6950
|
}
|
|
6942
6951
|
};
|
|
6943
6952
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -7497,7 +7506,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7497
7506
|
hydrateSubTree();
|
|
7498
7507
|
}
|
|
7499
7508
|
} else {
|
|
7500
|
-
if (root.ce
|
|
7509
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
7510
|
+
root.ce._def.shadowRoot !== false) {
|
|
7501
7511
|
root.ce._injectChildStyle(type);
|
|
7502
7512
|
}
|
|
7503
7513
|
{
|
|
@@ -10595,7 +10605,7 @@ function isMemoSame(cached, memo) {
|
|
|
10595
10605
|
return true;
|
|
10596
10606
|
}
|
|
10597
10607
|
|
|
10598
|
-
const version = "3.5.
|
|
10608
|
+
const version = "3.5.17";
|
|
10599
10609
|
const warn = warn$1 ;
|
|
10600
10610
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10601
10611
|
const devtools = devtools$1 ;
|
|
@@ -11598,9 +11608,10 @@ class VueElement extends BaseClass {
|
|
|
11598
11608
|
};
|
|
11599
11609
|
const asyncDef = this._def.__asyncLoader;
|
|
11600
11610
|
if (asyncDef) {
|
|
11601
|
-
this._pendingResolve = asyncDef().then(
|
|
11602
|
-
|
|
11603
|
-
|
|
11611
|
+
this._pendingResolve = asyncDef().then((def) => {
|
|
11612
|
+
def.configureApp = this._def.configureApp;
|
|
11613
|
+
resolve(this._def = def, true);
|
|
11614
|
+
});
|
|
11604
11615
|
} else {
|
|
11605
11616
|
resolve(this._def);
|
|
11606
11617
|
}
|
|
@@ -13546,7 +13557,7 @@ class Tokenizer {
|
|
|
13546
13557
|
this.buffer = input;
|
|
13547
13558
|
while (this.index < this.buffer.length) {
|
|
13548
13559
|
const c = this.buffer.charCodeAt(this.index);
|
|
13549
|
-
if (c === 10) {
|
|
13560
|
+
if (c === 10 && this.state !== 33) {
|
|
13550
13561
|
this.newlines.push(this.index);
|
|
13551
13562
|
}
|
|
13552
13563
|
switch (this.state) {
|
|
@@ -14551,7 +14562,7 @@ function isUpperCase(c) {
|
|
|
14551
14562
|
return c > 64 && c < 91;
|
|
14552
14563
|
}
|
|
14553
14564
|
const windowsNewlineRE = /\r\n/g;
|
|
14554
|
-
function condenseWhitespace(nodes
|
|
14565
|
+
function condenseWhitespace(nodes) {
|
|
14555
14566
|
const shouldCondense = currentOptions.whitespace !== "preserve";
|
|
14556
14567
|
let removedWhitespace = false;
|
|
14557
14568
|
for (let i = 0; i < nodes.length; i++) {
|
|
@@ -14715,12 +14726,12 @@ function cacheStatic(root, context) {
|
|
|
14715
14726
|
context,
|
|
14716
14727
|
// Root node is unfortunately non-hoistable due to potential parent
|
|
14717
14728
|
// fallthrough attributes.
|
|
14718
|
-
|
|
14729
|
+
!!getSingleElementRoot(root)
|
|
14719
14730
|
);
|
|
14720
14731
|
}
|
|
14721
|
-
function
|
|
14722
|
-
const
|
|
14723
|
-
return children.length === 1 &&
|
|
14732
|
+
function getSingleElementRoot(root) {
|
|
14733
|
+
const children = root.children.filter((x) => x.type !== 3);
|
|
14734
|
+
return children.length === 1 && children[0].type === 1 && !isSlotOutlet(children[0]) ? children[0] : null;
|
|
14724
14735
|
}
|
|
14725
14736
|
function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
14726
14737
|
const { children } = node;
|
|
@@ -15180,15 +15191,15 @@ function createRootCodegen(root, context) {
|
|
|
15180
15191
|
const { helper } = context;
|
|
15181
15192
|
const { children } = root;
|
|
15182
15193
|
if (children.length === 1) {
|
|
15183
|
-
const
|
|
15184
|
-
if (
|
|
15185
|
-
const codegenNode =
|
|
15194
|
+
const singleElementRootChild = getSingleElementRoot(root);
|
|
15195
|
+
if (singleElementRootChild && singleElementRootChild.codegenNode) {
|
|
15196
|
+
const codegenNode = singleElementRootChild.codegenNode;
|
|
15186
15197
|
if (codegenNode.type === 13) {
|
|
15187
15198
|
convertToBlock(codegenNode, context);
|
|
15188
15199
|
}
|
|
15189
15200
|
root.codegenNode = codegenNode;
|
|
15190
15201
|
} else {
|
|
15191
|
-
root.codegenNode =
|
|
15202
|
+
root.codegenNode = children[0];
|
|
15192
15203
|
}
|
|
15193
15204
|
} else if (children.length > 1) {
|
|
15194
15205
|
let patchFlag = 64;
|
|
@@ -16535,7 +16546,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
16535
16546
|
let prev;
|
|
16536
16547
|
while (j--) {
|
|
16537
16548
|
prev = children[j];
|
|
16538
|
-
if (prev.type !== 3) {
|
|
16549
|
+
if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
|
|
16539
16550
|
break;
|
|
16540
16551
|
}
|
|
16541
16552
|
}
|