octane 0.2.6 → 0.2.8
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 +5 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/runtime.cjs +773 -385
- package/dist/cjs/runtime.server.cjs +319 -76
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/bundler.js +6 -6
- package/dist/compiler/compile-universal.js +1 -1
- package/dist/compiler/compile.js +407 -126
- package/dist/compiler/context-use.js +154 -0
- package/dist/compiler/hook-deps.js +17 -1
- package/dist/compiler/index.d.ts +1 -3
- package/dist/compiler/native-read-diagnostics.js +21 -34
- package/dist/compiler/slot-hooks.d.ts +0 -1
- package/dist/compiler/slot-hooks.js +9 -3
- package/dist/compiler/strong-mode.js +716 -39
- package/dist/compiler/text-type-facts.js +38 -24
- package/dist/compiler/typescript.d.ts +8 -1
- package/dist/compiler/typescript.js +48 -20
- package/dist/compiler/vite.d.ts +6 -2
- package/dist/compiler/vite.js +85 -5
- package/dist/compiler/volar.LICENSES.txt +1 -1
- package/dist/compiler/volar.d.ts +1 -1
- package/dist/compiler/volar.js +3498 -3484
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/runtime.d.ts +19 -5
- package/dist/runtime.js +770 -385
- package/dist/runtime.server.d.ts +7 -6
- package/dist/runtime.server.js +319 -76
- package/dist/signals/index.d.ts +1 -1
- package/dist/signals/types.d.ts +1 -1
- package/dist/universal-core.d.ts +15 -0
- package/dist/universal-core.js +575 -83
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,6 +17,11 @@ wrapper is narrower: the wrapper must be locally declared in a fully compiled
|
|
|
17
17
|
parameter to a supported hook. This package ships both the runtime and compiler,
|
|
18
18
|
with the compiler exposed at `octane/compiler`.
|
|
19
19
|
|
|
20
|
+
[Signals](https://octanejs.dev/docs/signals) are stable. Import `createScope` and
|
|
21
|
+
`query` from `octane/signals`, or `useSignal$` from `octane/signals/client`, for
|
|
22
|
+
scoped state, derived values, async resources, and native component reads.
|
|
23
|
+
The standard compiler handles signals automatically; no extra option is needed.
|
|
24
|
+
|
|
20
25
|
Custom Node build pipelines can opt into project-aware string-child inference
|
|
21
26
|
through `octane/compiler/typescript`. See the
|
|
22
27
|
[type-aware text compilation guide](https://github.com/octanejs/octane/blob/main/docs/compiler-text-inference.md).
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -157,6 +157,7 @@ __export(index_exports, {
|
|
|
157
157
|
queueOwnRefDetach: () => import_runtime.queueOwnRefDetach,
|
|
158
158
|
queueRefAttach: () => import_runtime.queueRefAttach,
|
|
159
159
|
queueRefDetach: () => import_runtime.queueRefDetach,
|
|
160
|
+
registerWarmPlan: () => import_runtime.registerWarmPlan,
|
|
160
161
|
renderBlock: () => import_runtime.renderBlock,
|
|
161
162
|
replaceRef: () => import_runtime.replaceRef,
|
|
162
163
|
requestFormReset: () => import_runtime.requestFormReset,
|
|
@@ -384,6 +385,7 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
384
385
|
queueOwnRefDetach,
|
|
385
386
|
queueRefAttach,
|
|
386
387
|
queueRefDetach,
|
|
388
|
+
registerWarmPlan,
|
|
387
389
|
renderBlock,
|
|
388
390
|
replaceRef,
|
|
389
391
|
requestFormReset,
|