@cabloy/vue-runtime-core 3.4.39 → 3.4.41
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
|
@@ -4098,20 +4098,28 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4098
4098
|
};
|
|
4099
4099
|
return [hydrate, hydrateNode];
|
|
4100
4100
|
}
|
|
4101
|
+
function _getValidZova(instance) {
|
|
4102
|
+
while (instance) {
|
|
4103
|
+
if (instance.zova) return instance.zova;
|
|
4104
|
+
instance = instance.parent;
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4101
4107
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
4102
4108
|
let mismatchType;
|
|
4103
4109
|
let mismatchKey;
|
|
4104
4110
|
let actual;
|
|
4105
4111
|
let expected;
|
|
4106
|
-
const zova = instance
|
|
4112
|
+
const zova = _getValidZova(instance);
|
|
4107
4113
|
if (zova) {
|
|
4108
|
-
|
|
4114
|
+
const res = zova.meta.ssr._hydratePropHasMismatch(
|
|
4109
4115
|
el,
|
|
4110
4116
|
key,
|
|
4111
4117
|
clientValue,
|
|
4112
4118
|
vnode,
|
|
4113
4119
|
instance
|
|
4114
4120
|
);
|
|
4121
|
+
if (res.ignore) return false;
|
|
4122
|
+
clientValue = res.clientValue;
|
|
4115
4123
|
}
|
|
4116
4124
|
if (key === "class") {
|
|
4117
4125
|
actual = el.getAttribute("class");
|
|
@@ -4948,7 +4956,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4948
4956
|
() => !instance.isUnmounted && hydrateSubTree()
|
|
4949
4957
|
);
|
|
4950
4958
|
} else {
|
|
4951
|
-
const zova = instance.
|
|
4959
|
+
const zova = instance.zova;
|
|
4952
4960
|
if (zova) {
|
|
4953
4961
|
zova.meta.ssr._hydratingInc();
|
|
4954
4962
|
zova.meta.state.inited.wait().then(() => {
|
|
@@ -5004,7 +5012,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5004
5012
|
initialVNode = container = anchor = null;
|
|
5005
5013
|
} else {
|
|
5006
5014
|
let { next, bu, u, parent, vnode } = instance;
|
|
5007
|
-
const zova = instance.
|
|
5015
|
+
const zova = instance.zova;
|
|
5008
5016
|
if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
|
|
5009
5017
|
return;
|
|
5010
5018
|
}
|
|
@@ -3730,7 +3730,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3730
3730
|
() => !instance.isUnmounted && hydrateSubTree()
|
|
3731
3731
|
);
|
|
3732
3732
|
} else {
|
|
3733
|
-
const zova = instance.
|
|
3733
|
+
const zova = instance.zova;
|
|
3734
3734
|
if (zova) {
|
|
3735
3735
|
zova.meta.ssr._hydratingInc();
|
|
3736
3736
|
zova.meta.state.inited.wait().then(() => {
|
|
@@ -3771,7 +3771,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3771
3771
|
initialVNode = container = anchor = null;
|
|
3772
3772
|
} else {
|
|
3773
3773
|
let { next, bu, u, parent, vnode } = instance;
|
|
3774
|
-
const zova = instance.
|
|
3774
|
+
const zova = instance.zova;
|
|
3775
3775
|
if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
|
|
3776
3776
|
return;
|
|
3777
3777
|
}
|
|
@@ -4115,20 +4115,28 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4115
4115
|
};
|
|
4116
4116
|
return [hydrate, hydrateNode];
|
|
4117
4117
|
}
|
|
4118
|
+
function _getValidZova(instance) {
|
|
4119
|
+
while (instance) {
|
|
4120
|
+
if (instance.zova) return instance.zova;
|
|
4121
|
+
instance = instance.parent;
|
|
4122
|
+
}
|
|
4123
|
+
}
|
|
4118
4124
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
4119
4125
|
let mismatchType;
|
|
4120
4126
|
let mismatchKey;
|
|
4121
4127
|
let actual;
|
|
4122
4128
|
let expected;
|
|
4123
|
-
const zova = instance
|
|
4129
|
+
const zova = _getValidZova(instance);
|
|
4124
4130
|
if (zova) {
|
|
4125
|
-
|
|
4131
|
+
const res = zova.meta.ssr._hydratePropHasMismatch(
|
|
4126
4132
|
el,
|
|
4127
4133
|
key,
|
|
4128
4134
|
clientValue,
|
|
4129
4135
|
vnode,
|
|
4130
4136
|
instance
|
|
4131
4137
|
);
|
|
4138
|
+
if (res.ignore) return false;
|
|
4139
|
+
clientValue = res.clientValue;
|
|
4132
4140
|
}
|
|
4133
4141
|
if (key === "class") {
|
|
4134
4142
|
actual = el.getAttribute("class");
|
|
@@ -5003,7 +5011,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5003
5011
|
() => !instance.isUnmounted && hydrateSubTree()
|
|
5004
5012
|
);
|
|
5005
5013
|
} else {
|
|
5006
|
-
const zova = instance.
|
|
5014
|
+
const zova = instance.zova;
|
|
5007
5015
|
if (zova) {
|
|
5008
5016
|
zova.meta.ssr._hydratingInc();
|
|
5009
5017
|
zova.meta.state.inited.wait().then(() => {
|
|
@@ -5059,7 +5067,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5059
5067
|
initialVNode = container = anchor = null;
|
|
5060
5068
|
} else {
|
|
5061
5069
|
let { next, bu, u, parent, vnode } = instance;
|
|
5062
|
-
const zova = instance.
|
|
5070
|
+
const zova = instance.zova;
|
|
5063
5071
|
if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
|
|
5064
5072
|
return;
|
|
5065
5073
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/vue-runtime-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.41",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -47,6 +47,6 @@
|
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@vue/shared": "3.4.37",
|
|
50
|
-
"@vue/reactivity": "npm:@cabloy/vue-reactivity@3.4.
|
|
50
|
+
"@vue/reactivity": "npm:@cabloy/vue-reactivity@3.4.41"
|
|
51
51
|
}
|
|
52
52
|
}
|