@vue/compat 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/vue.cjs.js +11 -12
- package/dist/vue.cjs.prod.js +7 -9
- package/dist/vue.esm-browser.js +11 -12
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +11 -12
- package/dist/vue.global.js +11 -12
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +11 -12
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +11 -12
- package/dist/vue.runtime.global.js +11 -12
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5194,7 +5194,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5194
5194
|
return vm;
|
|
5195
5195
|
}
|
|
5196
5196
|
}
|
|
5197
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5197
|
+
Vue.version = `2.6.14-compat:${"3.4.34"}`;
|
|
5198
5198
|
Vue.config = singletonApp.config;
|
|
5199
5199
|
Vue.use = (plugin, ...options) => {
|
|
5200
5200
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9239,7 +9239,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9239
9239
|
const modifiers = getModelModifiers(props, name);
|
|
9240
9240
|
const res = customRef((track, trigger) => {
|
|
9241
9241
|
let localValue;
|
|
9242
|
-
let prevSetValue;
|
|
9242
|
+
let prevSetValue = EMPTY_OBJ;
|
|
9243
9243
|
let prevEmittedValue;
|
|
9244
9244
|
watchSyncEffect(() => {
|
|
9245
9245
|
const propValue = props[name];
|
|
@@ -9254,7 +9254,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9254
9254
|
return options.get ? options.get(localValue) : localValue;
|
|
9255
9255
|
},
|
|
9256
9256
|
set(value) {
|
|
9257
|
-
if (!hasChanged(value, localValue)) {
|
|
9257
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
9258
9258
|
return;
|
|
9259
9259
|
}
|
|
9260
9260
|
const rawProps = i.vnode.props;
|
|
@@ -9265,7 +9265,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9265
9265
|
}
|
|
9266
9266
|
const emittedValue = options.set ? options.set(value) : value;
|
|
9267
9267
|
i.emit(`update:${name}`, emittedValue);
|
|
9268
|
-
if (value
|
|
9268
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
9269
9269
|
trigger();
|
|
9270
9270
|
}
|
|
9271
9271
|
prevSetValue = value;
|
|
@@ -10836,8 +10836,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10836
10836
|
refs: EMPTY_OBJ,
|
|
10837
10837
|
setupState: EMPTY_OBJ,
|
|
10838
10838
|
setupContext: null,
|
|
10839
|
-
attrsProxy: null,
|
|
10840
|
-
slotsProxy: null,
|
|
10841
10839
|
// suspense related
|
|
10842
10840
|
suspense,
|
|
10843
10841
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -11127,12 +11125,12 @@ const attrsProxyHandlers = !!(process.env.NODE_ENV !== "production") ? {
|
|
|
11127
11125
|
}
|
|
11128
11126
|
};
|
|
11129
11127
|
function getSlotsProxy(instance) {
|
|
11130
|
-
return
|
|
11128
|
+
return new Proxy(instance.slots, {
|
|
11131
11129
|
get(target, key) {
|
|
11132
11130
|
track(instance, "get", "$slots");
|
|
11133
11131
|
return target[key];
|
|
11134
11132
|
}
|
|
11135
|
-
})
|
|
11133
|
+
});
|
|
11136
11134
|
}
|
|
11137
11135
|
function createSetupContext(instance) {
|
|
11138
11136
|
const expose = (exposed) => {
|
|
@@ -11160,12 +11158,13 @@ function createSetupContext(instance) {
|
|
|
11160
11158
|
};
|
|
11161
11159
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11162
11160
|
let attrsProxy;
|
|
11161
|
+
let slotsProxy;
|
|
11163
11162
|
return Object.freeze({
|
|
11164
11163
|
get attrs() {
|
|
11165
11164
|
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
11166
11165
|
},
|
|
11167
11166
|
get slots() {
|
|
11168
|
-
return getSlotsProxy(instance);
|
|
11167
|
+
return slotsProxy || (slotsProxy = getSlotsProxy(instance));
|
|
11169
11168
|
},
|
|
11170
11169
|
get emit() {
|
|
11171
11170
|
return (event, ...args) => instance.emit(event, ...args);
|
|
@@ -11465,7 +11464,7 @@ function isMemoSame(cached, memo) {
|
|
|
11465
11464
|
return true;
|
|
11466
11465
|
}
|
|
11467
11466
|
|
|
11468
|
-
const version = "3.4.
|
|
11467
|
+
const version = "3.4.34";
|
|
11469
11468
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11470
11469
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11471
11470
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12143,7 +12142,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
12143
12142
|
|
|
12144
12143
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12145
12144
|
if (key === "innerHTML" || key === "textContent") {
|
|
12146
|
-
if (value
|
|
12145
|
+
if (value == null) return;
|
|
12147
12146
|
el[key] = value;
|
|
12148
12147
|
return;
|
|
12149
12148
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5182,7 +5182,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5182
5182
|
return vm;
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5185
|
+
Vue.version = `2.6.14-compat:${"3.4.34"}`;
|
|
5186
5186
|
Vue.config = singletonApp.config;
|
|
5187
5187
|
Vue.use = (plugin, ...options) => {
|
|
5188
5188
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9150,7 +9150,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9150
9150
|
const modifiers = getModelModifiers(props, name);
|
|
9151
9151
|
const res = customRef((track, trigger) => {
|
|
9152
9152
|
let localValue;
|
|
9153
|
-
let prevSetValue;
|
|
9153
|
+
let prevSetValue = EMPTY_OBJ;
|
|
9154
9154
|
let prevEmittedValue;
|
|
9155
9155
|
watchSyncEffect(() => {
|
|
9156
9156
|
const propValue = props[name];
|
|
@@ -9165,7 +9165,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9165
9165
|
return options.get ? options.get(localValue) : localValue;
|
|
9166
9166
|
},
|
|
9167
9167
|
set(value) {
|
|
9168
|
-
if (!hasChanged(value, localValue)) {
|
|
9168
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
9169
9169
|
return;
|
|
9170
9170
|
}
|
|
9171
9171
|
const rawProps = i.vnode.props;
|
|
@@ -9176,7 +9176,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
9176
9176
|
}
|
|
9177
9177
|
const emittedValue = options.set ? options.set(value) : value;
|
|
9178
9178
|
i.emit(`update:${name}`, emittedValue);
|
|
9179
|
-
if (value
|
|
9179
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
9180
9180
|
trigger();
|
|
9181
9181
|
}
|
|
9182
9182
|
prevSetValue = value;
|
|
@@ -10747,8 +10747,6 @@ Component that was made reactive: `,
|
|
|
10747
10747
|
refs: EMPTY_OBJ,
|
|
10748
10748
|
setupState: EMPTY_OBJ,
|
|
10749
10749
|
setupContext: null,
|
|
10750
|
-
attrsProxy: null,
|
|
10751
|
-
slotsProxy: null,
|
|
10752
10750
|
// suspense related
|
|
10753
10751
|
suspense,
|
|
10754
10752
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -11017,12 +11015,12 @@ Component that was made reactive: `,
|
|
|
11017
11015
|
}
|
|
11018
11016
|
} ;
|
|
11019
11017
|
function getSlotsProxy(instance) {
|
|
11020
|
-
return
|
|
11018
|
+
return new Proxy(instance.slots, {
|
|
11021
11019
|
get(target, key) {
|
|
11022
11020
|
track(instance, "get", "$slots");
|
|
11023
11021
|
return target[key];
|
|
11024
11022
|
}
|
|
11025
|
-
})
|
|
11023
|
+
});
|
|
11026
11024
|
}
|
|
11027
11025
|
function createSetupContext(instance) {
|
|
11028
11026
|
const expose = (exposed) => {
|
|
@@ -11050,12 +11048,13 @@ Component that was made reactive: `,
|
|
|
11050
11048
|
};
|
|
11051
11049
|
{
|
|
11052
11050
|
let attrsProxy;
|
|
11051
|
+
let slotsProxy;
|
|
11053
11052
|
return Object.freeze({
|
|
11054
11053
|
get attrs() {
|
|
11055
11054
|
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
11056
11055
|
},
|
|
11057
11056
|
get slots() {
|
|
11058
|
-
return getSlotsProxy(instance);
|
|
11057
|
+
return slotsProxy || (slotsProxy = getSlotsProxy(instance));
|
|
11059
11058
|
},
|
|
11060
11059
|
get emit() {
|
|
11061
11060
|
return (event, ...args) => instance.emit(event, ...args);
|
|
@@ -11348,7 +11347,7 @@ Component that was made reactive: `,
|
|
|
11348
11347
|
return true;
|
|
11349
11348
|
}
|
|
11350
11349
|
|
|
11351
|
-
const version = "3.4.
|
|
11350
|
+
const version = "3.4.34";
|
|
11352
11351
|
const warn = warn$1 ;
|
|
11353
11352
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11354
11353
|
const devtools = devtools$1 ;
|
|
@@ -12010,7 +12009,7 @@ Component that was made reactive: `,
|
|
|
12010
12009
|
|
|
12011
12010
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12012
12011
|
if (key === "innerHTML" || key === "textContent") {
|
|
12013
|
-
if (value
|
|
12012
|
+
if (value == null) return;
|
|
12014
12013
|
el[key] = value;
|
|
12015
12014
|
return;
|
|
12016
12015
|
}
|