vue 3.4.35 → 3.4.37
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/README.md +4 -1
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +20 -13
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +20 -13
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +19 -12
- 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 +19 -12
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.37
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -753,7 +753,7 @@ var Vue = (function (exports) {
|
|
|
753
753
|
return isShallow2;
|
|
754
754
|
} else if (key === "__v_raw") {
|
|
755
755
|
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
756
|
-
// this means the
|
|
756
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
757
757
|
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
758
758
|
return target;
|
|
759
759
|
}
|
|
@@ -2872,7 +2872,7 @@ getter: `, this.getter);
|
|
|
2872
2872
|
}
|
|
2873
2873
|
function pruneCacheEntry(key) {
|
|
2874
2874
|
const cached = cache.get(key);
|
|
2875
|
-
if (!current || !isSameVNodeType(cached, current)) {
|
|
2875
|
+
if (cached && (!current || !isSameVNodeType(cached, current))) {
|
|
2876
2876
|
unmount(cached);
|
|
2877
2877
|
} else if (current) {
|
|
2878
2878
|
resetShapeFlag(current);
|
|
@@ -2934,6 +2934,10 @@ getter: `, this.getter);
|
|
|
2934
2934
|
return rawVNode;
|
|
2935
2935
|
}
|
|
2936
2936
|
let vnode = getInnerChild(rawVNode);
|
|
2937
|
+
if (vnode.type === Comment) {
|
|
2938
|
+
current = null;
|
|
2939
|
+
return vnode;
|
|
2940
|
+
}
|
|
2937
2941
|
const comp = vnode.type;
|
|
2938
2942
|
const name = getComponentName(
|
|
2939
2943
|
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp
|
|
@@ -4226,7 +4230,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
4226
4230
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
4227
4231
|
const instance = currentInstance || currentRenderingInstance;
|
|
4228
4232
|
if (instance || currentApp) {
|
|
4229
|
-
const provides = instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides :
|
|
4233
|
+
const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
4230
4234
|
if (provides && key in provides) {
|
|
4231
4235
|
return provides[key];
|
|
4232
4236
|
} else if (arguments.length > 1) {
|
|
@@ -5420,6 +5424,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5420
5424
|
}
|
|
5421
5425
|
if (props) {
|
|
5422
5426
|
{
|
|
5427
|
+
const isCustomElement = el.tagName.includes("-");
|
|
5423
5428
|
for (const key in props) {
|
|
5424
5429
|
if (// #11189 skip if this node has directives that have created hooks
|
|
5425
5430
|
// as it could have mutated the DOM in any possible way
|
|
@@ -5427,7 +5432,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5427
5432
|
logMismatchError();
|
|
5428
5433
|
}
|
|
5429
5434
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
5430
|
-
key[0] === ".") {
|
|
5435
|
+
key[0] === "." || isCustomElement) {
|
|
5431
5436
|
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
5432
5437
|
}
|
|
5433
5438
|
}
|
|
@@ -7125,13 +7130,13 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7125
7130
|
namespace
|
|
7126
7131
|
);
|
|
7127
7132
|
}
|
|
7133
|
+
container._vnode = vnode;
|
|
7128
7134
|
if (!isFlushing) {
|
|
7129
7135
|
isFlushing = true;
|
|
7130
7136
|
flushPreFlushCbs();
|
|
7131
7137
|
flushPostFlushCbs();
|
|
7132
7138
|
isFlushing = false;
|
|
7133
7139
|
}
|
|
7134
|
-
container._vnode = vnode;
|
|
7135
7140
|
};
|
|
7136
7141
|
const internals = {
|
|
7137
7142
|
p: patch,
|
|
@@ -7533,7 +7538,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7533
7538
|
return options.get ? options.get(localValue) : localValue;
|
|
7534
7539
|
},
|
|
7535
7540
|
set(value) {
|
|
7536
|
-
|
|
7541
|
+
const emittedValue = options.set ? options.set(value) : value;
|
|
7542
|
+
if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
7537
7543
|
return;
|
|
7538
7544
|
}
|
|
7539
7545
|
const rawProps = i.vnode.props;
|
|
@@ -7542,7 +7548,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7542
7548
|
localValue = value;
|
|
7543
7549
|
trigger();
|
|
7544
7550
|
}
|
|
7545
|
-
const emittedValue = options.set ? options.set(value) : value;
|
|
7546
7551
|
i.emit(`update:${name}`, emittedValue);
|
|
7547
7552
|
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
7548
7553
|
trigger();
|
|
@@ -7580,9 +7585,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7580
7585
|
} = instance;
|
|
7581
7586
|
if (emitsOptions) {
|
|
7582
7587
|
if (!(event in emitsOptions) && true) {
|
|
7583
|
-
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
7588
|
+
if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) {
|
|
7584
7589
|
warn$1(
|
|
7585
|
-
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
|
|
7590
|
+
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.`
|
|
7586
7591
|
);
|
|
7587
7592
|
}
|
|
7588
7593
|
} else {
|
|
@@ -9608,7 +9613,7 @@ Component that was made reactive: `,
|
|
|
9608
9613
|
return true;
|
|
9609
9614
|
}
|
|
9610
9615
|
|
|
9611
|
-
const version = "3.4.
|
|
9616
|
+
const version = "3.4.37";
|
|
9612
9617
|
const warn = warn$1 ;
|
|
9613
9618
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9614
9619
|
const devtools = devtools$1 ;
|
|
@@ -10031,8 +10036,10 @@ Component that was made reactive: `,
|
|
|
10031
10036
|
setVarsOnVNode(instance.subTree, vars);
|
|
10032
10037
|
updateTeleports(vars);
|
|
10033
10038
|
};
|
|
10034
|
-
|
|
10039
|
+
onBeforeMount(() => {
|
|
10035
10040
|
watchPostEffect(setVars);
|
|
10041
|
+
});
|
|
10042
|
+
onMounted(() => {
|
|
10036
10043
|
const ob = new MutationObserver(setVars);
|
|
10037
10044
|
ob.observe(instance.subTree.el.parentNode, { childList: true });
|
|
10038
10045
|
onUnmounted(() => ob.disconnect());
|