@octanejs/vite-plugin 0.1.57 → 0.1.59
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 +5 -4
- package/src/index.js +7 -3
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -47,17 +47,18 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ripple-ts/adapter": "^0.4.0",
|
|
50
|
-
"@octanejs/app-core": "0.0.
|
|
50
|
+
"@octanejs/app-core": "0.0.55"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"vite": "^8.0.16",
|
|
54
|
-
"octane": "^0.3
|
|
54
|
+
"octane": "^0.4.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/jsdom": "30.0.0",
|
|
58
58
|
"@types/node": "^24.13.3",
|
|
59
59
|
"playwright": "^1.61.1",
|
|
60
|
+
"playwright-webkit": "1.63.0",
|
|
60
61
|
"vite": "^8.1.5",
|
|
61
|
-
"octane": "0.3
|
|
62
|
+
"octane": "0.4.3"
|
|
62
63
|
}
|
|
63
64
|
}
|
package/src/index.js
CHANGED
|
@@ -265,7 +265,7 @@ function collect_hydrate_module_paths(config) {
|
|
|
265
265
|
* it). An explicit `profile` (true or false) always takes precedence over
|
|
266
266
|
* `devtools`.
|
|
267
267
|
*
|
|
268
|
-
* @param {{ hmr?: boolean, profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
|
|
268
|
+
* @param {{ hmr?: boolean, 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'], exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
|
|
269
269
|
* @returns {Plugin[]}
|
|
270
270
|
*/
|
|
271
271
|
export function octane(inlineOptions = {}) {
|
|
@@ -738,7 +738,7 @@ export function octane(inlineOptions = {}) {
|
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
|
|
741
|
-
const request = nodeRequestToWebRequest(req);
|
|
741
|
+
const request = nodeRequestToWebRequest(req, res);
|
|
742
742
|
const context = createContext(request, freshMatch.params);
|
|
743
743
|
Object.defineProperty(context, 'clientBuild', { get: () => clientBuild.metadata() });
|
|
744
744
|
const globalMiddlewares = octaneConfig.middlewares;
|
|
@@ -1098,6 +1098,7 @@ export function octane(inlineOptions = {}) {
|
|
|
1098
1098
|
* strong?: boolean,
|
|
1099
1099
|
* textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'],
|
|
1100
1100
|
* knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'],
|
|
1101
|
+
* domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'],
|
|
1101
1102
|
* exclude?: string[],
|
|
1102
1103
|
* requireDirective?: boolean,
|
|
1103
1104
|
* renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions,
|
|
@@ -1120,6 +1121,9 @@ export function octane(inlineOptions = {}) {
|
|
|
1120
1121
|
if (inlineOptions.knownAttributeSpreads !== undefined) {
|
|
1121
1122
|
compilerOptions.knownAttributeSpreads = inlineOptions.knownAttributeSpreads;
|
|
1122
1123
|
}
|
|
1124
|
+
if (inlineOptions.domBindingFixedProps !== undefined) {
|
|
1125
|
+
compilerOptions.domBindingFixedProps = inlineOptions.domBindingFixedProps;
|
|
1126
|
+
}
|
|
1123
1127
|
if (inlineOptions.exclude !== undefined) compilerOptions.exclude = inlineOptions.exclude;
|
|
1124
1128
|
if (inlineOptions.requireDirective !== undefined) {
|
|
1125
1129
|
compilerOptions.requireDirective = inlineOptions.requireDirective;
|
|
@@ -1191,7 +1195,7 @@ export function defineConfig(/** @type {OctaneConfigOptions} */ options) {
|
|
|
1191
1195
|
*/
|
|
1192
1196
|
async function handleRpcRequest(req, res, vite, trustProxy, config) {
|
|
1193
1197
|
try {
|
|
1194
|
-
const webRequest = nodeRequestToWebRequest(req);
|
|
1198
|
+
const webRequest = nodeRequestToWebRequest(req, res);
|
|
1195
1199
|
const asyncContext = getDevAsyncContext(config);
|
|
1196
1200
|
const signalOwners = await loadDevSignalRequestHooks(vite);
|
|
1197
1201
|
|
package/types/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export interface OctanePluginOptions {
|
|
|
21
21
|
textTypes?: OctaneVitePluginOptions['textTypes'];
|
|
22
22
|
/** Fixed native attribute factories and optional JSX shorthand providers. */
|
|
23
23
|
knownAttributeSpreads?: OctaneVitePluginOptions['knownAttributeSpreads'];
|
|
24
|
+
/** Opt in to fixed primitive child props by name; keep text and IDs live for sharing. */
|
|
25
|
+
domBindingFixedProps?: OctaneVitePluginOptions['domBindingFixedProps'];
|
|
24
26
|
/**
|
|
25
27
|
* Path fragments the compiler's plain `.ts`/`.js` hook-slotting pass must
|
|
26
28
|
* skip. Prefer package manifest `octane.hookSlots.manual` declarations.
|