vue 3.4.25 → 3.4.26
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 +36 -42
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +36 -42
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +29 -31
- 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 +29 -31
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +6 -6
package/dist/vue.esm-bundler.js
CHANGED
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -84,10 +84,11 @@ var Vue = (function (exports) {
|
|
|
84
84
|
fns[i](arg);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const def = (obj, key, value) => {
|
|
87
|
+
const def = (obj, key, value, writable = false) => {
|
|
88
88
|
Object.defineProperty(obj, key, {
|
|
89
89
|
configurable: true,
|
|
90
90
|
enumerable: false,
|
|
91
|
+
writable,
|
|
91
92
|
value
|
|
92
93
|
});
|
|
93
94
|
};
|
|
@@ -544,11 +545,10 @@ var Vue = (function (exports) {
|
|
|
544
545
|
}
|
|
545
546
|
}
|
|
546
547
|
stop() {
|
|
547
|
-
var _a;
|
|
548
548
|
if (this.active) {
|
|
549
549
|
preCleanupEffect(this);
|
|
550
550
|
postCleanupEffect(this);
|
|
551
|
-
|
|
551
|
+
this.onStop && this.onStop();
|
|
552
552
|
this.active = false;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
@@ -761,8 +761,8 @@ var Vue = (function (exports) {
|
|
|
761
761
|
resetScheduling();
|
|
762
762
|
}
|
|
763
763
|
function getDepFromReactive(object, key) {
|
|
764
|
-
|
|
765
|
-
return
|
|
764
|
+
const depsMap = targetMap.get(object);
|
|
765
|
+
return depsMap && depsMap.get(key);
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
@@ -2478,7 +2478,7 @@ getter: `, this.getter);
|
|
|
2478
2478
|
true ? {
|
|
2479
2479
|
get attrs() {
|
|
2480
2480
|
markAttrsAccessed();
|
|
2481
|
-
return attrs;
|
|
2481
|
+
return shallowReadonly(attrs);
|
|
2482
2482
|
},
|
|
2483
2483
|
slots,
|
|
2484
2484
|
emit
|
|
@@ -2511,7 +2511,7 @@ getter: `, this.getter);
|
|
|
2511
2511
|
propsOptions
|
|
2512
2512
|
);
|
|
2513
2513
|
}
|
|
2514
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
2514
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
2515
2515
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
2516
2516
|
const allAttrs = Object.keys(attrs);
|
|
2517
2517
|
const eventAttrs = [];
|
|
@@ -2545,7 +2545,7 @@ getter: `, this.getter);
|
|
|
2545
2545
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
2546
2546
|
);
|
|
2547
2547
|
}
|
|
2548
|
-
root = cloneVNode(root);
|
|
2548
|
+
root = cloneVNode(root, null, false, true);
|
|
2549
2549
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
2550
2550
|
}
|
|
2551
2551
|
if (vnode.transition) {
|
|
@@ -3036,7 +3036,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3036
3036
|
let parentSuspenseId;
|
|
3037
3037
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
3038
3038
|
if (isSuspensible) {
|
|
3039
|
-
if (parentSuspense
|
|
3039
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
3040
3040
|
parentSuspenseId = parentSuspense.pendingId;
|
|
3041
3041
|
parentSuspense.deps++;
|
|
3042
3042
|
}
|
|
@@ -3348,8 +3348,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
function isVNodeSuspensible(vnode) {
|
|
3351
|
-
|
|
3352
|
-
return
|
|
3351
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
3352
|
+
return suspensible != null && suspensible !== false;
|
|
3353
3353
|
}
|
|
3354
3354
|
|
|
3355
3355
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -3576,34 +3576,29 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3576
3576
|
return cur;
|
|
3577
3577
|
};
|
|
3578
3578
|
}
|
|
3579
|
-
function traverse(value, depth
|
|
3580
|
-
if (!isObject(value) || value["__v_skip"]) {
|
|
3579
|
+
function traverse(value, depth = Infinity, seen) {
|
|
3580
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
3581
3581
|
return value;
|
|
3582
3582
|
}
|
|
3583
|
-
if (depth && depth > 0) {
|
|
3584
|
-
if (currentDepth >= depth) {
|
|
3585
|
-
return value;
|
|
3586
|
-
}
|
|
3587
|
-
currentDepth++;
|
|
3588
|
-
}
|
|
3589
3583
|
seen = seen || /* @__PURE__ */ new Set();
|
|
3590
3584
|
if (seen.has(value)) {
|
|
3591
3585
|
return value;
|
|
3592
3586
|
}
|
|
3593
3587
|
seen.add(value);
|
|
3588
|
+
depth--;
|
|
3594
3589
|
if (isRef(value)) {
|
|
3595
|
-
traverse(value.value, depth,
|
|
3590
|
+
traverse(value.value, depth, seen);
|
|
3596
3591
|
} else if (isArray(value)) {
|
|
3597
3592
|
for (let i = 0; i < value.length; i++) {
|
|
3598
|
-
traverse(value[i], depth,
|
|
3593
|
+
traverse(value[i], depth, seen);
|
|
3599
3594
|
}
|
|
3600
3595
|
} else if (isSet(value) || isMap(value)) {
|
|
3601
3596
|
value.forEach((v) => {
|
|
3602
|
-
traverse(v, depth,
|
|
3597
|
+
traverse(v, depth, seen);
|
|
3603
3598
|
});
|
|
3604
3599
|
} else if (isPlainObject(value)) {
|
|
3605
3600
|
for (const key in value) {
|
|
3606
|
-
traverse(value[key], depth,
|
|
3601
|
+
traverse(value[key], depth, seen);
|
|
3607
3602
|
}
|
|
3608
3603
|
}
|
|
3609
3604
|
return value;
|
|
@@ -3761,7 +3756,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3761
3756
|
instance
|
|
3762
3757
|
);
|
|
3763
3758
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
3764
|
-
if (mode === "out-in") {
|
|
3759
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
3765
3760
|
state.isLeaving = true;
|
|
3766
3761
|
leavingHooks.afterLeave = () => {
|
|
3767
3762
|
state.isLeaving = false;
|
|
@@ -4276,7 +4271,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4276
4271
|
return () => {
|
|
4277
4272
|
pendingCacheKey = null;
|
|
4278
4273
|
if (!slots.default) {
|
|
4279
|
-
return
|
|
4274
|
+
return null;
|
|
4280
4275
|
}
|
|
4281
4276
|
const children = slots.default();
|
|
4282
4277
|
const rawVNode = children[0];
|
|
@@ -6017,7 +6012,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6017
6012
|
const type = children._;
|
|
6018
6013
|
if (type) {
|
|
6019
6014
|
extend(slots, children);
|
|
6020
|
-
def(slots, "_", type);
|
|
6015
|
+
def(slots, "_", type, true);
|
|
6021
6016
|
} else {
|
|
6022
6017
|
normalizeObjectSlots(children, slots);
|
|
6023
6018
|
}
|
|
@@ -8764,8 +8759,8 @@ Component that was made reactive: `,
|
|
|
8764
8759
|
return null;
|
|
8765
8760
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
8766
8761
|
}
|
|
8767
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
8768
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
8762
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
8763
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
8769
8764
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
8770
8765
|
const cloned = {
|
|
8771
8766
|
__v_isVNode: true,
|
|
@@ -8795,7 +8790,7 @@ Component that was made reactive: `,
|
|
|
8795
8790
|
dynamicChildren: vnode.dynamicChildren,
|
|
8796
8791
|
appContext: vnode.appContext,
|
|
8797
8792
|
dirs: vnode.dirs,
|
|
8798
|
-
transition
|
|
8793
|
+
transition,
|
|
8799
8794
|
// These should technically only be non-null on mounted VNodes. However,
|
|
8800
8795
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
8801
8796
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -8809,6 +8804,9 @@ Component that was made reactive: `,
|
|
|
8809
8804
|
ctx: vnode.ctx,
|
|
8810
8805
|
ce: vnode.ce
|
|
8811
8806
|
};
|
|
8807
|
+
if (transition && cloneTransition) {
|
|
8808
|
+
cloned.transition = transition.clone(cloned);
|
|
8809
|
+
}
|
|
8812
8810
|
return cloned;
|
|
8813
8811
|
}
|
|
8814
8812
|
function deepCloneVNode(vnode) {
|
|
@@ -9616,7 +9614,7 @@ Component that was made reactive: `,
|
|
|
9616
9614
|
return true;
|
|
9617
9615
|
}
|
|
9618
9616
|
|
|
9619
|
-
const version = "3.4.
|
|
9617
|
+
const version = "3.4.26";
|
|
9620
9618
|
const warn = warn$1 ;
|
|
9621
9619
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9622
9620
|
const devtools = devtools$1 ;
|
|
@@ -12636,11 +12634,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12636
12634
|
}
|
|
12637
12635
|
},
|
|
12638
12636
|
onselfclosingtag(end) {
|
|
12639
|
-
var _a;
|
|
12640
12637
|
const name = currentOpenTag.tag;
|
|
12641
12638
|
currentOpenTag.isSelfClosing = true;
|
|
12642
12639
|
endOpenTag(end);
|
|
12643
|
-
if (
|
|
12640
|
+
if (stack[0] && stack[0].tag === name) {
|
|
12644
12641
|
onCloseTag(stack.shift(), end);
|
|
12645
12642
|
}
|
|
12646
12643
|
},
|
|
@@ -12941,16 +12938,15 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
12941
12938
|
currentOpenTag = null;
|
|
12942
12939
|
}
|
|
12943
12940
|
function onText(content, start, end) {
|
|
12944
|
-
var _a;
|
|
12945
12941
|
{
|
|
12946
|
-
const tag =
|
|
12942
|
+
const tag = stack[0] && stack[0].tag;
|
|
12947
12943
|
if (tag !== "script" && tag !== "style" && content.includes("&")) {
|
|
12948
12944
|
content = currentOptions.decodeEntities(content, false);
|
|
12949
12945
|
}
|
|
12950
12946
|
}
|
|
12951
12947
|
const parent = stack[0] || currentRoot;
|
|
12952
12948
|
const lastNode = parent.children[parent.children.length - 1];
|
|
12953
|
-
if (
|
|
12949
|
+
if (lastNode && lastNode.type === 2) {
|
|
12954
12950
|
lastNode.content += content;
|
|
12955
12951
|
setLocEnd(lastNode.loc, end);
|
|
12956
12952
|
} else {
|
|
@@ -13026,11 +13022,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13026
13022
|
return false;
|
|
13027
13023
|
}
|
|
13028
13024
|
function isComponent({ tag, props }) {
|
|
13029
|
-
var _a;
|
|
13030
13025
|
if (currentOptions.isCustomElement(tag)) {
|
|
13031
13026
|
return false;
|
|
13032
13027
|
}
|
|
13033
|
-
if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) ||
|
|
13028
|
+
if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) || currentOptions.isBuiltInComponent && currentOptions.isBuiltInComponent(tag) || currentOptions.isNativeTag && !currentOptions.isNativeTag(tag)) {
|
|
13034
13029
|
return true;
|
|
13035
13030
|
}
|
|
13036
13031
|
for (let i = 0; i < props.length; i++) {
|
|
@@ -13050,7 +13045,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13050
13045
|
}
|
|
13051
13046
|
const windowsNewlineRE = /\r\n/g;
|
|
13052
13047
|
function condenseWhitespace(nodes, tag) {
|
|
13053
|
-
var _a, _b;
|
|
13054
13048
|
const shouldCondense = currentOptions.whitespace !== "preserve";
|
|
13055
13049
|
let removedWhitespace = false;
|
|
13056
13050
|
for (let i = 0; i < nodes.length; i++) {
|
|
@@ -13058,8 +13052,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13058
13052
|
if (node.type === 2) {
|
|
13059
13053
|
if (!inPre) {
|
|
13060
13054
|
if (isAllWhitespace(node.content)) {
|
|
13061
|
-
const prev =
|
|
13062
|
-
const next =
|
|
13055
|
+
const prev = nodes[i - 1] && nodes[i - 1].type;
|
|
13056
|
+
const next = nodes[i + 1] && nodes[i + 1].type;
|
|
13063
13057
|
if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) {
|
|
13064
13058
|
removedWhitespace = true;
|
|
13065
13059
|
nodes[i] = null;
|
|
@@ -13197,7 +13191,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13197
13191
|
}
|
|
13198
13192
|
tokenizer.mode = currentOptions.parseMode === "html" ? 1 : currentOptions.parseMode === "sfc" ? 2 : 0;
|
|
13199
13193
|
tokenizer.inXML = currentOptions.ns === 1 || currentOptions.ns === 2;
|
|
13200
|
-
const delimiters = options
|
|
13194
|
+
const delimiters = options && options.delimiters;
|
|
13201
13195
|
if (delimiters) {
|
|
13202
13196
|
tokenizer.delimiterOpen = toCharCodes(delimiters[0]);
|
|
13203
13197
|
tokenizer.delimiterClose = toCharCodes(delimiters[1]);
|