@barefootjs/jsx 0.37.1 → 0.39.0

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 (168) hide show
  1. package/dist/action-accessor.d.ts +159 -0
  2. package/dist/action-accessor.d.ts.map +1 -0
  3. package/dist/adapters/env-signal.d.ts +0 -8
  4. package/dist/adapters/env-signal.d.ts.map +1 -1
  5. package/dist/adapters/interface.d.ts +12 -0
  6. package/dist/adapters/interface.d.ts.map +1 -1
  7. package/dist/adapters/jsx-adapter.d.ts.map +1 -1
  8. package/dist/analyzer.d.ts +61 -1
  9. package/dist/analyzer.d.ts.map +1 -1
  10. package/dist/async-action-refusal.d.ts +45 -0
  11. package/dist/async-action-refusal.d.ts.map +1 -0
  12. package/dist/builtin-lowering-plugins.d.ts.map +1 -1
  13. package/dist/compiler.d.ts.map +1 -1
  14. package/dist/component-root-scope-comment.d.ts +36 -0
  15. package/dist/component-root-scope-comment.d.ts.map +1 -0
  16. package/dist/debug.d.ts +61 -5
  17. package/dist/debug.d.ts.map +1 -1
  18. package/dist/errors.d.ts +7 -0
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/event-handler-name.d.ts +13 -0
  21. package/dist/event-handler-name.d.ts.map +1 -0
  22. package/dist/expression-parser.d.ts +9 -0
  23. package/dist/expression-parser.d.ts.map +1 -1
  24. package/dist/format-date-refusal.d.ts +33 -0
  25. package/dist/format-date-refusal.d.ts.map +1 -0
  26. package/dist/index.d.ts +6 -4
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3260 -1914
  29. package/dist/ir-to-client-js/build-references.d.ts.map +1 -1
  30. package/dist/ir-to-client-js/collect-elements.d.ts.map +1 -1
  31. package/dist/ir-to-client-js/compute-inlinability.d.ts.map +1 -1
  32. package/dist/ir-to-client-js/compute-scope.d.ts.map +1 -1
  33. package/dist/ir-to-client-js/control-flow/plan/build-branch-loop.d.ts.map +1 -1
  34. package/dist/ir-to-client-js/control-flow/plan/build-component-loop.d.ts.map +1 -1
  35. package/dist/ir-to-client-js/control-flow/plan/build-composite-loop.d.ts.map +1 -1
  36. package/dist/ir-to-client-js/control-flow/plan/build-loop-child-arm.d.ts.map +1 -1
  37. package/dist/ir-to-client-js/control-flow/plan/build-loop.d.ts.map +1 -1
  38. package/dist/ir-to-client-js/control-flow/plan/insert.d.ts +2 -0
  39. package/dist/ir-to-client-js/control-flow/plan/insert.d.ts.map +1 -1
  40. package/dist/ir-to-client-js/control-flow/plan/lazy-row-eligibility.d.ts +1 -1
  41. package/dist/ir-to-client-js/control-flow/plan/loop.d.ts +57 -12
  42. package/dist/ir-to-client-js/control-flow/plan/loop.d.ts.map +1 -1
  43. package/dist/ir-to-client-js/control-flow/shared.d.ts +44 -3
  44. package/dist/ir-to-client-js/control-flow/shared.d.ts.map +1 -1
  45. package/dist/ir-to-client-js/control-flow/stringify/component-loop.d.ts +7 -5
  46. package/dist/ir-to-client-js/control-flow/stringify/component-loop.d.ts.map +1 -1
  47. package/dist/ir-to-client-js/csr-substitute.d.ts.map +1 -1
  48. package/dist/ir-to-client-js/declaration-sort.d.ts +2 -1
  49. package/dist/ir-to-client-js/declaration-sort.d.ts.map +1 -1
  50. package/dist/ir-to-client-js/emit-module-level.d.ts.map +1 -1
  51. package/dist/ir-to-client-js/emit-reactive.d.ts +43 -2
  52. package/dist/ir-to-client-js/emit-reactive.d.ts.map +1 -1
  53. package/dist/ir-to-client-js/emit-registration.d.ts.map +1 -1
  54. package/dist/ir-to-client-js/html-template.d.ts.map +1 -1
  55. package/dist/ir-to-client-js/plan/declaration-emit.d.ts +7 -5
  56. package/dist/ir-to-client-js/plan/declaration-emit.d.ts.map +1 -1
  57. package/dist/ir-to-client-js/prop-handling.d.ts.map +1 -1
  58. package/dist/ir-to-client-js/reactivity.d.ts +9 -1
  59. package/dist/ir-to-client-js/reactivity.d.ts.map +1 -1
  60. package/dist/ir-to-client-js/source-map.d.ts.map +1 -1
  61. package/dist/ir-to-client-js/types.d.ts +4 -0
  62. package/dist/ir-to-client-js/types.d.ts.map +1 -1
  63. package/dist/ir-to-client-js/utils.d.ts +66 -1
  64. package/dist/ir-to-client-js/utils.d.ts.map +1 -1
  65. package/dist/jsx-to-ir.d.ts.map +1 -1
  66. package/dist/opaque-local-accessor.d.ts +27 -0
  67. package/dist/opaque-local-accessor.d.ts.map +1 -0
  68. package/dist/signal-initializer.d.ts +24 -0
  69. package/dist/signal-initializer.d.ts.map +1 -0
  70. package/dist/template-position-walk.d.ts +68 -0
  71. package/dist/template-position-walk.d.ts.map +1 -0
  72. package/dist/to-locale-date-lowering.d.ts +7 -4
  73. package/dist/to-locale-date-lowering.d.ts.map +1 -1
  74. package/dist/types.d.ts +104 -17
  75. package/dist/types.d.ts.map +1 -1
  76. package/package.json +2 -2
  77. package/src/__tests__/__snapshots__/doc-examples.test.ts.snap +878 -4528
  78. package/src/__tests__/action-accessor.test.ts +166 -0
  79. package/src/__tests__/binding-scope-ratchet.test.ts +21 -10
  80. package/src/__tests__/branch-local-in-raw-capture.test.ts +1 -1
  81. package/src/__tests__/branch-local-same-name-collision.test.ts +9 -9
  82. package/src/__tests__/client-js-generation.test.ts +175 -0
  83. package/src/__tests__/component-root-scope-comment.test.ts +106 -0
  84. package/src/__tests__/create-mutation.test.ts +220 -0
  85. package/src/__tests__/create-query.test.ts +644 -0
  86. package/src/__tests__/csr-fragment-root-scope-shape.test.ts +156 -0
  87. package/src/__tests__/debug.test.ts +222 -0
  88. package/src/__tests__/doc-examples.test.ts +78 -25
  89. package/src/__tests__/event-handler-name.test.ts +74 -0
  90. package/src/__tests__/flatmap-segments.test.ts +11 -9
  91. package/src/__tests__/format-date-refusal.test.ts +134 -0
  92. package/src/__tests__/fragment-wrapped-conditional-return-branch.test.ts +132 -0
  93. package/src/__tests__/hydrate-template.test.ts +9 -1
  94. package/src/__tests__/issue-2798-static-nested-loop-bindings.test.ts +2 -2
  95. package/src/__tests__/issue-3009-loop-branch-ref.test.ts +2 -2
  96. package/src/__tests__/issue-3044-nested-prop-object-array-not-static.test.ts +213 -0
  97. package/src/__tests__/issue-3113-init-fn-name-collision.test.ts +133 -0
  98. package/src/__tests__/jsx-return-type-assertion.test.ts +2 -2
  99. package/src/__tests__/lazy-row-eligibility.test.ts +5 -4
  100. package/src/__tests__/loop-row-child-children-reactive-attrs.test.ts +108 -0
  101. package/src/__tests__/loop-row-child-text-children-markers.test.ts +158 -0
  102. package/src/__tests__/opaque-local-accessor.test.ts +90 -0
  103. package/src/__tests__/profiler-e2e.test.ts +13 -8
  104. package/src/__tests__/props-destructuring.test.ts +79 -4
  105. package/src/__tests__/reactive-factory-arity.test.ts +311 -0
  106. package/src/__tests__/ref-attr-absent-at-ssr.test.ts +472 -0
  107. package/src/__tests__/ssr-portal-ref-callback.test.ts +219 -0
  108. package/src/action-accessor.ts +289 -0
  109. package/src/adapters/env-signal.ts +2 -21
  110. package/src/adapters/interface.ts +13 -0
  111. package/src/adapters/jsx-adapter.ts +17 -0
  112. package/src/analyzer.ts +589 -60
  113. package/src/async-action-refusal.ts +254 -0
  114. package/src/builtin-lowering-plugins.ts +0 -2
  115. package/src/compiler.ts +27 -0
  116. package/src/component-root-scope-comment.ts +59 -0
  117. package/src/debug.ts +318 -103
  118. package/src/errors.ts +83 -1
  119. package/src/event-handler-name.ts +14 -0
  120. package/src/expression-parser.ts +41 -17
  121. package/src/format-date-refusal.ts +147 -0
  122. package/src/index.ts +14 -3
  123. package/src/ir-to-client-js/build-references.ts +6 -2
  124. package/src/ir-to-client-js/child-components.ts +8 -3
  125. package/src/ir-to-client-js/collect-elements.ts +28 -13
  126. package/src/ir-to-client-js/compute-inlinability.ts +2 -1
  127. package/src/ir-to-client-js/compute-scope.ts +3 -1
  128. package/src/ir-to-client-js/control-flow/plan/build-branch-loop.ts +2 -4
  129. package/src/ir-to-client-js/control-flow/plan/build-component-loop.ts +67 -5
  130. package/src/ir-to-client-js/control-flow/plan/build-composite-loop.ts +3 -6
  131. package/src/ir-to-client-js/control-flow/plan/build-insert.ts +1 -0
  132. package/src/ir-to-client-js/control-flow/plan/build-loop-child-arm.ts +2 -1
  133. package/src/ir-to-client-js/control-flow/plan/build-loop.ts +23 -11
  134. package/src/ir-to-client-js/control-flow/plan/insert.ts +2 -0
  135. package/src/ir-to-client-js/control-flow/plan/lazy-row-eligibility.ts +3 -3
  136. package/src/ir-to-client-js/control-flow/plan/loop.ts +51 -10
  137. package/src/ir-to-client-js/control-flow/shared.ts +78 -5
  138. package/src/ir-to-client-js/control-flow/stringify/component-loop.ts +25 -12
  139. package/src/ir-to-client-js/control-flow/stringify/insert.ts +1 -1
  140. package/src/ir-to-client-js/csr-substitute.ts +11 -3
  141. package/src/ir-to-client-js/declaration-sort.ts +7 -3
  142. package/src/ir-to-client-js/emit-module-level.ts +7 -4
  143. package/src/ir-to-client-js/emit-reactive.ts +140 -10
  144. package/src/ir-to-client-js/emit-registration.ts +6 -11
  145. package/src/ir-to-client-js/generate-init.ts +2 -2
  146. package/src/ir-to-client-js/html-template.ts +41 -19
  147. package/src/ir-to-client-js/index.ts +9 -3
  148. package/src/ir-to-client-js/phases/ref-callbacks.ts +1 -1
  149. package/src/ir-to-client-js/plan/build-declaration-emit.ts +16 -15
  150. package/src/ir-to-client-js/plan/declaration-emit.ts +7 -5
  151. package/src/ir-to-client-js/prop-handling.ts +4 -0
  152. package/src/ir-to-client-js/reactivity.ts +21 -16
  153. package/src/ir-to-client-js/source-map.ts +2 -1
  154. package/src/ir-to-client-js/stringify/declaration-emit.ts +14 -7
  155. package/src/ir-to-client-js/types.ts +4 -0
  156. package/src/ir-to-client-js/utils.ts +89 -7
  157. package/src/jsx-to-ir.ts +772 -50
  158. package/src/opaque-local-accessor.ts +44 -0
  159. package/src/rich-type-refusal.ts +1 -1
  160. package/src/signal-initializer.ts +36 -0
  161. package/src/template-position-walk.ts +203 -0
  162. package/src/to-locale-date-lowering.ts +7 -4
  163. package/src/types.ts +103 -15
  164. package/dist/format-date-lowering.d.ts +0 -30
  165. package/dist/format-date-lowering.d.ts.map +0 -1
  166. package/src/__tests__/create-selector.test.ts +0 -124
  167. package/src/__tests__/format-date-lowering.test.ts +0 -125
  168. package/src/format-date-lowering.ts +0 -55
