@vue/compat 3.2.30 → 3.2.31
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 +15 -3
- package/dist/vue.cjs.prod.js +14 -2
- package/dist/vue.esm-browser.js +15 -3
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +15 -3
- package/dist/vue.global.js +15 -3
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +15 -3
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +15 -3
- package/dist/vue.runtime.global.js +15 -3
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -6186,7 +6186,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
6186
6186
|
return vm;
|
|
6187
6187
|
}
|
|
6188
6188
|
}
|
|
6189
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
6189
|
+
Vue.version = `2.6.14-compat:${"3.2.31"}`;
|
|
6190
6190
|
Vue.config = singletonApp.config;
|
|
6191
6191
|
Vue.use = (p, ...options) => {
|
|
6192
6192
|
if (p && isFunction(p.install)) {
|
|
@@ -7010,7 +7010,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7010
7010
|
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
|
|
7011
7011
|
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
|
|
7012
7012
|
// skip props & children if this is hoisted static nodes
|
|
7013
|
-
|
|
7013
|
+
// #5405 in dev, always hydrate children for HMR
|
|
7014
|
+
{
|
|
7014
7015
|
if (dirs) {
|
|
7015
7016
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
7016
7017
|
}
|
|
@@ -10164,9 +10165,11 @@ const PublicInstanceProxyHandlers = {
|
|
|
10164
10165
|
const { data, setupState, ctx } = instance;
|
|
10165
10166
|
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
|
|
10166
10167
|
setupState[key] = value;
|
|
10168
|
+
return true;
|
|
10167
10169
|
}
|
|
10168
10170
|
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
10169
10171
|
data[key] = value;
|
|
10172
|
+
return true;
|
|
10170
10173
|
}
|
|
10171
10174
|
else if (hasOwn(instance.props, key)) {
|
|
10172
10175
|
warn$1(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
|
|
@@ -10200,6 +10203,15 @@ const PublicInstanceProxyHandlers = {
|
|
|
10200
10203
|
hasOwn(ctx, key) ||
|
|
10201
10204
|
hasOwn(publicPropertiesMap, key) ||
|
|
10202
10205
|
hasOwn(appContext.config.globalProperties, key));
|
|
10206
|
+
},
|
|
10207
|
+
defineProperty(target, key, descriptor) {
|
|
10208
|
+
if (descriptor.get != null) {
|
|
10209
|
+
this.set(target, key, descriptor.get(), null);
|
|
10210
|
+
}
|
|
10211
|
+
else if (descriptor.value != null) {
|
|
10212
|
+
this.set(target, key, descriptor.value, null);
|
|
10213
|
+
}
|
|
10214
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
10203
10215
|
}
|
|
10204
10216
|
};
|
|
10205
10217
|
{
|
|
@@ -11094,7 +11106,7 @@ function isMemoSame(cached, memo) {
|
|
|
11094
11106
|
}
|
|
11095
11107
|
|
|
11096
11108
|
// Core API ------------------------------------------------------------------
|
|
11097
|
-
const version = "3.2.
|
|
11109
|
+
const version = "3.2.31";
|
|
11098
11110
|
const _ssrUtils = {
|
|
11099
11111
|
createComponentInstance,
|
|
11100
11112
|
setupComponent,
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -4892,7 +4892,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
4892
4892
|
return vm;
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
4895
|
+
Vue.version = `2.6.14-compat:${"3.2.31"}`;
|
|
4896
4896
|
Vue.config = singletonApp.config;
|
|
4897
4897
|
Vue.use = (p, ...options) => {
|
|
4898
4898
|
if (p && isFunction(p.install)) {
|
|
@@ -5607,6 +5607,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
5607
5607
|
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
|
|
5608
5608
|
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
|
|
5609
5609
|
// skip props & children if this is hoisted static nodes
|
|
5610
|
+
// #5405 in dev, always hydrate children for HMR
|
|
5610
5611
|
if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
|
|
5611
5612
|
if (dirs) {
|
|
5612
5613
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
@@ -8439,9 +8440,11 @@ const PublicInstanceProxyHandlers = {
|
|
|
8439
8440
|
const { data, setupState, ctx } = instance;
|
|
8440
8441
|
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
|
|
8441
8442
|
setupState[key] = value;
|
|
8443
|
+
return true;
|
|
8442
8444
|
}
|
|
8443
8445
|
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
8444
8446
|
data[key] = value;
|
|
8447
|
+
return true;
|
|
8445
8448
|
}
|
|
8446
8449
|
else if (hasOwn(instance.props, key)) {
|
|
8447
8450
|
return false;
|
|
@@ -8465,6 +8468,15 @@ const PublicInstanceProxyHandlers = {
|
|
|
8465
8468
|
hasOwn(ctx, key) ||
|
|
8466
8469
|
hasOwn(publicPropertiesMap, key) ||
|
|
8467
8470
|
hasOwn(appContext.config.globalProperties, key));
|
|
8471
|
+
},
|
|
8472
|
+
defineProperty(target, key, descriptor) {
|
|
8473
|
+
if (descriptor.get != null) {
|
|
8474
|
+
this.set(target, key, descriptor.get(), null);
|
|
8475
|
+
}
|
|
8476
|
+
else if (descriptor.value != null) {
|
|
8477
|
+
this.set(target, key, descriptor.value, null);
|
|
8478
|
+
}
|
|
8479
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
8468
8480
|
}
|
|
8469
8481
|
};
|
|
8470
8482
|
const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ extend({}, PublicInstanceProxyHandlers, {
|
|
@@ -8997,7 +9009,7 @@ function isMemoSame(cached, memo) {
|
|
|
8997
9009
|
}
|
|
8998
9010
|
|
|
8999
9011
|
// Core API ------------------------------------------------------------------
|
|
9000
|
-
const version = "3.2.
|
|
9012
|
+
const version = "3.2.31";
|
|
9001
9013
|
const _ssrUtils = {
|
|
9002
9014
|
createComponentInstance,
|
|
9003
9015
|
setupComponent,
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -6032,7 +6032,7 @@ function createCompatVue(createApp, createSingletonApp) {
|
|
|
6032
6032
|
return vm;
|
|
6033
6033
|
}
|
|
6034
6034
|
}
|
|
6035
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
6035
|
+
Vue.version = `2.6.14-compat:${"3.2.31"}`;
|
|
6036
6036
|
Vue.config = singletonApp.config;
|
|
6037
6037
|
Vue.use = (p, ...options) => {
|
|
6038
6038
|
if (p && isFunction(p.install)) {
|
|
@@ -6856,7 +6856,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
6856
6856
|
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
|
|
6857
6857
|
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
|
|
6858
6858
|
// skip props & children if this is hoisted static nodes
|
|
6859
|
-
|
|
6859
|
+
// #5405 in dev, always hydrate children for HMR
|
|
6860
|
+
{
|
|
6860
6861
|
if (dirs) {
|
|
6861
6862
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
6862
6863
|
}
|
|
@@ -10010,9 +10011,11 @@ const PublicInstanceProxyHandlers = {
|
|
|
10010
10011
|
const { data, setupState, ctx } = instance;
|
|
10011
10012
|
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
|
|
10012
10013
|
setupState[key] = value;
|
|
10014
|
+
return true;
|
|
10013
10015
|
}
|
|
10014
10016
|
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
10015
10017
|
data[key] = value;
|
|
10018
|
+
return true;
|
|
10016
10019
|
}
|
|
10017
10020
|
else if (hasOwn(instance.props, key)) {
|
|
10018
10021
|
warn$1(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
|
|
@@ -10046,6 +10049,15 @@ const PublicInstanceProxyHandlers = {
|
|
|
10046
10049
|
hasOwn(ctx, key) ||
|
|
10047
10050
|
hasOwn(publicPropertiesMap, key) ||
|
|
10048
10051
|
hasOwn(appContext.config.globalProperties, key));
|
|
10052
|
+
},
|
|
10053
|
+
defineProperty(target, key, descriptor) {
|
|
10054
|
+
if (descriptor.get != null) {
|
|
10055
|
+
this.set(target, key, descriptor.get(), null);
|
|
10056
|
+
}
|
|
10057
|
+
else if (descriptor.value != null) {
|
|
10058
|
+
this.set(target, key, descriptor.value, null);
|
|
10059
|
+
}
|
|
10060
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
10049
10061
|
}
|
|
10050
10062
|
};
|
|
10051
10063
|
{
|
|
@@ -10936,7 +10948,7 @@ function isMemoSame(cached, memo) {
|
|
|
10936
10948
|
}
|
|
10937
10949
|
|
|
10938
10950
|
// Core API ------------------------------------------------------------------
|
|
10939
|
-
const version = "3.2.
|
|
10951
|
+
const version = "3.2.31";
|
|
10940
10952
|
/**
|
|
10941
10953
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
10942
10954
|
* @internal
|