@effected/runtimes 0.3.0 → 0.4.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/NodeResolver.js CHANGED
@@ -92,7 +92,7 @@ function build(tag, strategy) {
92
92
  const index = yield* make();
93
93
  const scheduleRef = yield* Ref.make(NodeSchedule.empty);
94
94
  const live = Effect.gen(function* () {
95
- const [raw, scheduleData] = yield* Effect.all([fetchNodeReleases(), fetchNodeSchedule()]);
95
+ const [raw, scheduleData] = yield* Effect.all([fetchNodeReleases(), fetchNodeSchedule()], { concurrency: 2 });
96
96
  yield* Ref.set(scheduleRef, yield* NodeSchedule.fromData(scheduleData));
97
97
  return yield* buildNodeReleases(raw);
98
98
  }).pipe(Effect.catchTag("InvalidVersionError", (cause) => Effect.die(cause)));
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  Resolve semver-compatible Node.js, Bun and Deno versions from the live release feeds, with a bundled offline snapshot as a fallback. Ask for `>=20` in the `active-lts` phase and get back every match, newest first, plus the LTS pick and whatever you nominated as the default. Node's lifecycle phases come from the real `nodejs/Release` schedule and are evaluated against the clock, so `current`, `active-lts`, `maintenance-lts` and `end-of-life` mean what they mean today rather than on the day the package was published.
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).
@@ -23,7 +23,10 @@ const make = () => Effect.gen(function* () {
23
23
  releases: Ref.get(state).pipe(Effect.map(({ releases }) => releases)),
24
24
  source: Ref.get(state).pipe(Effect.map(({ source }) => source)),
25
25
  filter,
26
- resolve: (range) => filter(range).pipe(Effect.map((matches) => Option.fromUndefinedOr(matches[0])))
26
+ resolve: (range) => Ref.get(state).pipe(Effect.map(({ releases }) => {
27
+ for (const release of releases) if (range.test(release.version)) return Option.some(release);
28
+ return Option.none();
29
+ }))
27
30
  };
28
31
  });
29
32
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/runtimes",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "description": "Resolve semver-compatible Node.js, Bun and Deno runtime versions with offline fallback.",
6
6
  "keywords": [
@@ -40,10 +40,10 @@
40
40
  "./package.json": "./package.json"
41
41
  },
42
42
  "dependencies": {
43
- "@effected/semver": "^0.4.0"
43
+ "@effected/semver": "^0.5.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "effect": "4.0.0-beta.107"
46
+ "effect": "4.0.0-rc.109"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=24.11.0"