@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
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -5765,7 +5765,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5765
5765
|
let cssModule, globalProperties;
|
|
5766
5766
|
if (publicGetter) {
|
|
5767
5767
|
if (key === "$attrs") {
|
|
5768
|
-
track(instance, "get",
|
|
5768
|
+
track(instance.attrs, "get", "");
|
|
5769
5769
|
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
5770
5770
|
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
5771
5771
|
track(instance, "get", key);
|
|
@@ -6579,7 +6579,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6579
6579
|
return vm;
|
|
6580
6580
|
}
|
|
6581
6581
|
}
|
|
6582
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6582
|
+
Vue.version = `2.6.14-compat:${"3.4.23"}`;
|
|
6583
6583
|
Vue.config = singletonApp.config;
|
|
6584
6584
|
Vue.use = (p, ...options) => {
|
|
6585
6585
|
if (p && isFunction(p.install)) {
|
|
@@ -7219,10 +7219,13 @@ function shouldSkipAttr(key, instance) {
|
|
|
7219
7219
|
return false;
|
|
7220
7220
|
}
|
|
7221
7221
|
|
|
7222
|
-
const
|
|
7222
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
7223
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7224
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7225
|
+
|
|
7223
7226
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
7224
7227
|
const props = {};
|
|
7225
|
-
const attrs =
|
|
7228
|
+
const attrs = createInternalObject();
|
|
7226
7229
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
7227
7230
|
setFullProps(instance, rawProps, props, attrs);
|
|
7228
7231
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -7706,12 +7709,12 @@ const initSlots = (instance, children) => {
|
|
|
7706
7709
|
} else {
|
|
7707
7710
|
normalizeObjectSlots(
|
|
7708
7711
|
children,
|
|
7709
|
-
instance.slots =
|
|
7712
|
+
instance.slots = createInternalObject(),
|
|
7710
7713
|
instance
|
|
7711
7714
|
);
|
|
7712
7715
|
}
|
|
7713
7716
|
} else {
|
|
7714
|
-
instance.slots =
|
|
7717
|
+
instance.slots = createInternalObject();
|
|
7715
7718
|
if (children) {
|
|
7716
7719
|
normalizeVNodeSlots(instance, children);
|
|
7717
7720
|
}
|
|
@@ -10594,7 +10597,7 @@ Component that was made reactive: `,
|
|
|
10594
10597
|
function guardReactiveProps(props) {
|
|
10595
10598
|
if (!props)
|
|
10596
10599
|
return null;
|
|
10597
|
-
return isProxy(props) ||
|
|
10600
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10598
10601
|
}
|
|
10599
10602
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10600
10603
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -10702,7 +10705,7 @@ function normalizeChildren(vnode, children) {
|
|
|
10702
10705
|
} else {
|
|
10703
10706
|
type = 32;
|
|
10704
10707
|
const slotFlag = children._;
|
|
10705
|
-
if (!slotFlag) {
|
|
10708
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
10706
10709
|
children._ctx = currentRenderingInstance;
|
|
10707
10710
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
10708
10711
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -11494,7 +11497,7 @@ function isMemoSame(cached, memo) {
|
|
|
11494
11497
|
return true;
|
|
11495
11498
|
}
|
|
11496
11499
|
|
|
11497
|
-
const version = "3.4.
|
|
11500
|
+
const version = "3.4.23";
|
|
11498
11501
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11499
11502
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11500
11503
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/dist/vue.global.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -5726,7 +5726,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5726
5726
|
let cssModule, globalProperties;
|
|
5727
5727
|
if (publicGetter) {
|
|
5728
5728
|
if (key === "$attrs") {
|
|
5729
|
-
track(instance, "get",
|
|
5729
|
+
track(instance.attrs, "get", "");
|
|
5730
5730
|
markAttrsAccessed();
|
|
5731
5731
|
} else if (key === "$slots") {
|
|
5732
5732
|
track(instance, "get", key);
|
|
@@ -6538,7 +6538,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6538
6538
|
return vm;
|
|
6539
6539
|
}
|
|
6540
6540
|
}
|
|
6541
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6541
|
+
Vue.version = `2.6.14-compat:${"3.4.23"}`;
|
|
6542
6542
|
Vue.config = singletonApp.config;
|
|
6543
6543
|
Vue.use = (p, ...options) => {
|
|
6544
6544
|
if (p && isFunction(p.install)) {
|
|
@@ -7175,10 +7175,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7175
7175
|
return false;
|
|
7176
7176
|
}
|
|
7177
7177
|
|
|
7178
|
-
const
|
|
7178
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
7179
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
7180
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
7181
|
+
|
|
7179
7182
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
7180
7183
|
const props = {};
|
|
7181
|
-
const attrs =
|
|
7184
|
+
const attrs = createInternalObject();
|
|
7182
7185
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
7183
7186
|
setFullProps(instance, rawProps, props, attrs);
|
|
7184
7187
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -7662,12 +7665,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7662
7665
|
} else {
|
|
7663
7666
|
normalizeObjectSlots(
|
|
7664
7667
|
children,
|
|
7665
|
-
instance.slots =
|
|
7668
|
+
instance.slots = createInternalObject(),
|
|
7666
7669
|
instance
|
|
7667
7670
|
);
|
|
7668
7671
|
}
|
|
7669
7672
|
} else {
|
|
7670
|
-
instance.slots =
|
|
7673
|
+
instance.slots = createInternalObject();
|
|
7671
7674
|
if (children) {
|
|
7672
7675
|
normalizeVNodeSlots(instance, children);
|
|
7673
7676
|
}
|
|
@@ -10502,7 +10505,7 @@ Component that was made reactive: `,
|
|
|
10502
10505
|
function guardReactiveProps(props) {
|
|
10503
10506
|
if (!props)
|
|
10504
10507
|
return null;
|
|
10505
|
-
return isProxy(props) ||
|
|
10508
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10506
10509
|
}
|
|
10507
10510
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10508
10511
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -10610,7 +10613,7 @@ Component that was made reactive: `,
|
|
|
10610
10613
|
} else {
|
|
10611
10614
|
type = 32;
|
|
10612
10615
|
const slotFlag = children._;
|
|
10613
|
-
if (!slotFlag) {
|
|
10616
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
10614
10617
|
children._ctx = currentRenderingInstance;
|
|
10615
10618
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
10616
10619
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -11371,7 +11374,7 @@ Component that was made reactive: `,
|
|
|
11371
11374
|
return true;
|
|
11372
11375
|
}
|
|
11373
11376
|
|
|
11374
|
-
const version = "3.4.
|
|
11377
|
+
const version = "3.4.23";
|
|
11375
11378
|
const warn = warn$1 ;
|
|
11376
11379
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11377
11380
|
const devtools = devtools$1 ;
|