@cabloy/vue-runtime-core 3.4.44 → 3.4.46

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.
@@ -3151,9 +3151,11 @@ const normalizeSlot = (key, rawSlot, ctx) => {
3151
3151
  }
3152
3152
  const normalized = withCtx((...args) => {
3153
3153
  if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
3154
- warn$1(
3155
- `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
3156
- );
3154
+ if (typeof window !== "undefined") {
3155
+ warn$1(
3156
+ `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
3157
+ );
3158
+ }
3157
3159
  }
3158
3160
  return normalizeSlotValue(rawSlot(...args));
3159
3161
  }, ctx);
@@ -4937,7 +4939,9 @@ function baseCreateRenderer(options, createHydrationFns) {
4937
4939
  invokeVNodeHook(vnodeHook, parent, initialVNode);
4938
4940
  }
4939
4941
  toggleRecurse(instance, true);
4940
- if (el && hydrateNode) {
4942
+ const _zova = _getValidZova(instance);
4943
+ const _maybeAllowHydrate = !_zova || _zova.meta.ssr.isRuntimeSsrPreHydration;
4944
+ if (el && hydrateNode && _maybeAllowHydrate) {
4941
4945
  const hydrateSubTree = () => {
4942
4946
  {
4943
4947
  startMeasure(instance, `render`);
@@ -3736,7 +3736,9 @@ function baseCreateRenderer(options, createHydrationFns) {
3736
3736
  invokeVNodeHook(vnodeHook, parent, initialVNode);
3737
3737
  }
3738
3738
  toggleRecurse(instance, true);
3739
- if (el && hydrateNode) {
3739
+ const _zova = _getValidZova(instance);
3740
+ const _maybeAllowHydrate = !_zova || _zova.meta.ssr.isRuntimeSsrPreHydration;
3741
+ if (el && hydrateNode && _maybeAllowHydrate) {
3740
3742
  const hydrateSubTree = () => {
3741
3743
  instance.subTree = renderComponentRoot(instance);
3742
3744
  hydrateNode(
@@ -3157,9 +3157,11 @@ const normalizeSlot = (key, rawSlot, ctx) => {
3157
3157
  }
3158
3158
  const normalized = withCtx((...args) => {
3159
3159
  if (!!(process.env.NODE_ENV !== "production") && currentInstance && (!ctx || ctx.root === currentInstance.root)) {
3160
- warn$1(
3161
- `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
3162
- );
3160
+ if (typeof window !== "undefined") {
3161
+ warn$1(
3162
+ `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
3163
+ );
3164
+ }
3163
3165
  }
3164
3166
  return normalizeSlotValue(rawSlot(...args));
3165
3167
  }, ctx);
@@ -4992,7 +4994,9 @@ function baseCreateRenderer(options, createHydrationFns) {
4992
4994
  invokeVNodeHook(vnodeHook, parent, initialVNode);
4993
4995
  }
4994
4996
  toggleRecurse(instance, true);
4995
- if (el && hydrateNode) {
4997
+ const _zova = _getValidZova(instance);
4998
+ const _maybeAllowHydrate = !_zova || _zova.meta.ssr.isRuntimeSsrPreHydration;
4999
+ if (el && hydrateNode && _maybeAllowHydrate) {
4996
5000
  const hydrateSubTree = () => {
4997
5001
  if (!!(process.env.NODE_ENV !== "production")) {
4998
5002
  startMeasure(instance, `render`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.4.44",
3
+ "version": "3.4.46",
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.44"
50
+ "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.4.46"
51
51
  }
52
52
  }