@octanejs/app-core 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/codegen.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/app-core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -79,10 +79,10 @@
79
79
  "esbuild": "^0.28.1"
80
80
  },
81
81
  "peerDependencies": {
82
- "octane": "0.1.9"
82
+ "octane": "0.1.10"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@types/node": "^24.3.0",
86
- "octane": "0.1.9"
86
+ "octane": "0.1.10"
87
87
  }
88
88
  }
package/src/codegen.js CHANGED
@@ -108,6 +108,8 @@ export function write_project_generated_file(options, name, source) {
108
108
  * avoids requiring `unsafe-eval` under a nonce-based Content Security Policy.
109
109
  *
110
110
  * octane specifics:
111
+ * - `initializeHydrationEventCapture()` runs before any async route work so
112
+ * interaction boundaries can preserve intent that precedes `hydrateRoot()`.
111
113
  * - `import { hydrateRoot } from 'octane'` (NO `mount`).
112
114
  * - `hydrateRoot(container, body, props)` signature (container FIRST, React-18
113
115
  * shape) — no `{ target, props }` wrapper.
@@ -154,7 +156,9 @@ export function create_client_entry_source(options = {}) {
154
156
  return `// Auto-generated by ${generatedBy}.
155
157
  // This file is written to the active integration's project cache.
156
158
 
157
- import { hydrateRoot, Suspense, ErrorBoundary, createElement } from ${JSON.stringify(runtimeModuleId)};
159
+ import { hydrateRoot, initializeHydrationEventCapture, Suspense, ErrorBoundary, createElement } from ${JSON.stringify(runtimeModuleId)};
160
+
161
+ initializeHydrationEventCapture();
158
162
 
159
163
  // Static import map (production): every module the server may name in
160
164
  // #__octane_data, as bundle-analyzable dynamic imports. Empty in dev.