@effected/config-file 0.7.0 → 0.8.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/ConfigProvider.js +3 -3
- package/index.d.ts +3 -3
- package/package.json +6 -6
- package/tsdoc-metadata.json +1 -1
package/ConfigProvider.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ConfigProvider, Effect } from "effect";
|
|
|
3
3
|
//#region src/ConfigProvider.ts
|
|
4
4
|
/**
|
|
5
5
|
* Expose a loaded, merged, schema-validated document as a v4 `ConfigProvider`,
|
|
6
|
-
* so it can be read through `Config.
|
|
6
|
+
* so it can be read through `Config.String("port")` and layered beneath other
|
|
7
7
|
* providers.
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
@@ -20,7 +20,7 @@ import { ConfigProvider, Effect } from "effect";
|
|
|
20
20
|
* is the exact class of lie this port exists to undo.
|
|
21
21
|
* 2. **Nested keys are structural, not dotted.** `fromUnknown` descends one path
|
|
22
22
|
* segment at a time, so `{ db: { host } }` is reached with
|
|
23
|
-
* `Config.nested(Config.
|
|
23
|
+
* `Config.nested(Config.String("host"), "db")` — never `Config.String("db.host")`,
|
|
24
24
|
* which is looked up as a single literal key and fails. No flattening happens
|
|
25
25
|
* here, because none is needed.
|
|
26
26
|
* 3. **The decoded value is handed over as-is.** `fromUnknown` descends with
|
|
@@ -34,7 +34,7 @@ import { ConfigProvider, Effect } from "effect";
|
|
|
34
34
|
* `Expected string, got undefined` — so a `Config` read of a present `Date`
|
|
35
35
|
* field looks exactly like a typo in the key name. An `Option.some`
|
|
36
36
|
* descends as a record carrying Effect's internal `value` own-property, so
|
|
37
|
-
* `Config.nested(Config.
|
|
37
|
+
* `Config.nested(Config.String("value"), "field")` happens to read the
|
|
38
38
|
* wrapped value straight through — an internal representation, not a
|
|
39
39
|
* supported spelling. An `Option.none` has no own keys and so reads as
|
|
40
40
|
* absent, making `Some` and `None` asymmetric. None of this is a supported
|
package/index.d.ts
CHANGED
|
@@ -980,7 +980,7 @@ export declare class ConfigMigration {
|
|
|
980
980
|
//#region src/ConfigProvider.d.ts
|
|
981
981
|
/**
|
|
982
982
|
* Expose a loaded, merged, schema-validated document as a v4 `ConfigProvider`,
|
|
983
|
-
* so it can be read through `Config.
|
|
983
|
+
* so it can be read through `Config.String("port")` and layered beneath other
|
|
984
984
|
* providers.
|
|
985
985
|
*
|
|
986
986
|
* @remarks
|
|
@@ -997,7 +997,7 @@ export declare class ConfigMigration {
|
|
|
997
997
|
* is the exact class of lie this port exists to undo.
|
|
998
998
|
* 2. **Nested keys are structural, not dotted.** `fromUnknown` descends one path
|
|
999
999
|
* segment at a time, so `{ db: { host } }` is reached with
|
|
1000
|
-
* `Config.nested(Config.
|
|
1000
|
+
* `Config.nested(Config.String("host"), "db")` — never `Config.String("db.host")`,
|
|
1001
1001
|
* which is looked up as a single literal key and fails. No flattening happens
|
|
1002
1002
|
* here, because none is needed.
|
|
1003
1003
|
* 3. **The decoded value is handed over as-is.** `fromUnknown` descends with
|
|
@@ -1011,7 +1011,7 @@ export declare class ConfigMigration {
|
|
|
1011
1011
|
* `Expected string, got undefined` — so a `Config` read of a present `Date`
|
|
1012
1012
|
* field looks exactly like a typo in the key name. An `Option.some`
|
|
1013
1013
|
* descends as a record carrying Effect's internal `value` own-property, so
|
|
1014
|
-
* `Config.nested(Config.
|
|
1014
|
+
* `Config.nested(Config.String("value"), "field")` happens to read the
|
|
1015
1015
|
* wrapped value straight through — an internal representation, not a
|
|
1016
1016
|
* supported spelling. An `Option.none` has no own keys and so reads as
|
|
1017
1017
|
* absent, making `Some` and `None` asymmetric. None of this is a supported
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/config-file",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Composable config file loading for Effect: JSON, JSONC, YAML and TOML codecs, resolution strategies, and merge behaviors.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"./package.json": "./package.json"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@effected/jsonc": "^0.
|
|
47
|
-
"@effected/toml": "^0.
|
|
48
|
-
"@effected/walker": "^0.
|
|
49
|
-
"@effected/yaml": "^0.
|
|
50
|
-
"effect": "4.0.0-rc.
|
|
46
|
+
"@effected/jsonc": "^0.11.0",
|
|
47
|
+
"@effected/toml": "^0.7.0",
|
|
48
|
+
"@effected/walker": "^0.8.0",
|
|
49
|
+
"@effected/yaml": "^0.15.0",
|
|
50
|
+
"effect": "4.0.0-rc.115"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=24.11.0"
|