@effected/walker 0.18.0 → 0.19.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/Descend.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Effect, FileSystem, Path, Schema } from "effect";
2
2
 
3
- //#region src/Descend.ts
3
+ // src/Descend.ts
4
4
  /**
5
5
  * Typed failure raised by `descend`: a directory mid-walk was unreadable
6
6
  * (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
@@ -168,5 +168,4 @@ function descend(pattern, options) {
168
168
  return descendImpl(pattern, options);
169
169
  }
170
170
 
171
- //#endregion
172
171
  export { DescendError, descend };
package/Expand.js CHANGED
@@ -2,7 +2,7 @@ import { DescendError, descend } from "./Descend.js";
2
2
  import { Effect, Result, Schema } from "effect";
3
3
  import { GlobPattern, GlobPatternError } from "@effected/glob";
4
4
 
5
- //#region src/Expand.ts
5
+ // src/Expand.ts
6
6
  /**
7
7
  * Typed failure raised by {@link compileAndExpand}: the single error the
8
8
  * compile+expand recipe fails with, so a caller catches one tag rather than
@@ -97,5 +97,4 @@ const compileAndExpand = Effect.fn("Walker.compileAndExpand")(function* (pattern
97
97
  })));
98
98
  });
99
99
 
100
- //#endregion
101
100
  export { GlobExpansionError, compileAndExpand };
package/Walker.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Effect, FileSystem, Option, Path } from "effect";
2
2
 
3
- //#region src/Walker.ts
3
+ // src/Walker.ts
4
4
  const ascend = (start, options) => Effect.gen(function* () {
5
5
  const path = yield* Path.Path;
6
6
  const maxDepth = options?.maxDepth ?? 256;
@@ -154,5 +154,4 @@ var Walker = class {
154
154
  static findRoot = findRoot;
155
155
  };
156
156
 
157
- //#endregion
158
157
  export { Walker };
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { GlobPattern, GlobPatternError, GlobPatternOptions } from "@effected/glob";
2
2
  import { Effect, FileSystem, Option, Path, PlatformError, Schema } from "effect";
3
- //#region src/Descend.d.ts
4
3
  /**
5
4
  * Options for `descend`.
6
5
  *
@@ -200,8 +199,6 @@ export declare function descend(pattern: GlobPattern, options: DescendRecordOpti
200
199
  * @public
201
200
  */
202
201
  export declare function descend(pattern: GlobPattern, options: DescendOptions): Effect.Effect<ReadonlyArray<string>, DescendError, FileSystem.FileSystem | Path.Path>;
203
- //#endregion
204
- //#region src/Expand.d.ts
205
202
  /**
206
203
  * Options for {@link compileAndExpand}: every {@link DescendOptions} field,
207
204
  * plus the glob options the pattern compiles under.
@@ -303,8 +300,6 @@ export declare class GlobExpansionError extends GlobExpansionError_base {
303
300
  * @public
304
301
  */
305
302
  export declare const compileAndExpand: (pattern: string, options: CompileAndExpandOptions) => Effect.Effect<ReadonlyArray<string>, GlobExpansionError, FileSystem.FileSystem | Path.Path>;
306
- //#endregion
307
- //#region src/Walker.d.ts
308
303
  /**
309
304
  * Options for {@link Walker.ascend}.
310
305
  *
@@ -465,6 +460,5 @@ export declare class Walker {
465
460
  */
466
461
  static readonly findRoot: <E, R>(dirs: ReadonlyArray<string>, isRoot: (dir: string) => Effect.Effect<boolean, E, R>) => Effect.Effect<Option.Option<string>, never, R>;
467
462
  }
468
- //#endregion
469
463
  export type { AscendOptions, CompileAndExpandOptions, DescendOptions, DescendRecordOptions, DescendResult, UnreadableDirectory };
470
464
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/walker",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "private": false,
5
5
  "description": "Path traversal as Effect primitives: ascend a directory chain to the first matching candidate, or descend a tree expanding a glob against the filesystem.",
6
6
  "keywords": [
@@ -37,7 +37,7 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "peerDependencies": {
40
- "@effected/glob": "^0.13.0",
40
+ "@effected/glob": "^0.14.0",
41
41
  "effect": "^4.0.0"
42
42
  },
43
43
  "engines": {