@vue/compat 3.4.22 → 3.4.23
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 +13 -10
- package/dist/vue.cjs.prod.js +13 -10
- package/dist/vue.esm-browser.js +13 -10
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +13 -10
- package/dist/vue.global.js +13 -10
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +13 -10
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +13 -10
- package/dist/vue.runtime.global.js +13 -10
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.23
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5700,7 +5700,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5700
5700
|
let cssModule, globalProperties;
|
|
5701
5701
|
if (publicGetter) {
|
|
5702
5702
|
if (key === "$attrs") {
|
|
5703
|
-
track(instance, "get",
|
|
5703
|
+
track(instance.attrs, "get", "");
|
|
5704
5704
|
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
5705
5705
|
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
5706
5706
|
track(instance, "get", key);
|
|
@@ -6514,7 +6514,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6514
6514
|
return vm;
|
|
6515
6515
|
}
|
|
6516
6516
|
}
|
|
6517
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6517
|
+
Vue.version = `2.6.14-compat:${"3.4.23"}`;
|
|
6518
6518
|
Vue.config = singletonApp.config;
|
|
6519
6519
|
Vue.use = (p, ...options) => {
|
|
6520
6520
|
if (p && isFunction(p.install)) {
|
|
@@ -7154,10 +7154,13 @@ function shouldSkipAttr(key, instance) {
|
|
|
7154
7154
|
return false;
|
|
7155
7155
|
}
|
|
7156
7156
|
|
|
7157
|
-
const
|
|
7157
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
7158
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7159
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7160
|
+
|
|
7158
7161
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
7159
7162
|
const props = {};
|
|
7160
|
-
const attrs =
|
|
7163
|
+
const attrs = createInternalObject();
|
|
7161
7164
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
7162
7165
|
setFullProps(instance, rawProps, props, attrs);
|
|
7163
7166
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -7641,12 +7644,12 @@ const initSlots = (instance, children) => {
|
|
|
7641
7644
|
} else {
|
|
7642
7645
|
normalizeObjectSlots(
|
|
7643
7646
|
children,
|
|
7644
|
-
instance.slots =
|
|
7647
|
+
instance.slots = createInternalObject(),
|
|
7645
7648
|
instance
|
|
7646
7649
|
);
|
|
7647
7650
|
}
|
|
7648
7651
|
} else {
|
|
7649
|
-
instance.slots =
|
|
7652
|
+
instance.slots = createInternalObject();
|
|
7650
7653
|
if (children) {
|
|
7651
7654
|
normalizeVNodeSlots(instance, children);
|
|
7652
7655
|
}
|
|
@@ -10529,7 +10532,7 @@ Component that was made reactive: `,
|
|
|
10529
10532
|
function guardReactiveProps(props) {
|
|
10530
10533
|
if (!props)
|
|
10531
10534
|
return null;
|
|
10532
|
-
return isProxy(props) ||
|
|
10535
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10533
10536
|
}
|
|
10534
10537
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10535
10538
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -10637,7 +10640,7 @@ function normalizeChildren(vnode, children) {
|
|
|
10637
10640
|
} else {
|
|
10638
10641
|
type = 32;
|
|
10639
10642
|
const slotFlag = children._;
|
|
10640
|
-
if (!slotFlag) {
|
|
10643
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
10641
10644
|
children._ctx = currentRenderingInstance;
|
|
10642
10645
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
10643
10646
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -11429,7 +11432,7 @@ function isMemoSame(cached, memo) {
|
|
|
11429
11432
|
return true;
|
|
11430
11433
|
}
|
|
11431
11434
|
|
|
11432
|
-
const version = "3.4.
|
|
11435
|
+
const version = "3.4.23";
|
|
11433
11436
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11434
11437
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11435
11438
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.23
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5661,7 +5661,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5661
5661
|
let cssModule, globalProperties;
|
|
5662
5662
|
if (publicGetter) {
|
|
5663
5663
|
if (key === "$attrs") {
|
|
5664
|
-
track(instance, "get",
|
|
5664
|
+
track(instance.attrs, "get", "");
|
|
5665
5665
|
markAttrsAccessed();
|
|
5666
5666
|
} else if (key === "$slots") {
|
|
5667
5667
|
track(instance, "get", key);
|
|
@@ -6473,7 +6473,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6473
6473
|
return vm;
|
|
6474
6474
|
}
|
|
6475
6475
|
}
|
|
6476
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6476
|
+
Vue.version = `2.6.14-compat:${"3.4.23"}`;
|
|
6477
6477
|
Vue.config = singletonApp.config;
|
|
6478
6478
|
Vue.use = (p, ...options) => {
|
|
6479
6479
|
if (p && isFunction(p.install)) {
|
|
@@ -7110,10 +7110,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7110
7110
|
return false;
|
|
7111
7111
|
}
|
|
7112
7112
|
|
|
7113
|
-
const
|
|
7113
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
7114
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7115
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7116
|
+
|
|
7114
7117
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
7115
7118
|
const props = {};
|
|
7116
|
-
const attrs =
|
|
7119
|
+
const attrs = createInternalObject();
|
|
7117
7120
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
7118
7121
|
setFullProps(instance, rawProps, props, attrs);
|
|
7119
7122
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -7597,12 +7600,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7597
7600
|
} else {
|
|
7598
7601
|
normalizeObjectSlots(
|
|
7599
7602
|
children,
|
|
7600
|
-
instance.slots =
|
|
7603
|
+
instance.slots = createInternalObject(),
|
|
7601
7604
|
instance
|
|
7602
7605
|
);
|
|
7603
7606
|
}
|
|
7604
7607
|
} else {
|
|
7605
|
-
instance.slots =
|
|
7608
|
+
instance.slots = createInternalObject();
|
|
7606
7609
|
if (children) {
|
|
7607
7610
|
normalizeVNodeSlots(instance, children);
|
|
7608
7611
|
}
|
|
@@ -10437,7 +10440,7 @@ Component that was made reactive: `,
|
|
|
10437
10440
|
function guardReactiveProps(props) {
|
|
10438
10441
|
if (!props)
|
|
10439
10442
|
return null;
|
|
10440
|
-
return isProxy(props) ||
|
|
10443
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10441
10444
|
}
|
|
10442
10445
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10443
10446
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -10545,7 +10548,7 @@ Component that was made reactive: `,
|
|
|
10545
10548
|
} else {
|
|
10546
10549
|
type = 32;
|
|
10547
10550
|
const slotFlag = children._;
|
|
10548
|
-
if (!slotFlag) {
|
|
10551
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
10549
10552
|
children._ctx = currentRenderingInstance;
|
|
10550
10553
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
10551
10554
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -11306,7 +11309,7 @@ Component that was made reactive: `,
|
|
|
11306
11309
|
return true;
|
|
11307
11310
|
}
|
|
11308
11311
|
|
|
11309
|
-
const version = "3.4.
|
|
11312
|
+
const version = "3.4.23";
|
|
11310
11313
|
const warn = warn$1 ;
|
|
11311
11314
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11312
11315
|
const devtools = devtools$1 ;
|