@vmz/vmz-skills 0.1.32 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vmz/vmz-skills",
3
- "version": "0.1.32",
3
+ "version": "0.2.0",
4
4
  "description": "Agent Skills for authoring, reviewing, testing, and deploying VMZ applications",
5
5
  "type": "module",
6
6
  "license": "MPL-2.0",
@@ -17,6 +17,22 @@ SSR/resume behavior, `vmz test`, or deployment artifact.
17
17
  - Keep server-only imports behind `#server`; never leak secrets or repositories into browser output.
18
18
  - Prefer the official `@vmz/core`, `@vmz/ui`, `vmz`, and `@vmz/test` surfaces already present in the project.
19
19
 
20
+ ## Event authoring (0.2.0)
21
+
22
+ Use one recommended handler surface in templates, examples, and skills:
23
+
24
+ | Template | Meaning |
25
+ |----------|---------|
26
+ | `@submit="onSubmitGuard"` | **Recommended** — bare class method; compiler resolves to instance method |
27
+ | `@submit.prevent="onSubmitGuard"` | DOM native listener with modifier |
28
+ | `@custom="onChildEvent"` | Component event subscription (`onMethod` channel) |
29
+ | `:on-submit="handlerProp"` | Function prop (orthogonal to `@submit`) |
30
+ | `@submit="this.onSubmitGuard"` | Legal but discouraged in official UI / homepage / examples |
31
+ | `@click="() => switchLocale('en-us')"` | Bare method call inside arrow; compiler rewrites to `this.switchLocale(...)` |
32
+ | Unknown bare ident | **Compile error** (`handler-symbol-resolution`) |
33
+
34
+ Do not teach dual authoring (`this.method` as default) in new samples or skills.
35
+
20
36
  ## Code highlighting (`default`)
21
37
 
22
38
  When the user needs syntax-colored source: