@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
package/dist/vue.cjs.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -5303,7 +5303,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5303
5303
|
return vm;
|
|
5304
5304
|
}
|
|
5305
5305
|
}
|
|
5306
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5306
|
+
Vue.version = `2.6.14-compat:${"3.4.34"}`;
|
|
5307
5307
|
Vue.config = singletonApp.config;
|
|
5308
5308
|
Vue.use = (plugin, ...options) => {
|
|
5309
5309
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9297,7 +9297,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9297
9297
|
const modifiers = getModelModifiers(props, name);
|
|
9298
9298
|
const res = customRef((track, trigger) => {
|
|
9299
9299
|
let localValue;
|
|
9300
|
-
let prevSetValue;
|
|
9300
|
+
let prevSetValue = EMPTY_OBJ;
|
|
9301
9301
|
let prevEmittedValue;
|
|
9302
9302
|
watchSyncEffect(() => {
|
|
9303
9303
|
const propValue = props[name];
|
|
@@ -9312,7 +9312,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9312
9312
|
return options.get ? options.get(localValue) : localValue;
|
|
9313
9313
|
},
|
|
9314
9314
|
set(value) {
|
|
9315
|
-
if (!hasChanged(value, localValue)) {
|
|
9315
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
9316
9316
|
return;
|
|
9317
9317
|
}
|
|
9318
9318
|
const rawProps = i.vnode.props;
|
|
@@ -9323,7 +9323,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9323
9323
|
}
|
|
9324
9324
|
const emittedValue = options.set ? options.set(value) : value;
|
|
9325
9325
|
i.emit(`update:${name}`, emittedValue);
|
|
9326
|
-
if (value
|
|
9326
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
9327
9327
|
trigger();
|
|
9328
9328
|
}
|
|
9329
9329
|
prevSetValue = value;
|
|
@@ -10894,8 +10894,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10894
10894
|
refs: EMPTY_OBJ,
|
|
10895
10895
|
setupState: EMPTY_OBJ,
|
|
10896
10896
|
setupContext: null,
|
|
10897
|
-
attrsProxy: null,
|
|
10898
|
-
slotsProxy: null,
|
|
10899
10897
|
// suspense related
|
|
10900
10898
|
suspense,
|
|
10901
10899
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -11178,12 +11176,12 @@ const attrsProxyHandlers = {
|
|
|
11178
11176
|
}
|
|
11179
11177
|
} ;
|
|
11180
11178
|
function getSlotsProxy(instance) {
|
|
11181
|
-
return
|
|
11179
|
+
return new Proxy(instance.slots, {
|
|
11182
11180
|
get(target, key) {
|
|
11183
11181
|
track(instance, "get", "$slots");
|
|
11184
11182
|
return target[key];
|
|
11185
11183
|
}
|
|
11186
|
-
})
|
|
11184
|
+
});
|
|
11187
11185
|
}
|
|
11188
11186
|
function createSetupContext(instance) {
|
|
11189
11187
|
const expose = (exposed) => {
|
|
@@ -11211,12 +11209,13 @@ function createSetupContext(instance) {
|
|
|
11211
11209
|
};
|
|
11212
11210
|
{
|
|
11213
11211
|
let attrsProxy;
|
|
11212
|
+
let slotsProxy;
|
|
11214
11213
|
return Object.freeze({
|
|
11215
11214
|
get attrs() {
|
|
11216
11215
|
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
11217
11216
|
},
|
|
11218
11217
|
get slots() {
|
|
11219
|
-
return getSlotsProxy(instance);
|
|
11218
|
+
return slotsProxy || (slotsProxy = getSlotsProxy(instance));
|
|
11220
11219
|
},
|
|
11221
11220
|
get emit() {
|
|
11222
11221
|
return (event, ...args) => instance.emit(event, ...args);
|
|
@@ -11509,7 +11508,7 @@ function isMemoSame(cached, memo) {
|
|
|
11509
11508
|
return true;
|
|
11510
11509
|
}
|
|
11511
11510
|
|
|
11512
|
-
const version = "3.4.
|
|
11511
|
+
const version = "3.4.34";
|
|
11513
11512
|
const warn = warn$1 ;
|
|
11514
11513
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11515
11514
|
const devtools = devtools$1 ;
|
|
@@ -12127,7 +12126,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
12127
12126
|
|
|
12128
12127
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12129
12128
|
if (key === "innerHTML" || key === "textContent") {
|
|
12130
|
-
if (value
|
|
12129
|
+
if (value == null) return;
|
|
12131
12130
|
el[key] = value;
|
|
12132
12131
|
return;
|
|
12133
12132
|
}
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -4151,7 +4151,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
4151
4151
|
return vm;
|
|
4152
4152
|
}
|
|
4153
4153
|
}
|
|
4154
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
4154
|
+
Vue.version = `2.6.14-compat:${"3.4.34"}`;
|
|
4155
4155
|
Vue.config = singletonApp.config;
|
|
4156
4156
|
Vue.use = (plugin, ...options) => {
|
|
4157
4157
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7470,7 +7470,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
7470
7470
|
const modifiers = getModelModifiers(props, name);
|
|
7471
7471
|
const res = customRef((track, trigger) => {
|
|
7472
7472
|
let localValue;
|
|
7473
|
-
let prevSetValue;
|
|
7473
|
+
let prevSetValue = EMPTY_OBJ;
|
|
7474
7474
|
let prevEmittedValue;
|
|
7475
7475
|
watchSyncEffect(() => {
|
|
7476
7476
|
const propValue = props[name];
|
|
@@ -7485,7 +7485,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
7485
7485
|
return options.get ? options.get(localValue) : localValue;
|
|
7486
7486
|
},
|
|
7487
7487
|
set(value) {
|
|
7488
|
-
if (!hasChanged(value, localValue)) {
|
|
7488
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
7489
7489
|
return;
|
|
7490
7490
|
}
|
|
7491
7491
|
const rawProps = i.vnode.props;
|
|
@@ -7496,7 +7496,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
7496
7496
|
}
|
|
7497
7497
|
const emittedValue = options.set ? options.set(value) : value;
|
|
7498
7498
|
i.emit(`update:${name}`, emittedValue);
|
|
7499
|
-
if (value
|
|
7499
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
7500
7500
|
trigger();
|
|
7501
7501
|
}
|
|
7502
7502
|
prevSetValue = value;
|
|
@@ -8872,8 +8872,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
8872
8872
|
refs: EMPTY_OBJ,
|
|
8873
8873
|
setupState: EMPTY_OBJ,
|
|
8874
8874
|
setupContext: null,
|
|
8875
|
-
attrsProxy: null,
|
|
8876
|
-
slotsProxy: null,
|
|
8877
8875
|
// suspense related
|
|
8878
8876
|
suspense,
|
|
8879
8877
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -9169,7 +9167,7 @@ function isMemoSame(cached, memo) {
|
|
|
9169
9167
|
return true;
|
|
9170
9168
|
}
|
|
9171
9169
|
|
|
9172
|
-
const version = "3.4.
|
|
9170
|
+
const version = "3.4.34";
|
|
9173
9171
|
const warn$1 = NOOP;
|
|
9174
9172
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9175
9173
|
const devtools = void 0;
|
|
@@ -9773,7 +9771,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
9773
9771
|
|
|
9774
9772
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
9775
9773
|
if (key === "innerHTML" || key === "textContent") {
|
|
9776
|
-
if (value
|
|
9774
|
+
if (value == null) return;
|
|
9777
9775
|
el[key] = value;
|
|
9778
9776
|
return;
|
|
9779
9777
|
}
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -5246,7 +5246,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5246
5246
|
return vm;
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5249
|
+
Vue.version = `2.6.14-compat:${"3.4.34"}`;
|
|
5250
5250
|
Vue.config = singletonApp.config;
|
|
5251
5251
|
Vue.use = (plugin, ...options) => {
|
|
5252
5252
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9220,7 +9220,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9220
9220
|
const modifiers = getModelModifiers(props, name);
|
|
9221
9221
|
const res = customRef((track, trigger) => {
|
|
9222
9222
|
let localValue;
|
|
9223
|
-
let prevSetValue;
|
|
9223
|
+
let prevSetValue = EMPTY_OBJ;
|
|
9224
9224
|
let prevEmittedValue;
|
|
9225
9225
|
watchSyncEffect(() => {
|
|
9226
9226
|
const propValue = props[name];
|
|
@@ -9235,7 +9235,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9235
9235
|
return options.get ? options.get(localValue) : localValue;
|
|
9236
9236
|
},
|
|
9237
9237
|
set(value) {
|
|
9238
|
-
if (!hasChanged(value, localValue)) {
|
|
9238
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
9239
9239
|
return;
|
|
9240
9240
|
}
|
|
9241
9241
|
const rawProps = i.vnode.props;
|
|
@@ -9246,7 +9246,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
9246
9246
|
}
|
|
9247
9247
|
const emittedValue = options.set ? options.set(value) : value;
|
|
9248
9248
|
i.emit(`update:${name}`, emittedValue);
|
|
9249
|
-
if (value
|
|
9249
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
9250
9250
|
trigger();
|
|
9251
9251
|
}
|
|
9252
9252
|
prevSetValue = value;
|
|
@@ -10817,8 +10817,6 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10817
10817
|
refs: EMPTY_OBJ,
|
|
10818
10818
|
setupState: EMPTY_OBJ,
|
|
10819
10819
|
setupContext: null,
|
|
10820
|
-
attrsProxy: null,
|
|
10821
|
-
slotsProxy: null,
|
|
10822
10820
|
// suspense related
|
|
10823
10821
|
suspense,
|
|
10824
10822
|
suspenseId: suspense ? suspense.pendingId : 0,
|
|
@@ -11087,12 +11085,12 @@ const attrsProxyHandlers = {
|
|
|
11087
11085
|
}
|
|
11088
11086
|
} ;
|
|
11089
11087
|
function getSlotsProxy(instance) {
|
|
11090
|
-
return
|
|
11088
|
+
return new Proxy(instance.slots, {
|
|
11091
11089
|
get(target, key) {
|
|
11092
11090
|
track(instance, "get", "$slots");
|
|
11093
11091
|
return target[key];
|
|
11094
11092
|
}
|
|
11095
|
-
})
|
|
11093
|
+
});
|
|
11096
11094
|
}
|
|
11097
11095
|
function createSetupContext(instance) {
|
|
11098
11096
|
const expose = (exposed) => {
|
|
@@ -11120,12 +11118,13 @@ function createSetupContext(instance) {
|
|
|
11120
11118
|
};
|
|
11121
11119
|
{
|
|
11122
11120
|
let attrsProxy;
|
|
11121
|
+
let slotsProxy;
|
|
11123
11122
|
return Object.freeze({
|
|
11124
11123
|
get attrs() {
|
|
11125
11124
|
return attrsProxy || (attrsProxy = new Proxy(instance.attrs, attrsProxyHandlers));
|
|
11126
11125
|
},
|
|
11127
11126
|
get slots() {
|
|
11128
|
-
return getSlotsProxy(instance);
|
|
11127
|
+
return slotsProxy || (slotsProxy = getSlotsProxy(instance));
|
|
11129
11128
|
},
|
|
11130
11129
|
get emit() {
|
|
11131
11130
|
return (event, ...args) => instance.emit(event, ...args);
|
|
@@ -11418,7 +11417,7 @@ function isMemoSame(cached, memo) {
|
|
|
11418
11417
|
return true;
|
|
11419
11418
|
}
|
|
11420
11419
|
|
|
11421
|
-
const version = "3.4.
|
|
11420
|
+
const version = "3.4.34";
|
|
11422
11421
|
const warn = warn$1 ;
|
|
11423
11422
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11424
11423
|
const devtools = devtools$1 ;
|
|
@@ -12080,7 +12079,7 @@ function compatCoerceAttr(el, key, value, instance = null) {
|
|
|
12080
12079
|
|
|
12081
12080
|
function patchDOMProp(el, key, value, parentComponent) {
|
|
12082
12081
|
if (key === "innerHTML" || key === "textContent") {
|
|
12083
|
-
if (value
|
|
12082
|
+
if (value == null) return;
|
|
12084
12083
|
el[key] = value;
|
|
12085
12084
|
return;
|
|
12086
12085
|
}
|