@unsetsoft/ryunixjs 1.2.5-canary.10 → 1.2.5-canary.11

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.
@@ -893,15 +893,7 @@ function commitRoot() {
893
893
  if (process.env.NODE_ENV !== 'production' && process.env.RYUNIX_DEBUG) {
894
894
  console.log(`[Ryunix Debug] commitRoot - isHydrating: ${state.isHydrating}, hydrationFailed: ${state.hydrationFailed}`);
895
895
  }
896
- if (state.hydrationFailed) {
897
- if (process.env.NODE_ENV !== 'production' && process.env.RYUNIX_DEBUG) {
898
- console.log('[Ryunix Debug] Hydration failed. Clearing container.');
899
- }
900
- const container = state.containerRoot || finishedWork.dom;
901
- if (container) {
902
- container.textContent = '';
903
- }
904
- }
896
+ if (state.hydrationFailed) ;
905
897
  else {
906
898
  // If there is a cursor left, it means these are SSR nodes that weren't matched
907
899
  // by any client fiber. We must remove them to avoid duplication.
@@ -2126,9 +2118,10 @@ var hooks = /*#__PURE__*/Object.freeze({
2126
2118
  });
2127
2119
 
2128
2120
  const getHydrationPolicy = () => {
2129
- const recoverRaw = process.env.RYUNIX_HYDRATION_RECOVER || 'boundary';
2130
- const boundariesRaw = process.env.RYUNIX_HYDRATION_BOUNDARIES || 'route';
2131
- const strict = process.env.RYUNIX_HYDRATION_STRICT === 'true';
2121
+ const env = typeof process !== 'undefined' && process.env ? process.env : {};
2122
+ const recoverRaw = env.RYUNIX_HYDRATION_RECOVER || 'boundary';
2123
+ const boundariesRaw = env.RYUNIX_HYDRATION_BOUNDARIES || 'route';
2124
+ const strict = env.RYUNIX_HYDRATION_STRICT === 'true';
2132
2125
  const recover = recoverRaw === 'none' || recoverRaw === 'root' ? recoverRaw : 'boundary';
2133
2126
  const boundaries = boundariesRaw === 'server-only' || boundariesRaw === 'all-layouts'
2134
2127
  ? boundariesRaw