octane 0.1.42 → 0.1.44
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/README.md +4 -0
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/runtime.cjs +605 -167
- package/dist/cjs/runtime.server.cjs +14 -4
- package/dist/cjs/server/index.cjs +5 -0
- package/dist/cjs/sub-slot.cjs +60 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/bundler.js +51 -2
- package/dist/compiler/compile.js +232 -48
- package/dist/compiler/css-module-constants.js +324 -0
- package/dist/compiler/css-module-imports.js +265 -0
- package/dist/compiler/index.d.ts +28 -0
- package/dist/compiler/vite.d.ts +24 -0
- package/dist/compiler/vite.js +208 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/runtime.d.ts +8 -8
- package/dist/runtime.js +605 -167
- package/dist/runtime.server.d.ts +14 -9
- package/dist/runtime.server.js +14 -4
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +6 -0
- package/dist/sub-slot.d.ts +32 -0
- package/dist/sub-slot.js +35 -0
- package/dist/universal-core.js +58 -24
- package/dist/universal-native.d.ts +1 -0
- package/dist/universal-native.js +7 -1
- package/dist/universal.d.ts +1 -0
- package/dist/universal.js +7 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,10 @@ Custom Node build pipelines can opt into project-aware string-child inference
|
|
|
21
21
|
through `octane/compiler/typescript`. See the
|
|
22
22
|
[type-aware text compilation guide](https://github.com/octanejs/octane/blob/main/docs/compiler-text-inference.md).
|
|
23
23
|
|
|
24
|
+
Vite builds can fold proven immutable CSS-module class strings into templates.
|
|
25
|
+
See the [CSS-module constants guide](https://github.com/octanejs/octane/blob/main/docs/compiler-css-module-constants.md)
|
|
26
|
+
for the provider contract and stylesheet-loading guarantees.
|
|
27
|
+
|
|
24
28
|
Direct Node or Bun server scripts can preload `octane/compiler/register` to
|
|
25
29
|
compile imported Octane components without going through Vite. See the
|
|
26
30
|
[SSR guide](https://github.com/octanejs/octane/blob/main/docs/ssr.md#run-an-ssg-script-directly).
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -83,6 +83,7 @@ __export(index_exports, {
|
|
|
83
83
|
createRoot: () => import_runtime.createRoot,
|
|
84
84
|
createScopedElement: () => import_runtime.createScopedElement,
|
|
85
85
|
createScopedValue: () => import_runtime.createScopedValue,
|
|
86
|
+
createSubSlot: () => import_sub_slot.createSubSlot,
|
|
86
87
|
delegateCaptureEvents: () => import_runtime.delegateCaptureEvents,
|
|
87
88
|
delegateEvents: () => import_runtime.delegateEvents,
|
|
88
89
|
descriptorChildren: () => import_runtime.descriptorChildren,
|
|
@@ -189,6 +190,7 @@ __export(index_exports, {
|
|
|
189
190
|
startTransition: () => import_runtime.startTransition,
|
|
190
191
|
styleResource: () => import_runtime.styleResource,
|
|
191
192
|
stylesheetResource: () => import_runtime.stylesheetResource,
|
|
193
|
+
subSlot: () => import_sub_slot.subSlot,
|
|
192
194
|
switchBlock: () => import_runtime.switchBlock,
|
|
193
195
|
template: () => import_runtime.template,
|
|
194
196
|
textHole: () => import_runtime.textHole,
|
|
@@ -228,6 +230,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
228
230
|
var import_version = require("./version.cjs");
|
|
229
231
|
var import_event_capture = require("./hydration/event-capture.cjs");
|
|
230
232
|
var import_behavior_root = require("./behavior-root.cjs");
|
|
233
|
+
var import_sub_slot = require("./sub-slot.cjs");
|
|
231
234
|
var import_runtime = require("./runtime.cjs");
|
|
232
235
|
var import_server_rpc_client = require("./server-rpc-client.cjs");
|
|
233
236
|
var import_method_dep = require("./method-dep.cjs");
|
|
@@ -298,6 +301,7 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
298
301
|
createRoot,
|
|
299
302
|
createScopedElement,
|
|
300
303
|
createScopedValue,
|
|
304
|
+
createSubSlot,
|
|
301
305
|
delegateCaptureEvents,
|
|
302
306
|
delegateEvents,
|
|
303
307
|
descriptorChildren,
|
|
@@ -404,6 +408,7 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
404
408
|
startTransition,
|
|
405
409
|
styleResource,
|
|
406
410
|
stylesheetResource,
|
|
411
|
+
subSlot,
|
|
407
412
|
switchBlock,
|
|
408
413
|
template,
|
|
409
414
|
textHole,
|