@effected/walker 0.3.4 → 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/Descend.js CHANGED
@@ -9,7 +9,7 @@ import { Effect, FileSystem, Path, Schema } from "effect";
9
9
  *
10
10
  * @public
11
11
  */
12
- var DescendError = class extends Schema.TaggedErrorClass()("DescendError", {
12
+ var DescendError = class extends Schema.TaggedError()("DescendError", {
13
13
  /** The glob pattern's source text. */
14
14
  pattern: Schema.String,
15
15
  reason: Schema.Literals(["unreadableDirectory", "depthExceeded"]),
package/Expand.js CHANGED
@@ -21,7 +21,7 @@ import { GlobPattern, GlobPatternError } from "@effected/glob";
21
21
  *
22
22
  * @public
23
23
  */
24
- var GlobExpansionError = class extends Schema.TaggedErrorClass()("GlobExpansionError", {
24
+ var GlobExpansionError = class extends Schema.TaggedError()("GlobExpansionError", {
25
25
  /** The glob pattern's source text, as handed to {@link compileAndExpand}. */
26
26
  pattern: Schema.String,
27
27
  /** The underlying typed failure, intact: a compile guard trip or a descent failure. */
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  Path traversal as Effect primitives. `Walker.ascend` gives you the directory chain from a starting path to the filesystem root; `Walker.findUpward` returns the nearest existing file among per-directory candidates; `Walker.findRoot` returns the nearest directory a marker predicate accepts. Every probe absorbs its own failure, so a single unreadable ancestor cannot hide a valid `.git` or `pnpm-workspace.yaml` above it. Going the other way, `descend` expands a compiled [`@effected/glob`](https://www.npmjs.com/package/@effected/glob) pattern under a directory into the matching file paths — sorted, symlink-safe, and typed about unreadable subtrees instead of silently swallowing them. `FileSystem` and `Path` arrive from `effect` core, so no platform package is pulled in — not even in tests.
9
9
 
10
10
  > **Pre-release.** This package is part of the `@effected/*` kit, in pre-`1.0.0`
11
- > development against a single pinned Effect v4 beta. Packages graduate to
11
+ > development against a single pinned Effect v4 prerelease. Packages graduate to
12
12
  > `1.0.0` once Effect `4.0.0` ships. To hold your own `effect` versions at
13
13
  > exactly the ones the kit is built and tested against, install
14
14
  > [`@effected/pnpm-plugin-effect`](https://www.npmjs.com/package/@effected/pnpm-plugin-effect).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/walker",
3
- "version": "0.3.4",
3
+ "version": "0.5.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,8 +37,8 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "peerDependencies": {
40
- "@effected/glob": "^0.2.2",
41
- "effect": "4.0.0-beta.101"
40
+ "@effected/glob": "^0.4.0",
41
+ "effect": "4.0.0-rc.109"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=24.11.0"