@barefootjs/cli 0.33.2 → 0.33.4

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.
@@ -192,12 +192,12 @@ renderLoop(loop: IRLoop): string {
192
192
 
193
193
  **Input (JSX):**
194
194
  ```tsx
195
- {items.map(item => <li key={item.id}>{item.name}</li>)}
195
+ {items().map(item => <li key={item.id}>{item.name}</li>)}
196
196
  ```
197
197
 
198
198
  **Output (TestAdapter):**
199
199
  ```tsx
200
- {items.map((item) => <li key={item.id}>{item.name}</li>)}
200
+ {items().map((item) => <li key={item.id}>{item.name}</li>)}
201
201
  ```
202
202
 
203
203
  Non-JSX adapters translate to the target iteration syntax (e.g., `{{range .Items}}...{{end}}`).
@@ -191,7 +191,7 @@ For complex filter predicates, the adapter generates template block functions.
191
191
  ### `.sort().map()` / `.toSorted().map()`
192
192
 
193
193
  ```tsx
194
- {items.toSorted((a, b) => a.priority - b.priority).map(t => <li key={t.id}>{t.name}</li>)}
194
+ {items().toSorted((a, b) => a.priority - b.priority).map(t => <li key={t.id}>{t.name}</li>)}
195
195
  ```
196
196
 
197
197
  ```go-template