octane 0.2.11 → 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 (55) 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/index.cjs +3 -0
  5. package/dist/cjs/runtime.cjs +3646 -1508
  6. package/dist/cjs/runtime.server.cjs +749 -137
  7. package/dist/cjs/server/index.cjs +3 -0
  8. package/dist/cjs/signals/graph.cjs +3 -0
  9. package/dist/cjs/signals/read-protocol.cjs +22 -0
  10. package/dist/cjs/trusted-html.cjs +30 -0
  11. package/dist/cjs/version.cjs +1 -1
  12. package/dist/compiler/bundler.js +18 -17
  13. package/dist/compiler/compile.js +304 -26
  14. package/dist/compiler/hook-deps.js +733 -10
  15. package/dist/compiler/index.d.ts +1 -1
  16. package/dist/compiler/native-change-diagnostics.js +32 -38
  17. package/dist/compiler/native-read-diagnostics.js +23 -1
  18. package/dist/compiler/native-read-types.js +30 -7
  19. package/dist/compiler/parser.node.js +1 -1
  20. package/dist/compiler/renderer-boundaries.js +40 -0
  21. package/dist/compiler/slot-hooks.d.ts +3 -1
  22. package/dist/compiler/slot-hooks.js +114 -27
  23. package/dist/compiler/strong-auto-memo.js +90 -0
  24. package/dist/compiler/strong-html.js +143 -0
  25. package/dist/compiler/strong-mode.js +764 -66
  26. package/dist/compiler/strong-template-policy.js +307 -0
  27. package/dist/compiler/volar.LICENSES.txt +1 -1
  28. package/dist/compiler/volar.js +84 -1298
  29. package/dist/context-epoch.d.ts +2 -0
  30. package/dist/context-epoch.js +13 -0
  31. package/dist/dom-stage.d.ts +52 -0
  32. package/dist/dom-stage.js +872 -0
  33. package/dist/error-codes.server.generated.d.ts +1 -0
  34. package/dist/error-codes.server.generated.js +5 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +2 -0
  37. package/dist/jsx-runtime-strong.d.ts +33 -0
  38. package/dist/jsx-runtime.d.ts +19 -2
  39. package/dist/public-types.d.ts +1 -1
  40. package/dist/runtime.d.ts +39 -3
  41. package/dist/runtime.js +3642 -1508
  42. package/dist/runtime.server.d.ts +24 -21
  43. package/dist/runtime.server.js +746 -137
  44. package/dist/server/index.d.ts +1 -0
  45. package/dist/server/index.js +2 -0
  46. package/dist/signals/graph.d.ts +2 -1
  47. package/dist/signals/graph.js +4 -0
  48. package/dist/signals/read-protocol.d.ts +6 -0
  49. package/dist/signals/read-protocol.js +18 -0
  50. package/dist/trusted-html.d.ts +17 -0
  51. package/dist/trusted-html.js +6 -0
  52. package/dist/universal-core.d.ts +6 -0
  53. package/dist/universal-core.js +214 -202
  54. package/dist/version.js +1 -1
  55. 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
+ });