@@ -0,0 +1,159 @@
1
+ /**
2
+ * Structural recognition for a query/mutation action's reactive accessors
3
+ * (#3166, part B of #3158): `action.isPending()` / `action.error()` where
4
+ * `action` is the action binding of a recognised async factory
5
+ * (`const [, fetchPosts] = createQuery(…)`, #3165's `SignalInfo.factory`).
6
+ *
7
+ * This is the ONE place that recognises the shape, fed directly by #3165's
8
+ * binding metadata (`SignalInfo.factory.action`) rather than a name
9
+ * heuristic — never re-derived per call site — and the ONE place that
10
+ * decides where a recognised read may be seeded
11
+ * ({@link seedableActionAccessorRead}). Two consumers call that gate:
12
+ *
13
+ * - `seedActionAccessorReads` (below, run by `jsx-to-ir.ts` right after the
14
+ * parse-attach walk): substitutes a gated read with its seed, both in the
15
+ * structured `ParsedExpr` every DSL adapter lowers from and in the
16
+ * `templateCondition` / `templateExpr` text the CSR module-scope fallback
17
+ * template reads.
18
+ * - `async-action-refusal.ts` (BF117): lifts the refusal for exactly the
19
+ * positions the gate admits; every other read refuses as before #3166.
20
+ *
21
+ * Both walk the same positions (`walkTemplatePositions`), so the lift and
22
+ * the seed cannot disagree about which position is which.
23
+ *
24
+ * Where the seed is sound. The SSR seed (spec/async.md §7.3) is `false` for
25
+ * `isPending()` and `undefined` for `error()`; Hono (the reference) really
26
+ * calls a stub returning exactly those, while a DSL adapter renders the
27
+ * substituted `ParsedExpr` literal `false`. A position is gated in only where
28
+ * the two provably render the same bytes:
29
+ *
30
+ * - a `condition` (`IRConditional` / `IRIfStatement`), for both accessors —
31
+ * only truthiness is observed, and `false` ≡ `undefined` there;
32
+ * - an intrinsic element's ARIA boolean-state attribute
33
+ * ({@link ARIA_BOOLEAN_STATE_ATTRS}), for `isPending()` only — Hono renders
34
+ * `aria-busy={false}` as `aria-busy="false"`, and every DSL adapter
35
+ * stringifies a boolean there JS-style (`bool_str`);
36
+ * - an intrinsic element's HTML boolean attribute (`disabled`, `readonly`, …;
37
+ * the shared `isBooleanAttr` every adapter imports), for `isPending()` only
38
+ * (#3210) — Hono omits `disabled={false}`, and every DSL adapter renders a
39
+ * boolean attribute present-or-absent from the expression's truthiness.
40
+ *
41
+ * Everything else stays refused by BF117 exactly as before #3166, because the
42
+ * seed would silently diverge there: a text child (`{fetchPosts.error()}` —
43
+ * Hono renders nothing, a DSL adapter `false`), `error()` in any attribute
44
+ * (Hono omits an `undefined` attribute; the `false` literal renders it), and
45
+ * `isPending()` in any other attribute (Mojolicious / Xslate render the
46
+ * literal as `0` outside the ARIA boolean set and the HTML boolean
47
+ * attributes). A structured template
48
+ * attribute's ternary condition (`class={fetchPosts.isPending() ? 'a' : 'b'}`)
49
+ * is a truthiness test too, but its condition is raw text every adapter lowers
50
+ * on its own, so there is nothing to substitute — it stays refused rather
51
+ * than lifted with no seed behind it.
52
+ *
53
+ * `createMutation` (#3210) reuses this unchanged — `SignalFactoryCall.kind`
54
+ * only distinguishes how the value seeds, never how the action's accessors
55
+ * do, so nothing here is query-specific.
56
+ *
57
+ * Scope: only the accessor called as the WHOLE template-position expression
58
+ * is recognised. A compound use (`!fetchPosts.isPending()`,
59
+ * `fetchPosts.isPending() && x`) is not substituted here and stays refused
60
+ * by BF117 exactly as before #3166 — recognising it structurally too is
61
+ * future work, not a silent gap: nothing that used to compile now compiles
62
+ * differently, and nothing that used to refuse now silently mis-renders.
63
+ */
64
+ import type { ParsedExpr } from './expression-parser.ts';
65
+ import type { IRNode, SignalInfo } from './types.ts';
66
+ import { type TemplatePosition } from './template-position-walk.ts';
67
+ /** Reactive accessors every recognised action carries (spec/async.md §7.1/§7.3). */
68
+ export type ActionAccessorName = 'isPending' | 'error';
69
+ /**
70
+ * Exported so every consumer that needs the accessor-name set (not just the
71
+ * whole-expression-call recognition below) reads the same one — mirrors the
72
+ * `Reactive` members of `QueryAction` in `packages/client/src/create-query.ts`:
73
+ * an accessor added there must be added here.
74
+ */
75
+ export declare const ACTION_ACCESSOR_NAMES: ReadonlySet<string>;
76
+ export interface ActionAccessorRead {
77
+ action: string;
78
+ accessor: ActionAccessorName;
79
+ }
80
+ /** The action bindings a component's recognised async factories produced (#3165). */
81
+ export declare function collectActionNames(signals: readonly Pick<SignalInfo, 'factory'>[]): ReadonlySet<string>;
82
+ /**
83
+ * Recognises `<action>()` — a zero-arg call whose callee is a non-computed
84
+ * member access on an identifier in `actions`, naming `isPending` or
85
+ * `error`. Structural: never matches on the property name alone without the
86
+ * object also being a real recognised action binding.
87
+ */
88
+ export declare function matchActionAccessorCall(expr: ParsedExpr, actions: ReadonlySet<string>): ActionAccessorRead | null;
89
+ /**
90
+ * The direct sub-expressions of `expr`, each with the arrow parameters it is
91
+ * evaluated under (`params`, set only for an arrow's body). The one traversal
92
+ * of a `ParsedExpr` for action reads: BF117's refusal walk
93
+ * (`async-action-refusal.ts`) and {@link collectActionAccessorReads} both
94
+ * recurse through it, so they cannot disagree about which sub-expressions a
95
+ * read can hide in, or which names an arrow parameter shadows.
96
+ */
97
+ export declare function parsedExprChildren(expr: ParsedExpr): Array<{
98
+ expr: ParsedExpr;
99
+ params?: readonly string[];
100
+ }>;
101
+ /**
102
+ * Every `<action>.isPending()` / `<action>.error()` read in `expr`, in
103
+ * first-seen order and without duplicates (`bf debug graph`, #3167). An action
104
+ * name an enclosing arrow parameter rebinds, or that `isBound` reports bound
105
+ * (a loop row's parameter), is not the action.
106
+ */
107
+ export declare function collectActionAccessorReads(expr: ParsedExpr, actions: ReadonlySet<string>, isBound?: (name: string) => boolean): ActionAccessorRead[];
108
+ /**
109
+ * ARIA boolean-state attributes: the attribute names on which every DSL
110
+ * adapter stringifies a boolean value JS-style (`"true"` / `"false"`), which
111
+ * is what Hono renders for `aria-*={false}`. Must stay a subset of each DSL
112
+ * adapter's own `isAriaBooleanAttr` set (Mojolicious / Xslate render a bare
113
+ * `false` literal as `0` on any other attribute); `action-accessor.test.ts`
114
+ * pins that across every adapter, so an adapter dropping a name fails there
115
+ * instead of silently diverging.
116
+ */
117
+ export declare const ARIA_BOOLEAN_STATE_ATTRS: ReadonlySet<string>;
118
+ /**
119
+ * THE gate (see the file header): the recognised accessor read at this
120
+ * template position, if its seed renders there exactly as Hono renders the
121
+ * real stub's value — otherwise `null`, and the read stays refused (BF117).
122
+ * `seedActionAccessorReads` seeds exactly what this admits, and BF117 lifts
123
+ * exactly what this admits; neither re-decides it.
124
+ */
125
+ export declare function seedableActionAccessorRead(position: Pick<TemplatePosition, 'expr' | 'role' | 'attrName'>, actions: ReadonlySet<string>): ActionAccessorRead | null;
126
+ /**
127
+ * Seed every gated accessor read in `root` in place: the position's
128
+ * `ParsedExpr` (what DSL adapters lower) becomes {@link actionAccessorSeedParsed},
129
+ * and its CSR fallback text (`templateCondition` / `templateExpr`) becomes
130
+ * {@link actionAccessorSeedText}. Runs once, after `parsed` is attached and
131
+ * before any refusal pass or adapter reads the IR.
132
+ */
133
+ export declare function seedActionAccessorReads(root: IRNode, signals: readonly Pick<SignalInfo, 'factory'>[]): void;
134
+ /**
135
+ * The SSR seed for a recognised accessor (spec/async.md §7.3): `isPending()`
136
+ * is `false`; `error()` is `undefined`. Represented as the `ParsedExpr`
137
+ * boolean literal `false` for the structured tree every DSL adapter's
138
+ * expression lowering reads (`IRConditional.parsedCondition` /
139
+ * `ExpressionAttr.parsed`). That is only equivalent to the real value where
140
+ * {@link seedableActionAccessorRead} admits the position: a truthiness test
141
+ * (`false` ≡ `undefined`), or `isPending()` (really `false`) in an ARIA
142
+ * boolean-state attribute or an HTML boolean attribute. Unlike the `null` literal, `false` is valid in
143
+ * every position every adapter's grammar accepts, including a bare
144
+ * `{{if …}}` command (Go's `text/template` rejects a bare `nil` there — "nil
145
+ * is not a command"). `ParsedExpr`'s `literal` kind has no `undefined`
146
+ * variant regardless, so something has to stand in for it; an `error()` read
147
+ * rendered as a VALUE would need a real "omit" seed, which is why the gate
148
+ * refuses it instead.
149
+ */
150
+ export declare function actionAccessorSeedParsed(_accessor: ActionAccessorName): ParsedExpr;
151
+ /**
152
+ * The SSR seed as JS source text — for the CSR module-scope fallback
153
+ * template (`templateCondition` / `templateExpr`), which cannot close over
154
+ * the action's real accessor (it is a local inside `initX`, never in scope
155
+ * at module level, the same reason a signal getter call is substituted with
156
+ * its initial value there instead of being called live).
157
+ */
158
+ export declare function actionAccessorSeedText(accessor: ActionAccessorName): string;
159
+ //# sourceMappingURL=action-accessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-accessor.d.ts","sourceRoot":"","sources":["../src/action-accessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAyB,KAAK,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAE1F,oFAAoF;AACpF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,OAAO,CAAA;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAAmC,CAAA;AAEzF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAMvG;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,kBAAkB,GAAG,IAAI,CAQ3B;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,KAAK,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAgC5G;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAC5B,OAAO,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAqB,GAC/C,kBAAkB,EAAE,CAetB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,CAcvD,CAAA;AAEF;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC,EAC9D,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,kBAAkB,GAAG,IAAI,CAe3B;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,CAgB3G;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,kBAAkB,GAAG,UAAU,CAElF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAE3E"}
@@ -80,14 +80,6 @@ export declare function importsSearchParams(metadata: IRMetadata): boolean;
80
80
  * hit the support gate (BF101) on the runtime-entry import path.
