@effected/app 0.18.0 → 0.19.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/App.js +7 -3
- package/README.md +1 -1
- package/index.d.ts +8 -4
- package/package.json +5 -5
package/App.js
CHANGED
|
@@ -73,9 +73,13 @@ var App = class {
|
|
|
73
73
|
*
|
|
74
74
|
* The documented limit: code paths that actually exercise `ensure*` **die**
|
|
75
75
|
* against `FileSystem.layerNoop` — it is a stub, not a working filesystem.
|
|
76
|
-
* `layerTest` is for testing logic that *uses* the control plane
|
|
77
|
-
* real directory behaviour
|
|
78
|
-
* `
|
|
76
|
+
* `layerTest` is for testing logic that *uses* the control plane. A test of
|
|
77
|
+
* real directory behaviour composes `AppDirs.layer` over `@effected/memfs`,
|
|
78
|
+
* whose `ensure*` members then create directories on an in-memory volume.
|
|
79
|
+
* The databases are the exception: `Store` and `Cache` open their SQLite
|
|
80
|
+
* files through the native binding, which never sees the `FileSystem`
|
|
81
|
+
* service, so a test of {@link App.layer} end to end still needs a
|
|
82
|
+
* temp-directory `HOME`.
|
|
79
83
|
*/
|
|
80
84
|
static layerTest = layerTest;
|
|
81
85
|
};
|
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ Two properties to be deliberate about. **A resolver that finds nothing falls thr
|
|
|
144
144
|
|
|
145
145
|
### Wiring the flag to the layer
|
|
146
146
|
|
|
147
|
-
A layer is built before a CLI parses anything, so the parsed `--config` has to reach `AppConfig.layer` somehow. `effect/
|
|
147
|
+
A layer is built before a CLI parses anything, so the parsed `--config` has to reach `AppConfig.layer` somehow. `effect/cli` has two ways, and neither needs an `Effect.provide` inside the handler.
|
|
148
148
|
|
|
149
149
|
For a single command, `Command.provide` takes **a function of the parsed input**, not just a finished layer:
|
|
150
150
|
|
package/index.d.ts
CHANGED
|
@@ -182,9 +182,13 @@ export declare class App {
|
|
|
182
182
|
*
|
|
183
183
|
* The documented limit: code paths that actually exercise `ensure*` **die**
|
|
184
184
|
* against `FileSystem.layerNoop` — it is a stub, not a working filesystem.
|
|
185
|
-
* `layerTest` is for testing logic that *uses* the control plane
|
|
186
|
-
* real directory behaviour
|
|
187
|
-
* `
|
|
185
|
+
* `layerTest` is for testing logic that *uses* the control plane. A test of
|
|
186
|
+
* real directory behaviour composes `AppDirs.layer` over `@effected/memfs`,
|
|
187
|
+
* whose `ensure*` members then create directories on an in-memory volume.
|
|
188
|
+
* The databases are the exception: `Store` and `Cache` open their SQLite
|
|
189
|
+
* files through the native binding, which never sees the `FileSystem`
|
|
190
|
+
* service, so a test of {@link App.layer} end to end still needs a
|
|
191
|
+
* temp-directory `HOME`.
|
|
188
192
|
*/
|
|
189
193
|
static readonly layerTest: (options: AppTestOptions) => Layer.Layer<Xdg | AppDirs | Store | Cache, AppError>;
|
|
190
194
|
}
|
|
@@ -264,7 +268,7 @@ interface AppConfigOptions<A, I, RR = never> {
|
|
|
264
268
|
* unchanged: `XdgConfig.resolver`, then `XdgConfig.nativeResolver`.
|
|
265
269
|
*
|
|
266
270
|
* A layer is built before a CLI parses anything, so getting the parsed flag
|
|
267
|
-
* here is the one wiring question this option raises. `effect/
|
|
271
|
+
* here is the one wiring question this option raises. `effect/cli`
|
|
268
272
|
* answers it twice, and neither answer needs an `Effect.provide` inside the
|
|
269
273
|
* handler: `Command.provide` accepts a **function of the parsed input**, and
|
|
270
274
|
* for several subcommands sharing one flag, `GlobalFlag.setting` makes the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application control plane for Effect: one layer wiring XDG-namespaced directories, a migrated SQLite store, a TTL cache and a config file to the same place.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@effected/config-file": "^0.
|
|
43
|
-
"@effected/store": "^0.
|
|
44
|
-
"@effected/xdg": "^0.
|
|
45
|
-
"effect": "4.0.0-rc.
|
|
42
|
+
"@effected/config-file": "^0.13.1",
|
|
43
|
+
"@effected/store": "^0.11.0",
|
|
44
|
+
"@effected/xdg": "^0.8.2",
|
|
45
|
+
"effect": "4.0.0-rc.118"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=24.11.0"
|