@vue/runtime-core 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/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.23
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3084,7 +3084,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
3084
3084
|
let cssModule, globalProperties;
|
|
3085
3085
|
if (publicGetter) {
|
|
3086
3086
|
if (key === "$attrs") {
|
|
3087
|
-
reactivity.track(instance, "get",
|
|
3087
|
+
reactivity.track(instance.attrs, "get", "");
|
|
3088
3088
|
markAttrsAccessed();
|
|
3089
3089
|
} else if (key === "$slots") {
|
|
3090
3090
|
reactivity.track(instance, "get", key);
|
|
@@ -4009,10 +4009,13 @@ function hasInjectionContext() {
|
|
|
4009
4009
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
4010
4010
|
}
|
|
4011
4011
|
|
|
4012
|
-
const
|
|
4012
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
4013
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
4014
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
4015
|
+
|
|
4013
4016
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
4014
4017
|
const props = {};
|
|
4015
|
-
const attrs =
|
|
4018
|
+
const attrs = createInternalObject();
|
|
4016
4019
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
4017
4020
|
setFullProps(instance, rawProps, props, attrs);
|
|
4018
4021
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -4467,10 +4470,10 @@ const initSlots = (instance, children) => {
|
|
|
4467
4470
|
} else {
|
|
4468
4471
|
normalizeObjectSlots(
|
|
4469
4472
|
children,
|
|
4470
|
-
instance.slots =
|
|
4473
|
+
instance.slots = createInternalObject());
|
|
4471
4474
|
}
|
|
4472
4475
|
} else {
|
|
4473
|
-
instance.slots =
|
|
4476
|
+
instance.slots = createInternalObject();
|
|
4474
4477
|
if (children) {
|
|
4475
4478
|
normalizeVNodeSlots(instance, children);
|
|
4476
4479
|
}
|
|
@@ -7213,7 +7216,7 @@ Component that was made reactive: `,
|
|
|
7213
7216
|
function guardReactiveProps(props) {
|
|
7214
7217
|
if (!props)
|
|
7215
7218
|
return null;
|
|
7216
|
-
return reactivity.isProxy(props) ||
|
|
7219
|
+
return reactivity.isProxy(props) || isInternalObject(props) ? shared.extend({}, props) : props;
|
|
7217
7220
|
}
|
|
7218
7221
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
7219
7222
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -7318,7 +7321,7 @@ function normalizeChildren(vnode, children) {
|
|
|
7318
7321
|
} else {
|
|
7319
7322
|
type = 32;
|
|
7320
7323
|
const slotFlag = children._;
|
|
7321
|
-
if (!slotFlag) {
|
|
7324
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
7322
7325
|
children._ctx = currentRenderingInstance;
|
|
7323
7326
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
7324
7327
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -8084,7 +8087,7 @@ function isMemoSame(cached, memo) {
|
|
|
8084
8087
|
return true;
|
|
8085
8088
|
}
|
|
8086
8089
|
|
|
8087
|
-
const version = "3.4.
|
|
8090
|
+
const version = "3.4.23";
|
|
8088
8091
|
const warn = warn$1 ;
|
|
8089
8092
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8090
8093
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.23
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2434,7 +2434,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
2434
2434
|
let cssModule, globalProperties;
|
|
2435
2435
|
if (publicGetter) {
|
|
2436
2436
|
if (key === "$attrs") {
|
|
2437
|
-
reactivity.track(instance, "get",
|
|
2437
|
+
reactivity.track(instance.attrs, "get", "");
|
|
2438
2438
|
}
|
|
2439
2439
|
return publicGetter(instance);
|
|
2440
2440
|
} else if (
|
|
@@ -3075,10 +3075,13 @@ function hasInjectionContext() {
|
|
|
3075
3075
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
3076
3076
|
}
|
|
3077
3077
|
|
|
3078
|
-
const
|
|
3078
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
3079
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
3080
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
3081
|
+
|
|
3079
3082
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
3080
3083
|
const props = {};
|
|
3081
|
-
const attrs =
|
|
3084
|
+
const attrs = createInternalObject();
|
|
3082
3085
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
3083
3086
|
setFullProps(instance, rawProps, props, attrs);
|
|
3084
3087
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -3395,10 +3398,10 @@ const initSlots = (instance, children) => {
|
|
|
3395
3398
|
} else {
|
|
3396
3399
|
normalizeObjectSlots(
|
|
3397
3400
|
children,
|
|
3398
|
-
instance.slots =
|
|
3401
|
+
instance.slots = createInternalObject());
|
|
3399
3402
|
}
|
|
3400
3403
|
} else {
|
|
3401
|
-
instance.slots =
|
|
3404
|
+
instance.slots = createInternalObject();
|
|
3402
3405
|
if (children) {
|
|
3403
3406
|
normalizeVNodeSlots(instance, children);
|
|
3404
3407
|
}
|
|
@@ -5733,7 +5736,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
5733
5736
|
function guardReactiveProps(props) {
|
|
5734
5737
|
if (!props)
|
|
5735
5738
|
return null;
|
|
5736
|
-
return reactivity.isProxy(props) ||
|
|
5739
|
+
return reactivity.isProxy(props) || isInternalObject(props) ? shared.extend({}, props) : props;
|
|
5737
5740
|
}
|
|
5738
5741
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
5739
5742
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -5831,7 +5834,7 @@ function normalizeChildren(vnode, children) {
|
|
|
5831
5834
|
} else {
|
|
5832
5835
|
type = 32;
|
|
5833
5836
|
const slotFlag = children._;
|
|
5834
|
-
if (!slotFlag) {
|
|
5837
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
5835
5838
|
children._ctx = currentRenderingInstance;
|
|
5836
5839
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
5837
5840
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -6275,7 +6278,7 @@ function isMemoSame(cached, memo) {
|
|
|
6275
6278
|
return true;
|
|
6276
6279
|
}
|
|
6277
6280
|
|
|
6278
|
-
const version = "3.4.
|
|
6281
|
+
const version = "3.4.23";
|
|
6279
6282
|
const warn$1 = shared.NOOP;
|
|
6280
6283
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6281
6284
|
const devtools = void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.23
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3088,7 +3088,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
3088
3088
|
let cssModule, globalProperties;
|
|
3089
3089
|
if (publicGetter) {
|
|
3090
3090
|
if (key === "$attrs") {
|
|
3091
|
-
track(instance, "get",
|
|
3091
|
+
track(instance.attrs, "get", "");
|
|
3092
3092
|
!!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
|
|
3093
3093
|
} else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
|
|
3094
3094
|
track(instance, "get", key);
|
|
@@ -4017,10 +4017,13 @@ function hasInjectionContext() {
|
|
|
4017
4017
|
return !!(currentInstance || currentRenderingInstance || currentApp);
|
|
4018
4018
|
}
|
|
4019
4019
|
|
|
4020
|
-
const
|
|
4020
|
+
const internalObjectProto = /* @__PURE__ */ Object.create(null);
|
|
4021
|
+
const createInternalObject = () => Object.create(internalObjectProto);
|
|
4022
|
+
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
4023
|
+
|
|
4021
4024
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
4022
4025
|
const props = {};
|
|
4023
|
-
const attrs =
|
|
4026
|
+
const attrs = createInternalObject();
|
|
4024
4027
|
instance.propsDefaults = /* @__PURE__ */ Object.create(null);
|
|
4025
4028
|
setFullProps(instance, rawProps, props, attrs);
|
|
4026
4029
|
for (const key in instance.propsOptions[0]) {
|
|
@@ -4475,10 +4478,10 @@ const initSlots = (instance, children) => {
|
|
|
4475
4478
|
} else {
|
|
4476
4479
|
normalizeObjectSlots(
|
|
4477
4480
|
children,
|
|
4478
|
-
instance.slots =
|
|
4481
|
+
instance.slots = createInternalObject());
|
|
4479
4482
|
}
|
|
4480
4483
|
} else {
|
|
4481
|
-
instance.slots =
|
|
4484
|
+
instance.slots = createInternalObject();
|
|
4482
4485
|
if (children) {
|
|
4483
4486
|
normalizeVNodeSlots(instance, children);
|
|
4484
4487
|
}
|
|
@@ -7269,7 +7272,7 @@ Component that was made reactive: `,
|
|
|
7269
7272
|
function guardReactiveProps(props) {
|
|
7270
7273
|
if (!props)
|
|
7271
7274
|
return null;
|
|
7272
|
-
return isProxy(props) ||
|
|
7275
|
+
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
7273
7276
|
}
|
|
7274
7277
|
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
7275
7278
|
const { props, ref, patchFlag, children } = vnode;
|
|
@@ -7374,7 +7377,7 @@ function normalizeChildren(vnode, children) {
|
|
|
7374
7377
|
} else {
|
|
7375
7378
|
type = 32;
|
|
7376
7379
|
const slotFlag = children._;
|
|
7377
|
-
if (!slotFlag) {
|
|
7380
|
+
if (!slotFlag && !isInternalObject(children)) {
|
|
7378
7381
|
children._ctx = currentRenderingInstance;
|
|
7379
7382
|
} else if (slotFlag === 3 && currentRenderingInstance) {
|
|
7380
7383
|
if (currentRenderingInstance.slots._ === 1) {
|
|
@@ -8154,7 +8157,7 @@ function isMemoSame(cached, memo) {
|
|
|
8154
8157
|
return true;
|
|
8155
8158
|
}
|
|
8156
8159
|
|
|
8157
|
-
const version = "3.4.
|
|
8160
|
+
const version = "3.4.23";
|
|
8158
8161
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8159
8162
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8160
8163
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.23",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.4.
|
|
50
|
-
"@vue/reactivity": "3.4.
|
|
49
|
+
"@vue/shared": "3.4.23",
|
|
50
|
+
"@vue/reactivity": "3.4.23"
|
|
51
51
|
}
|
|
52
52
|
}
|