81
81
  */
82
82
  export declare function queryHrefLocalNames(metadata: IRMetadata): Set<string>;
83
- /**
84
- * The local binding name(s) that `formatDate` is imported under in this
85
- * component (#2324) — the pure-function date formatter an adapter lowers to
86
- * its `format_date` helper (spec/template-helpers.md). Same resolution rules
87
- * as {@link queryHrefLocalNames}: matched by exported name, gated on the LOCAL
88
- * alias, accepted from both the main entry and the runtime re-export.
89
- */
90
- export declare function formatDateLocalNames(metadata: IRMetadata): Set<string>;
91
83
  /**
92
84
  * Recognise a `<binding>().<method>(<args>)` env-signal method call from a
93
85
  * `call` node's callee + args, where `<binding>` is one of the local names
@@ -1 +1 @@
1
- {"version":3,"file":"env-signal.d.ts","sourceRoot":"","sources":["../../src/adapters/env-signal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE5D,CAAA;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAA;IACX;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB,qEAAqE;IACrE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,EAAE,eAAe,CAElE,CAAA;AAEF,4GAA4G;AAC5G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,GAAG,IAAI,CAGlF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAQnF;AAED,8GAA8G;AAC9G,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAA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F;AAED,8GAA8G;AAC9G,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAUrE;AAYD;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,UAAU,EAAE,EAClB,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG,IAAI,CAY/C"}
@@ -274,6 +274,18 @@ export interface TemplateAdapter {
274
274
  renderSlotMarker(slotId: string): string;
275
275
  renderCondMarker(condId: string): string;
276
276
  generateTypes?(ir: ComponentIR): string | null;
277
+ /**
278
+ * Register a component's shape (declared props, rest bag, derived-field
279
+ * dependencies) with the adapter BEFORE any component that may nest it
280
+ * generates, so a parent finds a child's shape whatever the declaration
281
+ * order. Cross-file children reach it from the CLI / compat /
282
+ * test-render pre-passes (one call per sibling file);
283
+ * `compileMultipleComponents` calls it for every same-file component
284
+ * ahead of its generate loop, so a child declared AFTER its parent —
285
+ * legal through function-declaration hoisting — is registered too.
286
+ * Adapters with no cross-component shape registry leave it undefined.
287
+ */
288
+ registerChildComponentShape?(ir: ComponentIR): void;
277
289
  /**
278
290
  * Generate the SSR declaration block for the user's reactive bindings
279
291
  * (signals, memos, locally-declared functions/constants) at the top
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/adapters/interface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,SAAS,EACT,YAAY,EACZ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AiG;IACjG,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAEjC;CACF"}
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/adapters/interface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,SAAS,EACT,YAAY,EACZ,aAAa,EACb,MAAM,EACN,WAAW,EACX,OAAO,EACR,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;;;;;;OASG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAA;CACxC;AAED,MAAM,WAAW,aAAa;IAC5B,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAA;IAChB;0EACsE;IACtE,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,qFAAqF;IACrF,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;;;;;;;;OAYG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAA;IACtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB;AAED;;;;;;;;GAQG;AAC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QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAA;IAE9C;;;;;;OAMG;IACH,mBAAmB,EAAE,oBAAoB,CAAa;IAMtD,SAAS,CAAC,sBAAsB,CAC9B,UAAU,EAAE,eAAe,EAAE,GAC5B,MAAM,CAuBR;IAMD;;;;;;;;;;OAUG;IACH,0BAA0B,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAkNnE;IAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA0C;IAEhF,SAAS,CAAC,2BAA2B,CAAC,EAAE,EAAE,WAAW,GAAG,GAAG,CAAC,MAAM,CAAC,CAmFlE;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,SAAS,CAAC,+BAA+B,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,CA0DjE;IAMD,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ5C;IAMD;;;;;OAKG;IACH,SAAS,CAAC,uBAAuB,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,CAE1E;IAED;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC,GAAG,MAAM,CASvF;IAMD,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEhD;IAED,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;IAED,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;CACF"}
@@ -23,12 +23,41 @@ export declare function needsTypeBasedDetection(source: string): boolean;
23
23
  * imported types may resolve to `any` and the signal/memo regex fallback kicks in.
24
24
  * For full type resolution in build tools, pass a pre-built ts.Program via
25
25
  * CompileOptions.program instead.
26
+ *
27
+ * `hostOptions.currentDirectory` pins the directory a RELATIVE `filePath`
28
+ * (and the Program's own `getCurrentDirectory()`, which also roots
29
+ * `@types` discovery) resolves against, instead of `process.cwd()`. The
30
+ * Program still serves `source` at the relative name, so
31
+ * `program.getSourceFile(filePath)` resolves to it and the result can be
32
+ * handed to `compileJSX` as `CompileOptions.program` under that same
33
+ * relative `filePath`. Used by the conformance harness
34
+ * (`packages/adapter-tests/src/harness-program.ts`) to compile fixtures
35
+ * under a relative virtual name without its type resolution depending on
36
+ * where the process was started (#3220). Omitted, behaviour is unchanged.
26
37
  */
