@effected/runtimes 0.2.7 → 0.3.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/GitHub.js +4 -4
- package/NodeSchedule.js +1 -1
- package/ResolvedVersions.js +3 -3
- package/package.json +3 -3
package/GitHub.js
CHANGED
|
@@ -18,7 +18,7 @@ import { FetchHttpClient, HttpClient } from "effect/unstable/http";
|
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
var AuthenticationError = class extends Schema.
|
|
21
|
+
var AuthenticationError = class extends Schema.TaggedError()("AuthenticationError", {
|
|
22
22
|
/** How the request was authenticated when it was rejected. */
|
|
23
23
|
method: Schema.Literals(["token", "anonymous"]) }) {};
|
|
24
24
|
/**
|
|
@@ -29,7 +29,7 @@ method: Schema.Literals(["token", "anonymous"]) }) {};
|
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
var RateLimitError = class extends Schema.
|
|
32
|
+
var RateLimitError = class extends Schema.TaggedError()("RateLimitError", {
|
|
33
33
|
/** Seconds to wait before retrying, when GitHub said. */
|
|
34
34
|
retryAfter: Schema.optionalKey(Schema.Number),
|
|
35
35
|
/** The request quota for the window. */
|
|
@@ -42,7 +42,7 @@ var RateLimitError = class extends Schema.TaggedErrorClass()("RateLimitError", {
|
|
|
42
42
|
*
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
|
-
var NetworkError = class extends Schema.
|
|
45
|
+
var NetworkError = class extends Schema.TaggedError()("NetworkError", {
|
|
46
46
|
/** The URL that failed. */
|
|
47
47
|
url: Schema.String,
|
|
48
48
|
/** The HTTP status, when there was a response at all. */
|
|
@@ -57,7 +57,7 @@ var NetworkError = class extends Schema.TaggedErrorClass()("NetworkError", {
|
|
|
57
57
|
*
|
|
58
58
|
* @public
|
|
59
59
|
*/
|
|
60
|
-
var ResponseParseError = class extends Schema.
|
|
60
|
+
var ResponseParseError = class extends Schema.TaggedError()("ResponseParseError", {
|
|
61
61
|
/** The URL whose body could not be decoded. */
|
|
62
62
|
source: Schema.String,
|
|
63
63
|
/** The decoding failure. */
|
package/NodeSchedule.js
CHANGED
|
@@ -31,7 +31,7 @@ const NodePhase = Schema.Literals([
|
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
var InvalidScheduleDateError = class extends Schema.
|
|
34
|
+
var InvalidScheduleDateError = class extends Schema.TaggedError()("InvalidScheduleDateError", {
|
|
35
35
|
/** The schedule key whose entry failed, e.g. `"v20"`. */
|
|
36
36
|
key: Schema.String,
|
|
37
37
|
/** The field that failed, e.g. `"start"`. */
|
package/ResolvedVersions.js
CHANGED
|
@@ -73,7 +73,7 @@ var ResolvedVersions = class extends Schema.Class("ResolvedVersions")({
|
|
|
73
73
|
*
|
|
74
74
|
* @public
|
|
75
75
|
*/
|
|
76
|
-
var NoMatchingVersionError = class extends Schema.
|
|
76
|
+
var NoMatchingVersionError = class extends Schema.TaggedError()("NoMatchingVersionError", {
|
|
77
77
|
/** The runtime that was searched. */
|
|
78
78
|
runtime: Runtime,
|
|
79
79
|
/** The semver range that matched nothing. */
|
|
@@ -96,7 +96,7 @@ var NoMatchingVersionError = class extends Schema.TaggedErrorClass()("NoMatching
|
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
98
98
|
*/
|
|
99
|
-
var UnresolvableDefaultError = class extends Schema.
|
|
99
|
+
var UnresolvableDefaultError = class extends Schema.TaggedError()("UnresolvableDefaultError", {
|
|
100
100
|
/** The runtime that was searched. */
|
|
101
101
|
runtime: Runtime,
|
|
102
102
|
/** The range the caller asked to treat as the default. */
|
|
@@ -111,7 +111,7 @@ var UnresolvableDefaultError = class extends Schema.TaggedErrorClass()("Unresolv
|
|
|
111
111
|
*
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
var FreshnessError = class extends Schema.
|
|
114
|
+
var FreshnessError = class extends Schema.TaggedError()("FreshnessError", {
|
|
115
115
|
/** The runtime whose feed could not be reached. */
|
|
116
116
|
runtime: Runtime,
|
|
117
117
|
/** The underlying transport or parse failure. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/runtimes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
43
|
+
"@effected/semver": "^0.4.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"effect": "4.0.0-beta.
|
|
46
|
+
"effect": "4.0.0-beta.107"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=24.11.0"
|