@vue/runtime-core 3.4.32 → 3.4.34
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.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -6013,7 +6013,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
|
|
|
6013
6013
|
const modifiers = getModelModifiers(props, name);
|
|
6014
6014
|
const res = reactivity.customRef((track, trigger) => {
|
|
6015
6015
|
let localValue;
|
|
6016
|
-
let prevSetValue;
|
|
6016
|
+
let prevSetValue = shared.EMPTY_OBJ;
|
|
6017
6017
|
let prevEmittedValue;
|
|
6018
6018
|
watchSyncEffect(() => {
|
|
6019
6019
|
const propValue = props[name];
|
|
@@ -6028,7 +6028,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
|
|
|
6028
6028
|
return options.get ? options.get(localValue) : localValue;
|
|
6029
6029
|
},
|
|
6030
6030
|
set(value) {
|
|
6031
|
-
if (!shared.hasChanged(value, localValue)) {
|
|
6031
|
+
if (!shared.hasChanged(value, localValue) && !(prevSetValue !== shared.EMPTY_OBJ && shared.hasChanged(value, prevSetValue))) {
|
|
6032
6032
|
return;
|
|
6033
6033
|
}
|
|
6034
6034
|
const rawProps = i.vnode.props;
|
|
@@ -6039,7 +6039,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
|
|
|
6039
6039
|
}
|
|
6040
6040
|
const emittedValue = options.set ? options.set(value) : value;
|
|
6041
6041
|
i.emit(`update:${name}`, emittedValue);
|
|
6042
|
-
if (value
|
|
6042
|
+
if (shared.hasChanged(value, emittedValue) && shared.hasChanged(value, prevSetValue) && !shared.hasChanged(emittedValue, prevEmittedValue)) {
|
|
6043
6043
|
trigger();
|
|
6044
6044
|
}
|
|
6045
6045
|
prevSetValue = value;
|
|
@@ -7515,8 +7515,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
7515
7515
|
refs: shared.EMPTY_OBJ,
|
|
7516
7516
|
setupState: shared.EMPTY_OBJ,
|
|
7517
7517
|
setupContext: null,
|
|
7518
|
-
attrsProxy: null,
|
|
7519
|
-
slotsProxy: null,
|
|
7520
7518
|
// suspense related
|
|
7521
7519
|
suspense,
|
|
7522
7520
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -7787,12 +7785,12 @@ const attrsProxyHandlers = {
|
|
|
7787
7785
|
}
|
|
7788
7786
|
} ;
|
|
7789
7787
|
function getSlotsProxy(instance) {
|
|
7790
|
-
return
|
|
7788
|
+
return new Proxy(instance.slots, {
|
|
7791
7789
|
get(target, key) {
|
|
7792
7790
|
reactivity.track(instance, "get", "$slots");
|
|
7793
7791
|
return target[key];
|
|
7794
7792
|
}
|
|
7795
|
-
})
|
|
7793
|
+
});
|
|
7796
7794
|
}
|
|
7797
7795
|
function createSetupContext(instance) {
|
|
7798
7796
|
const expose = (exposed) => {
|
|
@@ -7820,12 +7818,13 @@ function createSetupContext(instance) {
|
|
|
7820
7818
|
};
|
|
7821
7819
|
{
|
|
7822
7820
|
let attrsProxy;
|
|
7821
|
+
let slotsProxy;
|
|
7823
7822
|
return Object.freeze({
|
|
7824
7823
|
get attrs() {
|
|
7825
7824
|
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
7826
7825
|
},
|
|
7827
7826
|
get slots() {
|
|
7828
|
-
return getSlotsProxy(instance);
|
|
7827
|
+
return slotsProxy || (slotsProxy = getSlotsProxy(instance));
|
|
7829
7828
|
},
|
|
7830
7829
|
get emit() {
|
|
7831
7830
|
return (event, ...args) => instance.emit(event, ...args);
|
|
@@ -8118,7 +8117,7 @@ function isMemoSame(cached, memo) {
|
|
|
8118
8117
|
return true;
|
|
8119
8118
|
}
|
|
8120
8119
|
|
|
8121
|
-
const version = "3.4.
|
|
8120
|
+
const version = "3.4.34";
|
|
8122
8121
|
const warn = warn$1 ;
|
|
8123
8122
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8124
8123
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4701,7 +4701,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
|
|
|
4701
4701
|
const modifiers = getModelModifiers(props, name);
|
|
4702
4702
|
const res = reactivity.customRef((track, trigger) => {
|
|
4703
4703
|
let localValue;
|
|
4704
|
-
let prevSetValue;
|
|
4704
|
+
let prevSetValue = shared.EMPTY_OBJ;
|
|
4705
4705
|
let prevEmittedValue;
|
|
4706
4706
|
watchSyncEffect(() => {
|
|
4707
4707
|
const propValue = props[name];
|
|
@@ -4716,7 +4716,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
|
|
|
4716
4716
|
return options.get ? options.get(localValue) : localValue;
|
|
4717
4717
|
},
|
|
4718
4718
|
set(value) {
|
|
4719
|
-
if (!shared.hasChanged(value, localValue)) {
|
|
4719
|
+
if (!shared.hasChanged(value, localValue) && !(prevSetValue !== shared.EMPTY_OBJ && shared.hasChanged(value, prevSetValue))) {
|
|
4720
4720
|
return;
|
|
4721
4721
|
}
|
|
4722
4722
|
const rawProps = i.vnode.props;
|
|
@@ -4727,7 +4727,7 @@ function useModel(props, name, options = shared.EMPTY_OBJ) {
|
|
|
4727
4727
|
}
|
|
4728
4728
|
const emittedValue = options.set ? options.set(value) : value;
|
|
4729
4729
|
i.emit(`update:${name}`, emittedValue);
|
|
4730
|
-
if (value
|
|
4730
|
+
if (shared.hasChanged(value, emittedValue) && shared.hasChanged(value, prevSetValue) && !shared.hasChanged(emittedValue, prevEmittedValue)) {
|
|
4731
4731
|
trigger();
|
|
4732
4732
|
}
|
|
4733
4733
|
prevSetValue = value;
|
|
@@ -6015,8 +6015,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
6015
6015
|
refs: shared.EMPTY_OBJ,
|
|
6016
6016
|
setupState: shared.EMPTY_OBJ,
|
|
6017
6017
|
setupContext: null,
|
|
6018
|
-
attrsProxy: null,
|
|
6019
|
-
slotsProxy: null,
|
|
6020
6018
|
// suspense related
|
|
6021
6019
|
suspense,
|
|
6022
6020
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -6303,7 +6301,7 @@ function isMemoSame(cached, memo) {
|
|
|
6303
6301
|
return true;
|
|
6304
6302
|
}
|
|
6305
6303
|
|
|
6306
|
-
const version = "3.4.
|
|
6304
|
+
const version = "3.4.34";
|
|
6307
6305
|
const warn$1 = shared.NOOP;
|
|
6308
6306
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6309
6307
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1133,8 +1133,6 @@ export interface ComponentInternalInstance {
|
|
|
1133
1133
|
slots: InternalSlots;
|
|
1134
1134
|
refs: Data;
|
|
1135
1135
|
emit: EmitFn;
|
|
1136
|
-
attrsProxy: Data | null;
|
|
1137
|
-
slotsProxy: Slots | null;
|
|
1138
1136
|
isMounted: boolean;
|
|
1139
1137
|
isUnmounted: boolean;
|
|
1140
1138
|
isDeactivated: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.4.
|
|
2
|
+
* @vue/runtime-core v3.4.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -6068,7 +6068,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6068
6068
|
const modifiers = getModelModifiers(props, name);
|
|
6069
6069
|
const res = customRef((track, trigger) => {
|
|
6070
6070
|
let localValue;
|
|
6071
|
-
let prevSetValue;
|
|
6071
|
+
let prevSetValue = EMPTY_OBJ;
|
|
6072
6072
|
let prevEmittedValue;
|
|
6073
6073
|
watchSyncEffect(() => {
|
|
6074
6074
|
const propValue = props[name];
|
|
@@ -6083,7 +6083,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6083
6083
|
return options.get ? options.get(localValue) : localValue;
|
|
6084
6084
|
},
|
|
6085
6085
|
set(value) {
|
|
6086
|
-
if (!hasChanged(value, localValue)) {
|
|
6086
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
6087
6087
|
return;
|
|
6088
6088
|
}
|
|
6089
6089
|
const rawProps = i.vnode.props;
|
|
@@ -6094,7 +6094,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
const emittedValue = options.set ? options.set(value) : value;
|
|
6096
6096
|
i.emit(`update:${name}`, emittedValue);
|
|
6097
|
-
if (value
|
|
6097
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
6098
6098
|
trigger();
|
|
6099
6099
|
}
|
|
6100
6100
|
prevSetValue = value;
|
|
@@ -7570,8 +7570,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
7570
7570
|
refs: EMPTY_OBJ,
|
|
7571
7571
|
setupState: EMPTY_OBJ,
|
|
7572
7572
|
setupContext: null,
|
|
7573
|
-
attrsProxy: null,
|
|
7574
|
-
slotsProxy: null,
|
|
7575
7573
|
// suspense related
|
|
7576
7574
|
suspense,
|
|
7577
7575
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -7849,12 +7847,12 @@ const attrsProxyHandlers = !!(process.env.NODE_ENV !== "production") ? {
|
|
|
7849
7847
|
}
|
|
7850
7848
|
};
|
|
7851
7849
|
function getSlotsProxy(instance) {
|
|
7852
|
-
return
|
|
7850
|
+
return new Proxy(instance.slots, {
|
|
7853
7851
|
get(target, key) {
|
|
7854
7852
|
track(instance, "get", "$slots");
|
|
7855
7853
|
return target[key];
|
|
7856
7854
|
}
|
|
7857
|
-
})
|
|
7855
|
+
});
|
|
7858
7856
|
}
|
|
7859
7857
|
function createSetupContext(instance) {
|
|
7860
7858
|
const expose = (exposed) => {
|
|
@@ -7882,12 +7880,13 @@ function createSetupContext(instance) {
|
|
|
7882
7880
|
};
|
|
7883
7881
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7884
7882
|
let attrsProxy;
|
|
7883
|
+
let slotsProxy;
|
|
7885
7884
|
return Object.freeze({
|
|
7886
7885
|
get attrs() {
|
|
7887
7886
|
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
7888
7887
|
},
|
|
7889
7888
|
get slots() {
|
|
7890
|
-
return getSlotsProxy(instance);
|
|
7889
|
+
return slotsProxy || (slotsProxy = getSlotsProxy(instance));
|
|
7891
7890
|
},
|
|
7892
7891
|
get emit() {
|
|
7893
7892
|
return (event, ...args) => instance.emit(event, ...args);
|
|
@@ -8187,7 +8186,7 @@ function isMemoSame(cached, memo) {
|
|
|
8187
8186
|
return true;
|
|
8188
8187
|
}
|
|
8189
8188
|
|
|
8190
|
-
const version = "3.4.
|
|
8189
|
+
const version = "3.4.34";
|
|
8191
8190
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8192
8191
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8193
8192
|
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.34",
|
|
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.34",
|
|
50
|
+
"@vue/reactivity": "3.4.34"
|
|
51
51
|
}
|
|
52
52
|
}
|