@effected/xdg 0.4.1 → 0.5.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/Xdg.js CHANGED
@@ -142,14 +142,14 @@ var Xdg = class Xdg extends Context.Service()("@effected/xdg/Xdg") {
142
142
  variable: name,
143
143
  cause
144
144
  })));
145
- const home = yield* asEnvError("HOME", Config.string("HOME"));
145
+ const home = yield* asEnvError("HOME", Config.String("HOME"));
146
146
  /**
147
147
  * An unset variable is `Option.none()`, not a failure. The residual
148
148
  * `ConfigError` a `Config.option` can still raise is a *provider* failure
149
149
  * (a `ConfigProvider` backed by a directory or a `.env` file that cannot be
150
150
  * read), not a missing key — so it is mapped rather than swallowed.
151
151
  */
152
- const read = (name) => Effect.map(asEnvError(name, Config.option(Config.string(name))), Option.getOrUndefined);
152
+ const read = (name) => Effect.map(asEnvError(name, Config.option(Config.String(name))), Option.getOrUndefined);
153
153
  const configHome = yield* read("XDG_CONFIG_HOME");
154
154
  const dataHome = yield* read("XDG_DATA_HOME");
155
155
  const cacheHome = yield* read("XDG_CACHE_HOME");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/xdg",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "description": "XDG Base Directory resolution for Effect: environment paths, app-namespaced directories, native OS conventions and config-file resolvers.",
6
6
  "keywords": [
@@ -38,9 +38,9 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "peerDependencies": {
41
- "@effected/config-file": "^0.7.0",
42
- "@effected/walker": "^0.7.0",
43
- "effect": "4.0.0-rc.112"
41
+ "@effected/config-file": "^0.8.0",
42
+ "@effected/walker": "^0.8.0",
43
+ "effect": "4.0.0-rc.115"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=24.11.0"
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.0"
8
+ "packageVersion": "7.59.1"
9
9
  }
10
10
  ]
11
11
  }