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
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.37
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -820,7 +820,7 @@ var Vue = (function (exports) {
|
|
|
820
820
|
return isShallow2;
|
|
821
821
|
} else if (key === "__v_raw") {
|
|
822
822
|
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
823
|
-
// this means the
|
|
823
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
824
824
|
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
825
825
|
return target;
|
|
826
826
|
}
|
|
@@ -2939,7 +2939,7 @@ getter: `, this.getter);
|
|
|
2939
2939
|
}
|
|
2940
2940
|
function pruneCacheEntry(key) {
|
|
2941
2941
|
const cached = cache.get(key);
|
|
2942
|
-
if (!current || !isSameVNodeType(cached, current)) {
|
|
2942
|
+
if (cached && (!current || !isSameVNodeType(cached, current))) {
|
|
2943
2943
|
unmount(cached);
|
|
2944
2944
|
} else if (current) {
|
|
2945
2945
|
resetShapeFlag(current);
|
|
@@ -3001,6 +3001,10 @@ getter: `, this.getter);
|
|
|
3001
3001
|
return rawVNode;
|
|
3002
3002
|
}
|
|
3003
3003
|
let vnode = getInnerChild(rawVNode);
|
|
3004
|
+
if (vnode.type === Comment) {
|
|
3005
|
+
current = null;
|
|
3006
|
+
return vnode;
|
|
3007
|
+
}
|
|
3004
3008
|
const comp = vnode.type;
|
|
3005
3009
|
const name = getComponentName(
|
|
3006
3010
|
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp
|
|
@@ -4293,7 +4297,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
4293
4297
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
4294
4298
|
const instance = currentInstance || currentRenderingInstance;
|
|
4295
4299
|
if (instance || currentApp) {
|
|
4296
|
-
const provides = instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides :
|
|
4300
|
+
const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
4297
4301
|
if (provides && key in provides) {
|
|
4298
4302
|
return provides[key];
|
|
4299
4303
|
} else if (arguments.length > 1) {
|
|
@@ -5487,6 +5491,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5487
5491
|
}
|
|
5488
5492
|
if (props) {
|
|
5489
5493
|
{
|
|
5494
|
+
const isCustomElement = el.tagName.includes("-");
|
|
5490
5495
|
for (const key in props) {
|
|
5491
5496
|
if (// #11189 skip if this node has directives that have created hooks
|
|
5492
5497
|
// as it could have mutated the DOM in any possible way
|
|
@@ -5494,7 +5499,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
5494
5499
|
logMismatchError();
|
|
5495
5500
|
}
|
|
5496
5501
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
5497
|
-
key[0] === ".") {
|
|
5502
|
+
key[0] === "." || isCustomElement) {
|
|
5498
5503
|
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
5499
5504
|
}
|
|
5500
5505
|
}
|
|
@@ -7192,13 +7197,13 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7192
7197
|
namespace
|
|
7193
7198
|
);
|
|
7194
7199
|
}
|
|
7200
|
+
container._vnode = vnode;
|
|
7195
7201
|
if (!isFlushing) {
|
|
7196
7202
|
isFlushing = true;
|
|
7197
7203
|
flushPreFlushCbs();
|
|
7198
7204
|
flushPostFlushCbs();
|
|
7199
7205
|
isFlushing = false;
|
|
7200
7206
|
}
|
|
7201
|
-
container._vnode = vnode;
|
|
7202
7207
|
};
|
|
7203
7208
|
const internals = {
|
|
7204
7209
|
p: patch,
|
|
@@ -7600,7 +7605,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7600
7605
|
return options.get ? options.get(localValue) : localValue;
|
|
7601
7606
|
},
|
|
7602
7607
|
set(value) {
|
|
7603
|
-
|
|
7608
|
+
const emittedValue = options.set ? options.set(value) : value;
|
|
7609
|
+
if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
7604
7610
|
return;
|
|
7605
7611
|
}
|
|
7606
7612
|
const rawProps = i.vnode.props;
|
|
@@ -7609,7 +7615,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7609
7615
|
localValue = value;
|
|
7610
7616
|
trigger();
|
|
7611
7617
|
}
|
|
7612
|
-
const emittedValue = options.set ? options.set(value) : value;
|
|
7613
7618
|
i.emit(`update:${name}`, emittedValue);
|
|
7614
7619
|
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
7615
7620
|
trigger();
|
|
@@ -7647,9 +7652,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7647
7652
|
} = instance;
|
|
7648
7653
|
if (emitsOptions) {
|
|
7649
7654
|
if (!(event in emitsOptions) && true) {
|
|
7650
|
-
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
7655
|
+
if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) {
|
|
7651
7656
|
warn$1(
|
|
7652
|
-
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
|
|
7657
|
+
`Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.`
|
|
7653
7658
|
);
|
|
7654
7659
|
}
|
|
7655
7660
|
} else {
|
|
@@ -9675,7 +9680,7 @@ Component that was made reactive: `,
|
|
|
9675
9680
|
return true;
|
|
9676
9681
|
}
|
|
9677
9682
|
|
|
9678
|
-
const version = "3.4.
|
|
9683
|
+
const version = "3.4.37";
|
|
9679
9684
|
const warn = warn$1 ;
|
|
9680
9685
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9681
9686
|
const devtools = devtools$1 ;
|
|
@@ -10098,8 +10103,10 @@ Component that was made reactive: `,
|
|
|
10098
10103
|
setVarsOnVNode(instance.subTree, vars);
|
|
10099
10104
|
updateTeleports(vars);
|
|
10100
10105
|
};
|
|
10101
|
-
|
|
10106
|
+
onBeforeMount(() => {
|
|
10102
10107
|
watchPostEffect(setVars);
|
|
10108
|
+
});
|
|
10109
|
+
onMounted(() => {
|
|
10103
10110
|
const ob = new MutationObserver(setVars);
|
|
10104
10111
|
ob.observe(instance.subTree.el.parentNode, { childList: true });
|
|
10105
10112
|
onUnmounted(() => ob.disconnect());
|
|
@@ -15268,7 +15275,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15268
15275
|
} else {
|
|
15269
15276
|
exp = isProp.exp;
|
|
15270
15277
|
if (!exp) {
|
|
15271
|
-
exp = createSimpleExpression(`is`, false, isProp.loc);
|
|
15278
|
+
exp = createSimpleExpression(`is`, false, isProp.arg.loc);
|
|
15272
15279
|
}
|
|
15273
15280
|
}
|
|
15274
15281
|
if (exp) {
|