vue 3.4.6 → 3.4.8
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 +5 -0
- package/dist/vue.cjs.prod.js +5 -0
- package/dist/vue.esm-browser.js +47 -61
- package/dist/vue.esm-browser.prod.js +8 -3
- package/dist/vue.esm-bundler.js +5 -0
- package/dist/vue.global.js +47 -61
- package/dist/vue.global.prod.js +8 -3
- package/dist/vue.runtime.esm-browser.js +46 -59
- package/dist/vue.runtime.esm-browser.prod.js +7 -2
- package/dist/vue.runtime.esm-bundler.js +5 -0
- package/dist/vue.runtime.global.js +46 -59
- package/dist/vue.runtime.global.prod.js +9 -4
- package/package.json +6 -6
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue v3.4.8
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
1
6
|
import * as runtimeDom from '@vue/runtime-dom';
|
|
2
7
|
import { initCustomFormatter, registerRuntimeCompiler, warn } from '@vue/runtime-dom';
|
|
3
8
|
export * from '@vue/runtime-dom';
|
package/dist/vue.global.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue v3.4.8
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
1
6
|
var Vue = (function (exports) {
|
|
2
7
|
'use strict';
|
|
3
8
|
|
|
@@ -2645,8 +2650,6 @@ var Vue = (function (exports) {
|
|
|
2645
2650
|
return false;
|
|
2646
2651
|
}
|
|
2647
2652
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
2648
|
-
if (!el)
|
|
2649
|
-
return;
|
|
2650
2653
|
while (parent) {
|
|
2651
2654
|
const root = parent.subTree;
|
|
2652
2655
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3287,7 +3290,12 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3287
3290
|
function setActiveBranch(suspense, branch) {
|
|
3288
3291
|
suspense.activeBranch = branch;
|
|
3289
3292
|
const { vnode, parentComponent } = suspense;
|
|
3290
|
-
|
|
3293
|
+
let el = branch.el;
|
|
3294
|
+
while (!el && branch.component) {
|
|
3295
|
+
branch = branch.component.subTree;
|
|
3296
|
+
el = branch.el;
|
|
3297
|
+
}
|
|
3298
|
+
vnode.el = el;
|
|
3291
3299
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3292
3300
|
parentComponent.vnode.el = el;
|
|
3293
3301
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -3507,14 +3515,9 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3507
3515
|
cb = value.handler;
|
|
3508
3516
|
options = value;
|
|
3509
3517
|
}
|
|
3510
|
-
const
|
|
3511
|
-
setCurrentInstance(this);
|
|
3518
|
+
const reset = setCurrentInstance(this);
|
|
3512
3519
|
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3513
|
-
|
|
3514
|
-
setCurrentInstance(cur);
|
|
3515
|
-
} else {
|
|
3516
|
-
unsetCurrentInstance();
|
|
3517
|
-
}
|
|
3520
|
+
reset();
|
|
3518
3521
|
return res;
|
|
3519
3522
|
}
|
|
3520
3523
|
function createPathGetter(ctx, path) {
|
|
@@ -3566,12 +3569,11 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3566
3569
|
}
|
|
3567
3570
|
}
|
|
3568
3571
|
function withDirectives(vnode, directives) {
|
|
3569
|
-
|
|
3570
|
-
if (internalInstance === null) {
|
|
3572
|
+
if (currentRenderingInstance === null) {
|
|
3571
3573
|
warn$1(`withDirectives can only be used inside render functions.`);
|
|
3572
3574
|
return vnode;
|
|
3573
3575
|
}
|
|
3574
|
-
const instance = getExposeProxy(
|
|
3576
|
+
const instance = getExposeProxy(currentRenderingInstance) || currentRenderingInstance.proxy;
|
|
3575
3577
|
const bindings = vnode.dirs || (vnode.dirs = []);
|
|
3576
3578
|
for (let i = 0; i < directives.length; i++) {
|
|
3577
3579
|
let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];
|
|
@@ -4351,9 +4353,9 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4351
4353
|
return;
|
|
4352
4354
|
}
|
|
4353
4355
|
pauseTracking();
|
|
4354
|
-
setCurrentInstance(target);
|
|
4356
|
+
const reset = setCurrentInstance(target);
|
|
4355
4357
|
const res = callWithAsyncErrorHandling(hook, target, type, args);
|
|
4356
|
-
|
|
4358
|
+
reset();
|
|
4357
4359
|
resetTracking();
|
|
4358
4360
|
return res;
|
|
4359
4361
|
});
|
|
@@ -5738,12 +5740,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5738
5740
|
if (key in propsDefaults) {
|
|
5739
5741
|
value = propsDefaults[key];
|
|
5740
5742
|
} else {
|
|
5741
|
-
setCurrentInstance(instance);
|
|
5743
|
+
const reset = setCurrentInstance(instance);
|
|
5742
5744
|
value = propsDefaults[key] = defaultValue.call(
|
|
5743
5745
|
null,
|
|
5744
5746
|
props
|
|
5745
5747
|
);
|
|
5746
|
-
|
|
5748
|
+
reset();
|
|
5747
5749
|
}
|
|
5748
5750
|
} else {
|
|
5749
5751
|
value = defaultValue;
|
|
@@ -6619,29 +6621,34 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
6619
6621
|
let actual;
|
|
6620
6622
|
let expected;
|
|
6621
6623
|
if (key === "class") {
|
|
6622
|
-
actual =
|
|
6623
|
-
expected =
|
|
6624
|
-
if (!isSetEqual(actual, expected)) {
|
|
6624
|
+
actual = el.getAttribute("class");
|
|
6625
|
+
expected = normalizeClass(clientValue);
|
|
6626
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
6625
6627
|
mismatchType = mismatchKey = `class`;
|
|
6626
6628
|
}
|
|
6627
6629
|
} else if (key === "style") {
|
|
6628
|
-
actual =
|
|
6629
|
-
expected =
|
|
6630
|
-
|
|
6631
|
-
);
|
|
6630
|
+
actual = el.getAttribute("style");
|
|
6631
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
6632
|
+
const actualMap = toStyleMap(actual);
|
|
6633
|
+
const expectedMap = toStyleMap(expected);
|
|
6632
6634
|
if (vnode.dirs) {
|
|
6633
6635
|
for (const { dir, value } of vnode.dirs) {
|
|
6634
6636
|
if (dir.name === "show" && !value) {
|
|
6635
|
-
|
|
6637
|
+
expectedMap.set("display", "none");
|
|
6636
6638
|
}
|
|
6637
6639
|
}
|
|
6638
6640
|
}
|
|
6639
|
-
if (!isMapEqual(
|
|
6641
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
6640
6642
|
mismatchType = mismatchKey = "style";
|
|
6641
6643
|
}
|
|
6642
6644
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
+
if (isBooleanAttr(key)) {
|
|
6646
|
+
actual = el.hasAttribute(key);
|
|
6647
|
+
expected = includeBooleanAttr(clientValue);
|
|
6648
|
+
} else {
|
|
6649
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
6650
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
6651
|
+
}
|
|
6645
6652
|
if (actual !== expected) {
|
|
6646
6653
|
mismatchType = `attribute`;
|
|
6647
6654
|
mismatchKey = key;
|
|
@@ -8990,14 +8997,7 @@ Component that was made reactive: `,
|
|
|
8990
8997
|
return instance;
|
|
8991
8998
|
}
|
|
8992
8999
|
let currentInstance = null;
|
|
8993
|
-
const getCurrentInstance = () =>
|
|
8994
|
-
if (isInComputedGetter) {
|
|
8995
|
-
warn$1(
|
|
8996
|
-
`getCurrentInstance() called inside a computed getter. This is incorrect usage as computed getters are not guaranteed to be executed with an active component instance. If you are using a composable inside a computed getter, move it ouside to the setup scope.`
|
|
8997
|
-
);
|
|
8998
|
-
}
|
|
8999
|
-
return currentInstance || currentRenderingInstance;
|
|
9000
|
-
};
|
|
9000
|
+
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
9001
9001
|
let internalSetCurrentInstance;
|
|
9002
9002
|
let setInSSRSetupState;
|
|
9003
9003
|
{
|
|
@@ -9009,8 +9009,13 @@ Component that was made reactive: `,
|
|
|
9009
9009
|
};
|
|
9010
9010
|
}
|
|
9011
9011
|
const setCurrentInstance = (instance) => {
|
|
9012
|
+
const prev = currentInstance;
|
|
9012
9013
|
internalSetCurrentInstance(instance);
|
|
9013
9014
|
instance.scope.on();
|
|
9015
|
+
return () => {
|
|
9016
|
+
instance.scope.off();
|
|
9017
|
+
internalSetCurrentInstance(prev);
|
|
9018
|
+
};
|
|
9014
9019
|
};
|
|
9015
9020
|
const unsetCurrentInstance = () => {
|
|
9016
9021
|
currentInstance && currentInstance.scope.off();
|
|
@@ -9072,7 +9077,7 @@ Component that was made reactive: `,
|
|
|
9072
9077
|
const { setup } = Component;
|
|
9073
9078
|
if (setup) {
|
|
9074
9079
|
const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null;
|
|
9075
|
-
setCurrentInstance(instance);
|
|
9080
|
+
const reset = setCurrentInstance(instance);
|
|
9076
9081
|
pauseTracking();
|
|
9077
9082
|
const setupResult = callWithErrorHandling(
|
|
9078
9083
|
setup,
|
|
@@ -9084,7 +9089,7 @@ Component that was made reactive: `,
|
|
|
9084
9089
|
]
|
|
9085
9090
|
);
|
|
9086
9091
|
resetTracking();
|
|
9087
|
-
|
|
9092
|
+
reset();
|
|
9088
9093
|
if (isPromise(setupResult)) {
|
|
9089
9094
|
setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
|
|
9090
9095
|
if (isSSR) {
|
|
@@ -9178,13 +9183,13 @@ Component that was made reactive: `,
|
|
|
9178
9183
|
}
|
|
9179
9184
|
}
|
|
9180
9185
|
{
|
|
9181
|
-
setCurrentInstance(instance);
|
|
9186
|
+
const reset = setCurrentInstance(instance);
|
|
9182
9187
|
pauseTracking();
|
|
9183
9188
|
try {
|
|
9184
9189
|
applyOptions(instance);
|
|
9185
9190
|
} finally {
|
|
9186
9191
|
resetTracking();
|
|
9187
|
-
|
|
9192
|
+
reset();
|
|
9188
9193
|
}
|
|
9189
9194
|
}
|
|
9190
9195
|
if (!Component.render && instance.render === NOOP && !isSSR) {
|
|
@@ -9311,25 +9316,7 @@ Component that was made reactive: `,
|
|
|
9311
9316
|
return isFunction(value) && "__vccOpts" in value;
|
|
9312
9317
|
}
|
|
9313
9318
|
|
|
9314
|
-
let isInComputedGetter = false;
|
|
9315
|
-
function wrapComputedGetter(getter) {
|
|
9316
|
-
return () => {
|
|
9317
|
-
isInComputedGetter = true;
|
|
9318
|
-
try {
|
|
9319
|
-
return getter();
|
|
9320
|
-
} finally {
|
|
9321
|
-
isInComputedGetter = false;
|
|
9322
|
-
}
|
|
9323
|
-
};
|
|
9324
|
-
}
|
|
9325
9319
|
const computed = (getterOrOptions, debugOptions) => {
|
|
9326
|
-
{
|
|
9327
|
-
if (isFunction(getterOrOptions)) {
|
|
9328
|
-
getterOrOptions = wrapComputedGetter(getterOrOptions);
|
|
9329
|
-
} else {
|
|
9330
|
-
getterOrOptions.get = wrapComputedGetter(getterOrOptions.get);
|
|
9331
|
-
}
|
|
9332
|
-
}
|
|
9333
9320
|
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
9334
9321
|
};
|
|
9335
9322
|
|
|
@@ -9555,7 +9542,7 @@ Component that was made reactive: `,
|
|
|
9555
9542
|
return true;
|
|
9556
9543
|
}
|
|
9557
9544
|
|
|
9558
|
-
const version = "3.4.
|
|
9545
|
+
const version = "3.4.8";
|
|
9559
9546
|
const warn = warn$1 ;
|
|
9560
9547
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9561
9548
|
const devtools = devtools$1 ;
|
|
@@ -13453,8 +13440,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
13453
13440
|
}
|
|
13454
13441
|
context.parent.children.splice(removalIndex, 1);
|
|
13455
13442
|
},
|
|
13456
|
-
onNodeRemoved:
|
|
13457
|
-
},
|
|
13443
|
+
onNodeRemoved: NOOP,
|
|
13458
13444
|
addIdentifiers(exp) {
|
|
13459
13445
|
},
|
|
13460
13446
|
removeIdentifiers(exp) {
|