vue 3.4.36 → 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 +18 -12
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +18 -12
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +17 -11
- 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 +17 -11
- 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) {
|
|
@@ -7193,13 +7197,13 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7193
7197
|
namespace
|
|
7194
7198
|
);
|
|
7195
7199
|
}
|
|
7200
|
+
container._vnode = vnode;
|
|
7196
7201
|
if (!isFlushing) {
|
|
7197
7202
|
isFlushing = true;
|
|
7198
7203
|
flushPreFlushCbs();
|
|
7199
7204
|
flushPostFlushCbs();
|
|
7200
7205
|
isFlushing = false;
|
|
7201
7206
|
}
|
|
7202
|
-
container._vnode = vnode;
|
|
7203
7207
|
};
|
|
7204
7208
|
const internals = {
|
|
7205
7209
|
p: patch,
|
|
@@ -7601,7 +7605,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7601
7605
|
return options.get ? options.get(localValue) : localValue;
|
|
7602
7606
|
},
|
|
7603
7607
|
set(value) {
|
|
7604
|
-
|
|
7608
|
+
const emittedValue = options.set ? options.set(value) : value;
|
|
7609
|
+
if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
7605
7610
|
return;
|
|
7606
7611
|
}
|
|
7607
7612
|
const rawProps = i.vnode.props;
|
|
@@ -7610,7 +7615,6 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7610
7615
|
localValue = value;
|
|
7611
7616
|
trigger();
|
|
7612
7617
|
}
|
|
7613
|
-
const emittedValue = options.set ? options.set(value) : value;
|
|
7614
7618
|
i.emit(`update:${name}`, emittedValue);
|
|
7615
7619
|
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
7616
7620
|
trigger();
|
|
@@ -7648,9 +7652,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
7648
7652
|
} = instance;
|
|
7649
7653
|
if (emitsOptions) {
|
|
7650
7654
|
if (!(event in emitsOptions) && true) {
|
|
7651
|
-
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
7655
|
+
if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) {
|
|
7652
7656
|
warn$1(
|
|
7653
|
-
`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.`
|
|
7654
7658
|
);
|
|
7655
7659
|
}
|
|
7656
7660
|
} else {
|
|
@@ -9676,7 +9680,7 @@ Component that was made reactive: `,
|
|
|
9676
9680
|
return true;
|
|
9677
9681
|
}
|
|
9678
9682
|
|
|
9679
|
-
const version = "3.4.
|
|
9683
|
+
const version = "3.4.37";
|
|
9680
9684
|
const warn = warn$1 ;
|
|
9681
9685
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9682
9686
|
const devtools = devtools$1 ;
|
|
@@ -10099,8 +10103,10 @@ Component that was made reactive: `,
|
|
|
10099
10103
|
setVarsOnVNode(instance.subTree, vars);
|
|
10100
10104
|
updateTeleports(vars);
|
|
10101
10105
|
};
|
|
10102
|
-
|
|
10106
|
+
onBeforeMount(() => {
|
|
10103
10107
|
watchPostEffect(setVars);
|
|
10108
|
+
});
|
|
10109
|
+
onMounted(() => {
|
|
10104
10110
|
const ob = new MutationObserver(setVars);
|
|
10105
10111
|
ob.observe(instance.subTree.el.parentNode, { childList: true });
|
|
10106
10112
|
onUnmounted(() => ob.disconnect());
|
|
@@ -15269,7 +15275,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15269
15275
|
} else {
|
|
15270
15276
|
exp = isProp.exp;
|
|
15271
15277
|
if (!exp) {
|
|
15272
|
-
exp = createSimpleExpression(`is`, false, isProp.loc);
|
|
15278
|
+
exp = createSimpleExpression(`is`, false, isProp.arg.loc);
|
|
15273
15279
|
}
|
|
15274
15280
|
}
|
|
15275
15281
|
if (exp) {
|