tutuca 0.9.47 → 0.9.49

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tutuca",
3
- "version": "0.9.47",
3
+ "version": "0.9.49",
4
4
  "type": "module",
5
5
  "description": "Zero-dependency SPA framework with immutable state and virtual DOM",
6
6
  "main": "./dist/tutuca.js",
@@ -56,6 +56,11 @@ edit done:
56
56
 
57
57
  Full reference: [cli.md](./cli.md).
58
58
 
59
+ The Tutuca CLI only catches Tutuca-specific issues. For generic JS
60
+ problems, pair it with a general linter/formatter — e.g. set up Biome
61
+ once with `npx -y @biomejs/biome init` and use its `lint`, `check`,
62
+ and `format` subcommands. Run `npx @biomejs/biome -h` for usage help.
63
+
59
64
  ## Common pitfalls
60
65
 
61
66
  - **Paths are not allowed in values.** `.foo` resolves a single field or
@@ -170,6 +175,16 @@ separate.
170
175
 
171
176
  ## Notation Reference
172
177
 
178
+ Views are name-based: there is no conditional / boolean / arithmetic
179
+ expression syntax in values, and no Vue- or Mustache-style `{{ … }}`
180
+ placeholders. Every value slot — conditions (`@show`, `@if`, `@when`),
181
+ iteration (`@each`, `render-each`), enrichment (`@enrich-with`,
182
+ `@loop-with`), template expansion (`{…}`, `:attr`, `@text`) — names a
183
+ field, method, macro, or handler defined on the component (or
184
+ registered with the app). Logic lives in `methods` / `alter` / `input`
185
+ / `bubble` / `receive` / `response` and is referenced by name; the
186
+ template itself only routes data and events.
187
+
173
188
  | Prefix | Means | Example |
174
189
  | -------- | ----------------------------------------- | --------------------- |
175
190
  | `.x` | field or method on `this` (single-level — no `.foo.bar` paths) | `.count`, `.inc` |