create-foldkit-app 0.22.1 → 0.22.2

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": "create-foldkit-app",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Create Foldkit applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,15 +12,15 @@
12
12
  "templates"
13
13
  ],
14
14
  "dependencies": {
15
- "@effect/platform-node": "4.0.0-beta.101",
16
- "@effect/platform-node-shared": "4.0.0-beta.101",
15
+ "@effect/platform-node": "4.0.0-beta.102",
16
+ "@effect/platform-node-shared": "4.0.0-beta.102",
17
17
  "chalk": "^5.6.2",
18
- "effect": "4.0.0-beta.101",
18
+ "effect": "4.0.0-beta.102",
19
19
  "rimraf": "^6.1.3",
20
20
  "typescript": "^6.0.3"
21
21
  },
22
22
  "devDependencies": {
23
- "@effect/vitest": "4.0.0-beta.101",
23
+ "@effect/vitest": "4.0.0-beta.102",
24
24
  "@types/node": "^25.9.3",
25
25
  "vitest": "^4.1.9"
26
26
  },
@@ -84,7 +84,7 @@ Name each test file for its test style, beside the code under test: `story.test.
84
84
  - Use `Option` instead of `null` or `undefined`. Prefix Option-typed values with `maybe*`. Match with `Option.match`; don't unwrap with `Option.map(...)` + `Option.getOrElse(...)` when you can just match.
85
85
  - Use Effect modules over native methods in `pipe` chains (`Array.map`, `String.startsWith`, `Array.findFirst`). Native methods are fine when calling directly on a named variable.
86
86
  - Never cast Schema values with `as Type`. Use the callable constructor: `SucceededLogin({ sessionId })`, not `{ _tag: 'SucceededLogin', sessionId } as Message`.
87
- - Always `Array.isEmptyArray` / `Array.isNonEmptyArray` (not `.length === 0`). Use `Array.match` when handling both empty and non-empty cases.
87
+ - Always `Array.isArrayEmpty` / `Array.isArrayNonEmpty` (not `.length === 0` / `.length > 0`). Use `Array.match` when handling both empty and non-empty cases.
88
88
  - Never use `for` loops or `let` for iteration. Reach for `Array.map`, `Array.filterMap`, `Array.makeBy`, `Array.reduce`.
89
89
  - Never use `T[]`. Always `Array<T>` or `ReadonlyArray<T>`.
90
90
  - Always use `Effect.Match`, never `switch`.