octane 0.1.5 → 0.1.9

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 (71) hide show
  1. package/README.md +5 -2
  2. package/dist/compiler/bundler.js +1016 -0
  3. package/dist/compiler/client-only-server.js +649 -0
  4. package/dist/compiler/compile-renderer-boundaries.js +1080 -0
  5. package/dist/compiler/compile-universal.js +2172 -0
  6. package/dist/compiler/compile.js +7113 -694
  7. package/dist/compiler/hook-deps.js +367 -34
  8. package/dist/compiler/hydrate-boundaries.js +1505 -0
  9. package/dist/compiler/index.js +1 -0
  10. package/dist/compiler/jsx-namespace.js +19 -0
  11. package/dist/compiler/native-change-diagnostics.js +503 -0
  12. package/dist/compiler/renderer-boundaries.js +475 -0
  13. package/dist/compiler/renderers.js +548 -0
  14. package/dist/compiler/slot-hooks.js +905 -61
  15. package/dist/compiler/vite.d.ts +66 -0
  16. package/dist/compiler/vite.js +282 -124
  17. package/dist/compiler/volar.js +35 -4
  18. package/dist/component-flags.d.ts +6 -0
  19. package/dist/component-flags.js +15 -0
  20. package/dist/constants.d.ts +44 -6
  21. package/dist/constants.js +32 -1
  22. package/dist/dom-tables.d.ts +1 -0
  23. package/dist/dom-tables.js +8 -0
  24. package/dist/html-tree-validation.d.ts +32 -0
  25. package/dist/html-tree-validation.js +150 -0
  26. package/dist/hydration/condition.d.ts +5 -0
  27. package/dist/hydration/condition.js +15 -0
  28. package/dist/hydration/idle.d.ts +7 -0
  29. package/dist/hydration/idle.js +22 -0
  30. package/dist/hydration/index.d.ts +12 -0
  31. package/dist/hydration/index.js +16 -0
  32. package/dist/hydration/interaction-config.d.ts +2 -0
  33. package/dist/hydration/interaction-config.js +11 -0
  34. package/dist/hydration/interaction.d.ts +7 -0
  35. package/dist/hydration/interaction.js +35 -0
  36. package/dist/hydration/load.d.ts +4 -0
  37. package/dist/hydration/load.js +15 -0
  38. package/dist/hydration/media.d.ts +4 -0
  39. package/dist/hydration/media.js +22 -0
  40. package/dist/hydration/never.d.ts +4 -0
  41. package/dist/hydration/never.js +12 -0
  42. package/dist/hydration/types.d.ts +75 -0
  43. package/dist/hydration/types.js +0 -0
  44. package/dist/hydration/visible.d.ts +8 -0
  45. package/dist/hydration/visible.js +68 -0
  46. package/dist/index.d.ts +4 -2
  47. package/dist/index.js +55 -2
  48. package/dist/profiling.d.ts +139 -0
  49. package/dist/profiling.js +428 -0
  50. package/dist/react/fiber-adapter.d.ts +37 -0
  51. package/dist/react/fiber-adapter.js +57 -0
  52. package/dist/react/index.d.ts +55 -0
  53. package/dist/react/index.js +391 -0
  54. package/dist/react/server.d.ts +31 -0
  55. package/dist/react/server.js +71 -0
  56. package/dist/react/shared.d.ts +44 -0
  57. package/dist/react/shared.js +47 -0
  58. package/dist/runtime.d.ts +251 -65
  59. package/dist/runtime.js +5680 -1106
  60. package/dist/runtime.server.d.ts +261 -44
  61. package/dist/runtime.server.js +2716 -493
  62. package/dist/sanitize-url.js +32 -0
  63. package/dist/server/index.d.ts +1 -1
  64. package/dist/server/index.js +52 -0
  65. package/dist/server-rpc-client.d.ts +5 -0
  66. package/dist/server-rpc-client.js +36 -0
  67. package/dist/universal.d.ts +574 -0
  68. package/dist/universal.js +5531 -0
  69. package/dist/version.d.ts +1 -0
  70. package/dist/version.js +5 -0
  71. package/package.json +56 -3
package/README.md CHANGED
@@ -9,8 +9,11 @@ Octane is a fast, TypeScript-first UI framework, and the successor to
9
9
  already know, a compiler that keeps the runtime small and fast, no rules of
10
10
  hooks, and no hand-maintained dependency arrays in the common case. Omit a hook's
11
11
  dependency list and the compiler derives it from the closure; explicit arrays
12
- retain React semantics, while `null` means every render. This package ships both
13
- the runtime and compiler, with the compiler exposed at `octane/compiler`.
12
+ retain React semantics, while `null` means every render. Locally declared custom
13
+ hooks in full-compiled `.tsrx`/`.tsx` modules also qualify when they transparently
14
+ forward their callback and final dependency parameter to a supported hook. This
15
+ package ships both the runtime and compiler, with the compiler exposed at
16
+ `octane/compiler`.
14
17
 
15
18
  For the full story, see the
16
19
  [main README](https://github.com/octanejs/octane#readme).