27
- export declare function createProgramForFile(source: string, filePath: string): {
38
+ export declare function createProgramForFile(source: string, filePath: string, hostOptions?: {
39
+ currentDirectory?: string;
40
+ }): {
28
41
  program: ts.Program;
29
42
  sourceFile: ts.SourceFile;
30
43
  checker: ts.TypeChecker;
31
44
  } | null;
45
+ /**
46
+ * The Program to pass as `compileJSX`'s `program` when a test harness
47
+ * compiles `source` under the relative virtual `filename`, with type
48
+ * resolution anchored at `anchorDir` instead of `process.cwd()` — or
49
+ * `undefined` when the compiler would not build a checker for this source.
50
+ *
51
+ * Without it, a harness compile resolves `@barefootjs/*` relative to the
52
+ * directory `bun test` was started from, so a `Reactive<T>` accessor read
53
+ * such as `fetchPosts.isPending()` is typed `any` from the repo root and
54
+ * its real type from a package (#3220). `anchorDir` need not exist: module
55
+ * resolution only probes its ancestors for `node_modules`. The one
56
+ * implementation for every harness that compiles under relative names:
57
+ * the conformance harness (`packages/adapter-tests/src/harness-program.ts`)
58
+ * and the docs-example suite (`doc-examples.test.ts`).
59
+ */
60
+ export declare function createAnchoredProgram(source: string, filename: string, anchorDir: string): ts.Program | undefined;
32
61
  export declare function analyzeComponent(source: string, filePath: string, targetComponentName?: string, program?: ts.Program, acceptsCallbackBody?: CallbackBodyAcceptor, programIsShared?: boolean): AnalyzerContext;
33
62
  /**
34
63
  * Strip JSX-transparent wrappers from an expression. Matches the
@@ -42,6 +71,37 @@ export declare function analyzeComponent(source: string, filePath: string, targe
42
71
  * unprocessed into the emitted client JS.
43
72
  */
44
73
  export declare function unwrapJsxTransparent(expr: ts.Expression): ts.Expression;
74
+ /**
75
+ * Collect identifiers mutated IN PLACE by a statement — a property/element
76
+ * write (`config[k] = …`, `config.a.b += 1`), an `Object.assign(config, …)`
77
+ * call, or a call to a known mutating method on the receiver
78
+ * (`items.push(...)`) — as opposed to `extractAssignedIdentifiersFromNode`,
79
+ * which only tracks reassignment of the BINDING itself (#2910).
80
+ *
81
+ * This distinction matters because `expandDynamicPropValue` /
82
+ * `expandConstantForReactivity` (`ir-to-client-js/prop-handling.ts`) inline
83
+ * a `localConstants` entry's DECLARATION-TIME initializer text wherever the
84
+ * bare identifier is referenced. A `const config = {}` later populated by
85
+ * `for (const s of series) config[s.key] = {...}` never reassigns `config`
86
+ * itself — `extractAssignedIdentifiersFromNode` (correctly) reports no
87
+ * assigned identifiers, since `config[s.key] = …` doesn't create an
88
+ * implicit global — but the compiler must still know `config`'s value is
89
+ * no longer just `{}` by the time this statement has run, so a consumer
90
+ * that inlines the stale literal (instead of referencing the live `config`
91
+ * binding) silently drops everything the mutation was supposed to do. See
92
+ * `ConstantInfo.mutatedAfterDeclaration` for where this is consumed.
93
+ */
94
+ /**
95
+ * The identifier a (possibly chained) member/element-access/parenthesized/
96
+ * non-null-asserted expression is ultimately rooted at (`a.b.c`, `a?.b[0]`,
97
+ * `(a!).b` all resolve to `a`), or `null` when the root isn't a bare
98
+ * identifier (e.g. a call result). Shared by `extractMutatedIdentifiersFromNode`
99
+ * below and `isArrayExprDirectPropRef` (`jsx-to-ir.ts`, #3044 pullfrog
100
+ * review) — the same "walk a member chain to its root" question, structural
101
+ * and side-effect-free, so one implementation serves both instead of a
102
+ * second inline while-loop reinventing it with narrower node coverage.
103
+ */
104
+ export declare function rootIdentifierOf(expr: ts.Expression): string | null;
45
105
  export type JsxReturnNode = ts.JsxElement | ts.JsxSelfClosingElement | ts.JsxFragment;
46
106
  /**
47
107
  * The branch structure extracted from a multi-return JSX body — an if/else-if
@@ -1 +1 @@
1
- {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAI3B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAInE,OAAO,EACL,KAAK,eAAe,EAUrB,MAAM,uBAAuB,CAAA;AAqB9B;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAU/D;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf;IAAE,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;IAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;CAAE,GAAG,IAAI,CA8CpF;AAMD,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,mBAAmB,CAAC,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,EACpB,mBAAmB,CAAC,EAAE,oBAAoB,EAC1C,eAAe,CAAC,EAAE,OAAO,GACxB,eAAe,CAkKjB;AA2kBD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,UAAU,CAavE;AA+3CD,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,qBAAqB,GAAG,EAAE,CAAC,WAAW,CAAA;AAErF;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,KAAK,CAAC;QACd,SAAS,EAAE,EAAE,CAAC,UAAU,CAAA;QACxB,SAAS,EAAE,aAAa,GAAG,IAAI,CAAA;Q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AI,GAAG,OAAO,CAelE;AAqxCD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA6B3F;AA4HD,eAAO,MAAM,wBAAwB,aAMnC,CAAA;AAqBF;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,MAAM,EAAE,CAUV;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,mFAAmF;IACnF,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,2DAA2D;IAC3D,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAarF;AAkED,eAAO,MAAM,mBAAmB,aAG9B,CAAA;AA25CF;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI,CA+EvE;AAybD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * `checkAsyncActionReads` (#3165, BF117): a read of a query action in a
3
+ * template-lowered position is refused at compile time, uniformly across every
4
+ * adapter including Hono.
5
+ *
6
+ * `const [posts, fetchPosts] = createQuery(fn, options)` seeds `posts()` from
7
+ * `options.initial`. Since #3166, `fetchPosts.isPending()` / `fetchPosts.error()`
8
+ * are ALSO seeded (`false` / `undefined`, spec/async.md §7.3) when read as the
9
+ * WHOLE expression of a position where the seed renders like Hono: a
10
+ * condition (either accessor), or an ARIA boolean-state attribute
11
+ * (`isPending()` only). `action-accessor.ts`'s `seedableActionAccessorRead` is
12
+ * the one gate deciding that, for both this lift and the seed itself. Any
13
+ * other direct accessor read — a text child (`{fetchPosts.error()}`),
14
+ * `error()` in any attribute, `isPending()` in a non-ARIA-boolean attribute,
15
+ * a structured template attribute's ternary — has no sound seed and refuses
16
+ * here as before. Everything else is unchanged too: calling the action itself
17
+ * (`fetchPosts()`) still sends a request during render, and a compound or
18
+ * nested accessor read (`!fetchPosts.isPending()`, buried inside a memo) has
19
+ * no seed substitution yet, so a template position may still not:
20
+ *
21
+ * - read an accessor outside the positions above,
22
+ * - call the action (`fetchPosts()`),
23
+ * - read a memo or a component-local constant that reads the action, since
24
+ * every backend evaluates a memo or constant it renders, or
25
+ * - call a local function that reads the action.
26
+ *
27
+ * "Reads the action" is transitive through memos, constants and functions
28
+ * (a constant reading a memo reading the action counts). Passing the action,
29
+ * or a local function that reads it, as a value (`<Retry onRetry={fetchPosts} />`,
30
+ * `run={reload}`) is fine: nothing runs until the client calls it. A constant
31
+ * that only aliases one of them (`const run = fetchPosts`) is treated like its
32
+ * target. Any read inside an event handler or effect is fine too, since those
33
+ * only run on the client. A `/* @client *\/`-marked position is skipped by
34
+ * `walkTemplatePositions`: the read is deferred to the client.
35
+ *
36
+ * Other function-valued expressions that read the action are refused even when
37
+ * they are only passed on, because the walk cannot tell passing from calling
38
+ * during render (an array-method callback runs then): an inline arrow outside
39
+ * an `on*` prop (`run={() => fetchPosts()}`), and a constant holding arrows in an object or
40
+ * array literal (`const h = { run: () => fetchPosts() }`, `run={h.run}`). Name
41
+ * the function as a local instead, or mark the position `/* @client *\/`.
42
+ */
43
+ import type { IRNode, IRMetadata, CompilerError } from './types.ts';
44
+ export declare function checkAsyncActionReads(root: IRNode, metadata: IRMetadata, errors: CompilerError[]): void;
45
+ //# sourceMappingURL=async-action-refusal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-action-refusal.d.ts","sourceRoot":"","sources":["../src/async-action-refusal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAkB,MAAM,YAAY,CAAA;AA+BnF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAwCvG"}
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-lowering-plugins.d.ts","sourceRoot":"","sources":["../src/builtin-lowering-plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAQ5D;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,cAY7B,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,wBAAwB,EAAE,SAAS,cAAc,EAK7D,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
1
+ {"version":3,"file":"builtin-lowering-plugins.d.ts","sourceRoot":"","sources":["../src/builtin-lowering-plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAO5D;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,cAY7B,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,wBAAwB,EAAE,SAAS,cAAc,EAI7D,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
@@ -1 +1 @@
1
- {"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../src/compiler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACX,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAyE,MAAM,eAAe,CAAA;AAiBvH;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cA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,EAAE,aAAa,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Component-root scope comment (#3141): decide, EXACTLY ONCE and right after
3
+ * `metadata.clientAnalysis` becomes available, whether a client-interactive
4
+ * component's render ROOT — when that root is itself a single child-
5
+ * component call with no wrapping element of its own — needs a comment-based
6
+ * scope marker pair around its rendered output.
7
+ *
8
+ * Before this, the decision was answered independently by Hono
9
+ * (`isRootComponent` + `wrapWithScopeComment` in `hono-adapter.ts`) and NOT
10
+ * AT ALL by the eight DSL adapters, which only ever wrap a `needsScopeComment`
11
+ * FRAGMENT root (the analogous multi-element-root case) — go-template alone
12
+ * had a partial, adapter-local re-derivation that emitted the opening marker
13
+ * but not the closing one. That's the "one decision, two implementations"
14
+ * defect CLAUDE.md calls out: this function is the single shared answer
15
+ * every adapter's `IRNodeEmitter.emitComponent` now reads off
16
+ * `IRComponent.needsScopeComment` instead of re-deriving.
17
+ *
18
+ * Mirrors `IRFragment.needsScopeComment`, computed inside `jsx-to-ir.ts`'s
19
+ * `transformFragment` at parse time — but THIS flag can't live there: "is
20
+ * this component client-interactive" isn't knowable until
21
+ * `analyzeClientNeeds` has run over the whole IR, which happens in
22
+ * `compiler.ts` after `jsxToIR` returns. So, like Slot Unification Step B's
23
+ * `decideClientOnlyElision`, this is a post-hoc mutation of the already-built
24
+ * IR, run once, before any adapter or `generateClientJs` sees it.
25
+ */
26
+ import type { ComponentIR } from './types.ts';
27
+ /**
28
+ * Mutate `ir.root` in place, marking it `needsScopeComment: true` when
29
+ * `needsComponentRootScopeComment` says so. A no-op otherwise (including
30
+ * when the root isn't a `component` node at all) — mirrors
31
+ * `decideClientOnlyElision`'s in-place-mutation convention so both
32
+ * `compileMultipleComponents` and the single-component path can call it
33
+ * identically right after `metadata.clientAnalysis` is set.
34
+ */
35
+ export declare function decideComponentRootScopeComment(ir: ComponentIR): void;
36
+ //# sourceMappingURL=component-root-scope-comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-root-scope-comment.d.ts","sourceRoot":"","sources":["../src/component-root-scope-comment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,YAAY,CAAA;AAqB1D;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAGrE"}
package/dist/debug.d.ts CHANGED
@@ -8,6 +8,7 @@ import ts from 'typescript';
8
8
  import type { ComponentIR, IRMetadata, SourceLocation } from './types.ts';
9
9
  import { listComponentFunctions } from './analyzer.ts';
10
10
  import type { WrapReason } from './ir-to-client-js/reactivity.ts';
11
+ import { type ActionAccessorName } from './action-accessor.ts';
11
12
  export interface SignalNode {
12
13
  kind: 'signal';
13
14
  name: string;
@@ -18,6 +19,53 @@ export interface SignalNode {
18
19
  file: string;
19
20
  line: number;
20
21
  };
22
+ /**
23
+ * Set when this signal is the value half of an async reactive factory
24
+ * (`createQuery` / `createMutation`, spec/async.md §7.8): the value is
25
+ * written by the factory's request, not by a setter. The same object as the
26
+ * factory's entry in `ComponentGraph.factories`.
27
+ */
28
+ factory?: AsyncFactoryInfo;
29
+ }
30
+ /**
31
+ * The async factory behind a signal node (#3167). A query is a signal
32
+ * source with inputs: `requestDeps` are the signals, memos and props its
33
+ * request function reads, each of which re-sends the request when it changes
34
+ * (so each lists `query:<value>` among its consumers). Only the request
35
+ * function counts: `options` is read once, at creation. A mutation's request
36
+ * function is read untracked, only when the action is called, so its
37
+ * `requestDeps` is always empty.
38
+ */
39
+ export interface AsyncFactoryInfo {
40
+ /**
41
+ * How `query:<key>` edges and `AccessorNode.factory` name the factory: its
42
+ * value signal, or its action when the value isn't destructured
43
+ * (`const [, save] = createMutation(…)` — the graph never shows the
44
+ * synthesized getter such a declaration gets).
45
+ */
46
+ key: string;
47
+ kind: 'query' | 'mutation';
48
+ /** The callee as written: `createQuery`, `createMutation`, an alias, or `bf.createQuery`. */
49
+ callee: string;
50
+ /** The action binding, or `null` when it isn't destructured. */
51
+ action: string | null;
52
+ /** The value signal, or `null` when the value isn't destructured. */
53
+ value: string | null;
54
+ requestDeps: string[];
55
+ }
56
+ /**
57
+ * An async action's reactive accessor, `<action>.isPending()` or
58
+ * `<action>.error()` (#3167). Named `<action>.<accessor>` — the same
59
+ * spelling a binding's `deps` uses for a read of it.
60
+ */
61
+ export interface AccessorNode {
62
+ kind: 'accessor';
63
+ name: string;
64
+ action: string;
65
+ accessor: ActionAccessorName;
66
+ /** The owning factory's `AsyncFactoryInfo.key`. */
67
+ factory: string;
68
+ consumers: string[];
21
69
  }
22
70
  export interface MemoNode {
23
71
  kind: 'memo';
@@ -51,8 +99,10 @@ export interface DomBinding {
51
99
  * member as `<propsObject>.<member>` (`props.value`) — and a prop read
52
100
  * through a prop-derived local const (`class={classes}`) is reported as the
53
101
  * underlying prop(s), never the const. Every entry resolves to a node in
54
- * `ComponentGraph.signals` / `.memos` / `.props`. Event handlers instead list
55
- * the setters / getters the handler body references.
102
+ * `ComponentGraph.signals` / `.memos` / `.props`, or — for an async action's
103
+ * accessor read (`save.isPending()`, #3167) — `<action>.<accessor>`, a node
104
+ * in `ComponentGraph.accessors`. Event handlers instead list the setters /
105
+ * getters the handler body references.
56
106
  */
57
107
  deps: string[];
58
108
  type: 'text' | 'event' | 'conditional' | 'loop' | 'attribute';
@@ -117,16 +167,20 @@ export interface ComponentGraph {
117
167
  memos: MemoNode[];
118
168
  effects: EffectNode[];
119
169
  props: PropNode[];
170
+ /** Async factories (`createQuery` / `createMutation`, #3167), in declaration order. */
171
+ factories: AsyncFactoryInfo[];
172
+ /** Their actions' accessors. */
173
+ accessors: AccessorNode[];
120
174
  domBindings: DomBinding[];
121
175
  }
122
176
  export interface UpdatePath {
123
177
  target: string;
124
- kind: 'signal' | 'memo' | 'prop';
178
+ kind: 'signal' | 'memo' | 'prop' | 'accessor';
125
179
  dependents: UpdatePathEntry[];
126
180
  }
127
181
  export interface UpdatePathEntry {
128
182
  name: string;
129
- kind: 'memo' | 'effect' | 'dom';
183
+ kind: 'memo' | 'effect' | 'dom' | 'query';
130
184
  label: string;
131
185
  /** Transitive dependents — memos/effects that depend on this entry */
132
186
  children: UpdatePathEntry[];
@@ -192,7 +246,7 @@ export interface WhyUpdateResult {
192
246
  }
193
247
  export interface WhyUpdateDep {
194
248
  name: string;
195
- kind: 'signal' | 'memo' | 'prop';
249
+ kind: 'signal' | 'memo' | 'prop' | 'accessor';
196
250
  dependsOn: string[];
197
251
  changedBy: WhyUpdateSource[];
198
252
  }
@@ -267,6 +321,8 @@ export declare function formatLoopSummary(summary: LoopSummary): string;
267
321
  * Shows all downstream effects, memos, and DOM bindings.
268
322
  */
269
323
  export declare function traceUpdatePath(graph: ComponentGraph, targetName: string): UpdatePath | null;
324
+ /** Every name `traceUpdatePath` accepts: signals, memos, props and action accessors (#3167). */
325
+ export declare function traceableNames(graph: ComponentGraph): string[];
270
326
  export declare function buildWhyUpdate(source: string, filePath: string, bindingLabel: string, componentName?: string): WhyUpdateResult | null;
271
327
  export declare function formatWhyUpdate(result: WhyUpdateResult): string;
272
328
  /** Format the component graph as a human-readable string for `bf debug graph`. */
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EACV,WAAW,EAQX,UAAU,EAKV,cAAc,EAEf,MAAM,YAAY,CAAA;AACnB,OAAO,EAAoB,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAIxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAUjE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS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E,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACpC,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,mBAAmB,CA4BzE;AAmCD,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,UAAU,EAAE,GACtB,MAAM,CAyBR;AAMD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,GAAG,gBAAgB,CAuCtI;AA+BD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAiBxE;AA8bD,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
package/dist/errors.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare const ErrorCodes: {
12
12
  readonly MISSING_KEY_IN_NESTED_LIST: 'BF024';
13
13
  readonly UNSUPPORTED_DESTRUCTURE_REST: 'BF025';
14
14
  readonly RETURN_VALUE_NOT_JSX: 'BF027';
15
+ readonly FRAGMENT_WRAPPED_CONDITIONAL_RETURN_BRANCH: 'BF029';
15
16
  readonly SIGNAL_GETTER_NOT_CALLED: 'BF044';
16
17
  readonly JSX_IN_LOCAL_FUNCTION: 'BF045';
17
18
  readonly COMPONENT_REQUIRED_PROP_MISSING: 'BF046';
@@ -22,17 +23,23 @@ export declare const ErrorCodes: {
22
23
  readonly WRONG_PACKAGE_IMPORT: 'BF051';
23
24
  readonly BUILTIN_REQUIRES_IMPORT: 'BF054';
24
25
  readonly INLINED_IMPORT_MISSING_EXPORT: 'BF055';
26
+ readonly FORMAT_DATE_AUTHORED_CALL: 'BF056';
25
27
  readonly UNDECLARED_INIT_STATEMENT_REFERENCE: 'BF052';
26
28
  readonly STRIPPED_CLIENT_IMPORT_REFERENCED: 'BF053';
27
29
  readonly STAGE_REACTIVE_IN_TEMPLATE: 'BF060';
28
30
  readonly STAGE_INIT_LOCAL_IN_TEMPLATE: 'BF061';
29
31
  readonly STAGE_AWAIT_IN_TEMPLATE: 'BF062';
32
+ readonly REF_ATTR_ABSENT_AT_SSR: 'BF063';
30
33
  readonly INLINE_JSX_CALLBACK_CAPTURE: 'BF080';
31
34
  readonly UNRECOGNIZED_REACTIVE_FACTORY: 'BF110';
32
35
  readonly REACTIVE_FACTORY_RENAME_UNSUPPORTED: 'BF111';
33
36
  readonly REACTIVE_FACTORY_MODULE_CAPTURE: 'BF112';
34
37
  readonly REACTIVE_FACTORY_IMPORT_COLLISION: 'BF113';
35
38
  readonly REACTIVE_FACTORY_PARAM_SHADOWED: 'BF114';
39
+ readonly REACTIVE_FACTORY_ARITY_MISMATCH: 'BF115';
40
+ readonly REACTIVE_FACTORY_EXTRA_ARGUMENTS: 'BF116';
41
+ readonly ASYNC_ACTION_READ_IN_TEMPLATE: 'BF117';
42
+ readonly MUTATION_INITIAL_OPTION: 'BF118';
36
43
  };
37
44
  export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
38
45
  export declare function createError(code: ErrorCode, loc: SourceLocation, options?: {