create-foldkit-app 0.11.0 → 0.12.1
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 +4 -4
- package/templates/base/AGENTS.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-foldkit-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Create Foldkit applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"templates"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@effect/platform-node": "4.0.0-beta.
|
|
16
|
-
"@effect/platform-node-shared": "4.0.0-beta.
|
|
15
|
+
"@effect/platform-node": "4.0.0-beta.66",
|
|
16
|
+
"@effect/platform-node-shared": "4.0.0-beta.66",
|
|
17
17
|
"chalk": "^5.6.2",
|
|
18
|
-
"effect": "4.0.0-beta.
|
|
18
|
+
"effect": "4.0.0-beta.66",
|
|
19
19
|
"rimraf": "^6.1.3",
|
|
20
20
|
"typescript": "^6.0.3"
|
|
21
21
|
},
|
package/templates/base/AGENTS.md
CHANGED
|
@@ -52,7 +52,7 @@ Use `evo()` from `foldkit/struct` for immutable model updates. Never spread or `
|
|
|
52
52
|
|
|
53
53
|
### View
|
|
54
54
|
|
|
55
|
-
Bind the `html` factory
|
|
55
|
+
Bind the `html` factory inside each view function with `const h = html<Message>()` (never at module level), then reach for `h.div`, `h.OnClick`, etc. off the returned record. Use `empty` (not `null`) for conditional rendering, `M.value().pipe(M.tagsExhaustive({...}))` for discriminated unions, and `Array.match` for lists that may be empty.
|
|
56
56
|
|
|
57
57
|
Use `keyed` wrappers whenever the view branches into structurally different layouts based on route or model state. Without keying, the virtual DOM tries to diff one layout into another, causing stale DOM and event handler mismatches.
|
|
58
58
|
|