@vue/runtime-core 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/runtime-core.cjs.js
CHANGED
|
@@ -4152,7 +4152,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4152
4152
|
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
|
|
4153
4153
|
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
|
|
4154
4154
|
// skip props & children if this is hoisted static nodes
|
|
4155
|
-
|
|
4155
|
+
// #5405 in dev, always hydrate children for HMR
|
|
4156
|
+
{
|
|
4156
4157
|
if (dirs) {
|
|
4157
4158
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
4158
4159
|
}
|
|
@@ -6686,9 +6687,11 @@ const PublicInstanceProxyHandlers = {
|
|
|
6686
6687
|
const { data, setupState, ctx } = instance;
|
|
6687
6688
|
if (setupState !== shared.EMPTY_OBJ && shared.hasOwn(setupState, key)) {
|
|
6688
6689
|
setupState[key] = value;
|
|
6690
|
+
return true;
|
|
6689
6691
|
}
|
|
6690
6692
|
else if (data !== shared.EMPTY_OBJ && shared.hasOwn(data, key)) {
|
|
6691
6693
|
data[key] = value;
|
|
6694
|
+
return true;
|
|
6692
6695
|
}
|
|
6693
6696
|
else if (shared.hasOwn(instance.props, key)) {
|
|
6694
6697
|
warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
|
|
@@ -6722,6 +6725,15 @@ const PublicInstanceProxyHandlers = {
|
|
|
6722
6725
|
shared.hasOwn(ctx, key) ||
|
|
6723
6726
|
shared.hasOwn(publicPropertiesMap, key) ||
|
|
6724
6727
|
shared.hasOwn(appContext.config.globalProperties, key));
|
|
6728
|
+
},
|
|
6729
|
+
defineProperty(target, key, descriptor) {
|
|
6730
|
+
if (descriptor.get != null) {
|
|
6731
|
+
this.set(target, key, descriptor.get(), null);
|
|
6732
|
+
}
|
|
6733
|
+
else if (descriptor.value != null) {
|
|
6734
|
+
this.set(target, key, descriptor.value, null);
|
|
6735
|
+
}
|
|
6736
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
6725
6737
|
}
|
|
6726
6738
|
};
|
|
6727
6739
|
{
|
|
@@ -7605,7 +7617,7 @@ function isMemoSame(cached, memo) {
|
|
|
7605
7617
|
}
|
|
7606
7618
|
|
|
7607
7619
|
// Core API ------------------------------------------------------------------
|
|
7608
|
-
const version = "3.2.
|
|
7620
|
+
const version = "3.2.31";
|
|
7609
7621
|
const _ssrUtils = {
|
|
7610
7622
|
createComponentInstance,
|
|
7611
7623
|
setupComponent,
|
|
@@ -3311,6 +3311,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3311
3311
|
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
|
|
3312
3312
|
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
|
|
3313
3313
|
// skip props & children if this is hoisted static nodes
|
|
3314
|
+
// #5405 in dev, always hydrate children for HMR
|
|
3314
3315
|
if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
|
|
3315
3316
|
if (dirs) {
|
|
3316
3317
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
@@ -5523,9 +5524,11 @@ const PublicInstanceProxyHandlers = {
|
|
|
5523
5524
|
const { data, setupState, ctx } = instance;
|
|
5524
5525
|
if (setupState !== shared.EMPTY_OBJ && shared.hasOwn(setupState, key)) {
|
|
5525
5526
|
setupState[key] = value;
|
|
5527
|
+
return true;
|
|
5526
5528
|
}
|
|
5527
5529
|
else if (data !== shared.EMPTY_OBJ && shared.hasOwn(data, key)) {
|
|
5528
5530
|
data[key] = value;
|
|
5531
|
+
return true;
|
|
5529
5532
|
}
|
|
5530
5533
|
else if (shared.hasOwn(instance.props, key)) {
|
|
5531
5534
|
return false;
|
|
@@ -5549,6 +5552,15 @@ const PublicInstanceProxyHandlers = {
|
|
|
5549
5552
|
shared.hasOwn(ctx, key) ||
|
|
5550
5553
|
shared.hasOwn(publicPropertiesMap, key) ||
|
|
5551
5554
|
shared.hasOwn(appContext.config.globalProperties, key));
|
|
5555
|
+
},
|
|
5556
|
+
defineProperty(target, key, descriptor) {
|
|
5557
|
+
if (descriptor.get != null) {
|
|
5558
|
+
this.set(target, key, descriptor.get(), null);
|
|
5559
|
+
}
|
|
5560
|
+
else if (descriptor.value != null) {
|
|
5561
|
+
this.set(target, key, descriptor.value, null);
|
|
5562
|
+
}
|
|
5563
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
5552
5564
|
}
|
|
5553
5565
|
};
|
|
5554
5566
|
const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ shared.extend({}, PublicInstanceProxyHandlers, {
|
|
@@ -6069,7 +6081,7 @@ function isMemoSame(cached, memo) {
|
|
|
6069
6081
|
}
|
|
6070
6082
|
|
|
6071
6083
|
// Core API ------------------------------------------------------------------
|
|
6072
|
-
const version = "3.2.
|
|
6084
|
+
const version = "3.2.31";
|
|
6073
6085
|
const _ssrUtils = {
|
|
6074
6086
|
createComponentInstance,
|
|
6075
6087
|
setupComponent,
|
|
@@ -4175,7 +4175,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4175
4175
|
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
|
|
4176
4176
|
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
|
|
4177
4177
|
// skip props & children if this is hoisted static nodes
|
|
4178
|
-
|
|
4178
|
+
// #5405 in dev, always hydrate children for HMR
|
|
4179
|
+
if ((process.env.NODE_ENV !== 'production') || forcePatchValue || patchFlag !== -1 /* HOISTED */) {
|
|
4179
4180
|
if (dirs) {
|
|
4180
4181
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
4181
4182
|
}
|
|
@@ -6760,9 +6761,11 @@ const PublicInstanceProxyHandlers = {
|
|
|
6760
6761
|
const { data, setupState, ctx } = instance;
|
|
6761
6762
|
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
|
|
6762
6763
|
setupState[key] = value;
|
|
6764
|
+
return true;
|
|
6763
6765
|
}
|
|
6764
6766
|
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
6765
6767
|
data[key] = value;
|
|
6768
|
+
return true;
|
|
6766
6769
|
}
|
|
6767
6770
|
else if (hasOwn(instance.props, key)) {
|
|
6768
6771
|
(process.env.NODE_ENV !== 'production') &&
|
|
@@ -6798,6 +6801,15 @@ const PublicInstanceProxyHandlers = {
|
|
|
6798
6801
|
hasOwn(ctx, key) ||
|
|
6799
6802
|
hasOwn(publicPropertiesMap, key) ||
|
|
6800
6803
|
hasOwn(appContext.config.globalProperties, key));
|
|
6804
|
+
},
|
|
6805
|
+
defineProperty(target, key, descriptor) {
|
|
6806
|
+
if (descriptor.get != null) {
|
|
6807
|
+
this.set(target, key, descriptor.get(), null);
|
|
6808
|
+
}
|
|
6809
|
+
else if (descriptor.value != null) {
|
|
6810
|
+
this.set(target, key, descriptor.value, null);
|
|
6811
|
+
}
|
|
6812
|
+
return Reflect.defineProperty(target, key, descriptor);
|
|
6801
6813
|
}
|
|
6802
6814
|
};
|
|
6803
6815
|
if ((process.env.NODE_ENV !== 'production') && !false) {
|
|
@@ -7701,7 +7713,7 @@ function isMemoSame(cached, memo) {
|
|
|
7701
7713
|
}
|
|
7702
7714
|
|
|
7703
7715
|
// Core API ------------------------------------------------------------------
|
|
7704
|
-
const version = "3.2.
|
|
7716
|
+
const version = "3.2.31";
|
|
7705
7717
|
const _ssrUtils = {
|
|
7706
7718
|
createComponentInstance,
|
|
7707
7719
|
setupComponent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.31",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.2.
|
|
36
|
-
"@vue/reactivity": "3.2.
|
|
35
|
+
"@vue/shared": "3.2.31",
|
|
36
|
+
"@vue/reactivity": "3.2.31"
|
|
37
37
|
}
|
|
38
38
|
}
|