@cabloy/vue-runtime-core 3.4.38 → 3.4.40
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,11 +4098,27 @@ 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;
|
|
4112
|
+
const zova = _getValidZova(instance);
|
|
4113
|
+
if (zova) {
|
|
4114
|
+
clientValue = zova.meta.ssr._hydratePropHasMismatch(
|
|
4115
|
+
el,
|
|
4116
|
+
key,
|
|
4117
|
+
clientValue,
|
|
4118
|
+
vnode,
|
|
4119
|
+
instance
|
|
4120
|
+
);
|
|
4121
|
+
}
|
|
4106
4122
|
if (key === "class") {
|
|
4107
4123
|
actual = el.getAttribute("class");
|
|
4108
4124
|
expected = shared.normalizeClass(clientValue);
|
|
@@ -4938,7 +4954,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4938
4954
|
() => !instance.isUnmounted && hydrateSubTree()
|
|
4939
4955
|
);
|
|
4940
4956
|
} else {
|
|
4941
|
-
const zova = instance.
|
|
4957
|
+
const zova = instance.zova;
|
|
4942
4958
|
if (zova) {
|
|
4943
4959
|
zova.meta.ssr._hydratingInc();
|
|
4944
4960
|
zova.meta.state.inited.wait().then(() => {
|
|
@@ -4994,7 +5010,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4994
5010
|
initialVNode = container = anchor = null;
|
|
4995
5011
|
} else {
|
|
4996
5012
|
let { next, bu, u, parent, vnode } = instance;
|
|
4997
|
-
const zova = instance.
|
|
5013
|
+
const zova = instance.zova;
|
|
4998
5014
|
if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
|
|
4999
5015
|
return;
|
|
5000
5016
|
}
|
|
@@ -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,11 +4115,27 @@ 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;
|
|
4129
|
+
const zova = _getValidZova(instance);
|
|
4130
|
+
if (zova) {
|
|
4131
|
+
clientValue = zova.meta.ssr._hydratePropHasMismatch(
|
|
4132
|
+
el,
|
|
4133
|
+
key,
|
|
4134
|
+
clientValue,
|
|
4135
|
+
vnode,
|
|
4136
|
+
instance
|
|
4137
|
+
);
|
|
4138
|
+
}
|
|
4123
4139
|
if (key === "class") {
|
|
4124
4140
|
actual = el.getAttribute("class");
|
|
4125
4141
|
expected = normalizeClass(clientValue);
|
|
@@ -4993,7 +5009,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4993
5009
|
() => !instance.isUnmounted && hydrateSubTree()
|
|
4994
5010
|
);
|
|
4995
5011
|
} else {
|
|
4996
|
-
const zova = instance.
|
|
5012
|
+
const zova = instance.zova;
|
|
4997
5013
|
if (zova) {
|
|
4998
5014
|
zova.meta.ssr._hydratingInc();
|
|
4999
5015
|
zova.meta.state.inited.wait().then(() => {
|
|
@@ -5049,7 +5065,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5049
5065
|
initialVNode = container = anchor = null;
|
|
5050
5066
|
} else {
|
|
5051
5067
|
let { next, bu, u, parent, vnode } = instance;
|
|
5052
|
-
const zova = instance.
|
|
5068
|
+
const zova = instance.zova;
|
|
5053
5069
|
if (zova && zova.meta.ssr.isRuntimeSsrPreHydration) {
|
|
5054
5070
|
return;
|
|
5055
5071
|
}
|
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.40",
|
|
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.40"
|
|
51
51
|
}
|
|
52
52
|
}
|