@octanejs/vite-plugin 0.6.0 → 0.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/vite-plugin",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -51,17 +51,17 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@octanejs/app-core": "0.3.0",
54
+ "@octanejs/app-core": "0.3.1",
55
55
  "@ripple-ts/adapter": "^0.4.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "octane": "^0.17.0",
58
+ "octane": "^0.18.0",
59
59
  "vite": "^8.0.16"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/jsdom": "30.0.0",
63
63
  "@types/node": "^24.13.3",
64
- "octane": "0.17.0",
64
+ "octane": "0.18.0",
65
65
  "playwright": "^1.61.1",
66
66
  "playwright-webkit": "1.63.0",
67
67
  "vite": "^8.1.5"
package/src/index.js CHANGED
@@ -486,7 +486,7 @@ async function hydrate_entry_features(context, config, entries, clientBuild, pro
486
486
  * it). An explicit `profile` (true or false) always takes precedence over
487
487
  * `devtools`.
488
488
  *
489
- * @param {{ hmr?: boolean, output?: 'js' | 'ts', profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'], opaqueSignalHandles?: boolean, exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
489
+ * @param {{ hmr?: boolean, output?: 'js' | 'ts', profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'], opaqueSignalHandles?: boolean, exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'], dataWorker?: string, data?: boolean }} [inlineOptions]
490
490
  * @returns {Plugin[]}
491
491
  */
492
492
  export function octane(inlineOptions = {}) {
@@ -1478,6 +1478,8 @@ export function octane(inlineOptions = {}) {
1478
1478
  * requireDirective?: boolean,
1479
1479
  * renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions,
1480
1480
  * cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'],
1481
+ * dataWorker?: string,
1482
+ * data?: boolean,
1481
1483
  * __onIndependentWidgets?: (id: string, environment: string, templates: any[], streamedSignals: boolean) => void,
1482
1484
  * __clientBuildId?: () => string,
1483
1485
  * }}
@@ -1511,6 +1513,8 @@ export function octane(inlineOptions = {}) {
1511
1513
  if (inlineOptions.cssModuleConstants !== undefined) {
1512
1514
  compilerOptions.cssModuleConstants = inlineOptions.cssModuleConstants;
1513
1515
  }
1516
+ if (inlineOptions.dataWorker !== undefined) compilerOptions.dataWorker = inlineOptions.dataWorker;
1517
+ if (inlineOptions.data !== undefined) compilerOptions.data = inlineOptions.data;
1514
1518
  const compilerPlugin = /** @type {Plugin} */ (octaneCompiler(compilerOptions));
1515
1519
  const compilerConfigHook = compilerPlugin.config;
1516
1520
  if (typeof compilerConfigHook === 'function') {
package/types/index.d.ts CHANGED
@@ -55,6 +55,15 @@ export interface OctanePluginOptions {
55
55
  renderers?: ExperimentalRendererConfigOptions;
56
56
  /** @experimental Authenticate immutable CSS-module exports in production builds. */
57
57
  cssModuleConstants?: OctaneVitePluginOptions['cssModuleConstants'];
58
+ /**
59
+ * The app's data worker module, which calls `serveDataOwner` from
60
+ * `octane/data`. Client builds emit it at `/_octane/data-worker.js`, and the
61
+ * dev server serves it there, so every deploy's tabs share one owner through
62
+ * `sharedOwner`. Resolved from the Vite project root.
63
+ */
64
+ dataWorker?: OctaneVitePluginOptions['dataWorker'];
65
+ /** The `octane/data` contract check and generated `octane/data/manifest`. */
66
+ data?: OctaneVitePluginOptions['data'];
58
67
  }
59
68
 
60
69
  /** The Octane compiler plugin plus Vite app/metaframework integration. */