octane 0.2.10 → 0.2.12

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 (58) hide show
  1. package/dist/cjs/context-epoch.cjs +38 -0
  2. package/dist/cjs/dom-stage.cjs +896 -0
  3. package/dist/cjs/error-codes.server.generated.cjs +5 -0
  4. package/dist/cjs/hook-slot-cache.cjs +115 -0
  5. package/dist/cjs/index.cjs +7 -0
  6. package/dist/cjs/runtime.cjs +4303 -1733
  7. package/dist/cjs/runtime.server.cjs +907 -248
  8. package/dist/cjs/server/index.cjs +5 -0
  9. package/dist/cjs/signals/graph.cjs +3 -0
  10. package/dist/cjs/signals/read-protocol.cjs +22 -0
  11. package/dist/cjs/trusted-html.cjs +30 -0
  12. package/dist/cjs/version.cjs +1 -1
  13. package/dist/compiler/bundler.js +18 -17
  14. package/dist/compiler/compile.js +729 -115
  15. package/dist/compiler/hook-deps.js +733 -10
  16. package/dist/compiler/index.d.ts +1 -1
  17. package/dist/compiler/native-change-diagnostics.js +32 -38
  18. package/dist/compiler/native-read-diagnostics.js +23 -1
  19. package/dist/compiler/native-read-types.js +30 -7
  20. package/dist/compiler/parser.node.js +1 -1
  21. package/dist/compiler/renderer-boundaries.js +40 -0
  22. package/dist/compiler/slot-hooks.d.ts +3 -1
  23. package/dist/compiler/slot-hooks.js +114 -27
  24. package/dist/compiler/strong-auto-memo.js +90 -0
  25. package/dist/compiler/strong-html.js +143 -0
  26. package/dist/compiler/strong-mode.js +764 -66
  27. package/dist/compiler/strong-template-policy.js +307 -0
  28. package/dist/compiler/volar.LICENSES.txt +1 -1
  29. package/dist/compiler/volar.js +84 -1298
  30. package/dist/context-epoch.d.ts +2 -0
  31. package/dist/context-epoch.js +13 -0
  32. package/dist/dom-stage.d.ts +52 -0
  33. package/dist/dom-stage.js +872 -0
  34. package/dist/error-codes.server.generated.d.ts +1 -0
  35. package/dist/error-codes.server.generated.js +5 -0
  36. package/dist/hook-slot-cache.d.ts +2 -0
  37. package/dist/hook-slot-cache.js +91 -0
  38. package/dist/index.d.ts +2 -1
  39. package/dist/index.js +6 -0
  40. package/dist/jsx-runtime-strong.d.ts +33 -0
  41. package/dist/jsx-runtime.d.ts +19 -2
  42. package/dist/public-types.d.ts +1 -1
  43. package/dist/runtime.d.ts +96 -34
  44. package/dist/runtime.js +4292 -1733
  45. package/dist/runtime.server.d.ts +29 -23
  46. package/dist/runtime.server.js +903 -248
  47. package/dist/server/index.d.ts +2 -1
  48. package/dist/server/index.js +4 -0
  49. package/dist/signals/graph.d.ts +2 -1
  50. package/dist/signals/graph.js +4 -0
  51. package/dist/signals/read-protocol.d.ts +6 -0
  52. package/dist/signals/read-protocol.js +18 -0
  53. package/dist/trusted-html.d.ts +17 -0
  54. package/dist/trusted-html.js +6 -0
  55. package/dist/universal-core.d.ts +6 -0
  56. package/dist/universal-core.js +227 -218
  57. package/dist/version.js +1 -1
  58. package/package.json +12 -5
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var context_epoch_exports = {};
20
+ __export(context_epoch_exports, {
21
+ bumpContextEpoch: () => bumpContextEpoch,
22
+ contextEpochNow: () => contextEpochNow
23
+ });
24
+ module.exports = __toCommonJS(context_epoch_exports);
25
+ const EPOCH_CELL = globalThis[/* @__PURE__ */ Symbol.for("octane.contextEpoch")] ??= {
26
+ value: 0
27
+ };
28
+ function contextEpochNow() {
29
+ return EPOCH_CELL.value;
30
+ }
31
+ function bumpContextEpoch() {
32
+ EPOCH_CELL.value++;
33
+ }
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ bumpContextEpoch,
37
+ contextEpochNow
38
+ });