vue 3.2.21 → 3.2.22
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.esm-browser.js +11 -6
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.global.js +11 -6
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +10 -5
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.global.js +10 -5
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +8 -7
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1657,6 +1657,7 @@ function emit(event, ...args) {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
1659
|
function setDevtoolsHook(hook, target) {
|
|
1660
|
+
var _a, _b;
|
|
1660
1661
|
devtools = hook;
|
|
1661
1662
|
if (devtools) {
|
|
1662
1663
|
devtools.enabled = true;
|
|
@@ -1669,7 +1670,10 @@ function setDevtoolsHook(hook, target) {
|
|
|
1669
1670
|
// (#4815)
|
|
1670
1671
|
// eslint-disable-next-line no-restricted-globals
|
|
1671
1672
|
typeof window !== 'undefined' &&
|
|
1672
|
-
|
|
1673
|
+
// some envs mock window but not fully
|
|
1674
|
+
window.HTMLElement &&
|
|
1675
|
+
// also exclude jsdom
|
|
1676
|
+
!((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
|
|
1673
1677
|
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
|
|
1674
1678
|
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
|
|
1675
1679
|
replay.push((newHook) => {
|
|
@@ -6394,8 +6398,8 @@ function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
|
6394
6398
|
*
|
|
6395
6399
|
* #2080
|
|
6396
6400
|
* Inside keyed `template` fragment static children, if a fragment is moved,
|
|
6397
|
-
* the children will always moved
|
|
6398
|
-
*
|
|
6401
|
+
* the children will always be moved. Therefore, in order to ensure correct move
|
|
6402
|
+
* position, el should be inherited from previous nodes.
|
|
6399
6403
|
*/
|
|
6400
6404
|
function traverseStaticChildren(n1, n2, shallow = false) {
|
|
6401
6405
|
const ch1 = n1.children;
|
|
@@ -7175,7 +7179,8 @@ function mergeProps(...args) {
|
|
|
7175
7179
|
else if (isOn(key)) {
|
|
7176
7180
|
const existing = ret[key];
|
|
7177
7181
|
const incoming = toMerge[key];
|
|
7178
|
-
if (existing !== incoming
|
|
7182
|
+
if (existing !== incoming &&
|
|
7183
|
+
!(isArray(existing) && existing.includes(incoming))) {
|
|
7179
7184
|
ret[key] = existing
|
|
7180
7185
|
? [].concat(existing, incoming)
|
|
7181
7186
|
: incoming;
|
|
@@ -9039,7 +9044,7 @@ function isMemoSame(cached, memo) {
|
|
|
9039
9044
|
}
|
|
9040
9045
|
|
|
9041
9046
|
// Core API ------------------------------------------------------------------
|
|
9042
|
-
const version = "3.2.
|
|
9047
|
+
const version = "3.2.22";
|
|
9043
9048
|
/**
|
|
9044
9049
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
9045
9050
|
* @internal
|
|
@@ -14698,7 +14703,7 @@ function stringifyDynamicPropNames(props) {
|
|
|
14698
14703
|
return propsNamesString + `]`;
|
|
14699
14704
|
}
|
|
14700
14705
|
function isComponentTag(tag) {
|
|
14701
|
-
return tag
|
|
14706
|
+
return tag === 'component' || tag === 'Component';
|
|
14702
14707
|
}
|
|
14703
14708
|
|
|
14704
14709
|
const transformSlotOutlet = (node, context) => {
|