runtime-resolver 0.2.0 → 0.3.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/{701.js → 711.js} +73 -49
- package/bin/runtime-resolver.js +4 -5
- package/index.d.ts +267 -563
- package/index.js +8 -9
- package/{235.js → json-schema.js} +8 -2
- package/package.json +10 -8
- package/rslib-runtime.js +37 -0
- package/tsdoc-metadata.json +1 -1
package/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Data, Effect, Layer } from "effect";
|
|
2
|
+
import { SemVerParserLive, VersionCacheLive } from "semver-effect";
|
|
3
|
+
import { DenoReleaseCacheLive, BunRelease, AutoDenoCacheLive, NodeReleaseCacheLive, NodeReleaseCache, AutoNodeCacheLive, denoDefaultInputs, BunReleaseCache, nodeDefaultInputs, NodeResolverLive, BunVersionFetcherLive, DenoResolverLive, GitHubClientLive, BunVersionFetcher, NodeScheduleFetcher, DenoResolver, NodeScheduleFetcherLive, DenoVersionFetcherLive, NodeVersionFetcher, DenoReleaseCache, BunReleaseCacheLive, BunResolver, DenoRelease, bunDefaultInputs, NodeVersionFetcherLive, GitHubAutoAuth, BunResolverLive, NodeResolver, AutoBunCacheLive, DenoVersionFetcher, nodeDefaultScheduleData } from "./711.js";
|
|
4
|
+
class CacheError extends Data.TaggedError("CacheError") {
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
class FreshnessError extends FreshnessErrorBase {
|
|
6
|
+
class FreshnessError extends Data.TaggedError("FreshnessError") {
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
class InvalidInputError extends InvalidInputErrorBase {
|
|
8
|
+
class InvalidInputError extends Data.TaggedError("InvalidInputError") {
|
|
10
9
|
}
|
|
11
10
|
const freshSetup = Effect.gen(function*() {
|
|
12
11
|
const cache = yield* BunReleaseCache;
|
|
@@ -137,5 +136,5 @@ const resolveDeno = (options)=>Effect.runPromise(Effect.gen(function*() {
|
|
|
137
136
|
const resolver = yield* DenoResolver;
|
|
138
137
|
return yield* resolver.resolve(options);
|
|
139
138
|
}).pipe(Effect.provide(DenoLayer)));
|
|
140
|
-
export { AuthenticationError,
|
|
141
|
-
export { CacheError,
|
|
139
|
+
export { AuthenticationError, AutoBunCacheLive, AutoDenoCacheLive, AutoNodeCacheLive, BunRelease, BunReleaseCache, BunReleaseCacheLive, BunResolver, BunResolverLive, BunVersionFetcher, BunVersionFetcherLive, DenoRelease, DenoReleaseCache, DenoReleaseCacheLive, DenoResolver, DenoResolverLive, DenoVersionFetcher, DenoVersionFetcherLive, GitHubAppAuth, GitHubAutoAuth, GitHubClient, GitHubClientLive, GitHubTokenAuth, GitHubTokenAuthFromToken, NetworkError, NodeRelease, NodeReleaseCache, NodeReleaseCacheLive, NodeResolver, NodeResolverLive, NodeSchedule, NodeScheduleFetcher, NodeScheduleFetcherLive, NodeVersionFetcher, NodeVersionFetcherLive, OctokitInstance, ParseError, RateLimitError, VersionNotFoundError, createRuntimeCache } from "./711.js";
|
|
140
|
+
export { CacheError, FreshBunCacheLive, FreshDenoCacheLive, FreshNodeCacheLive, FreshnessError, InvalidInputError, OfflineBunCacheLive, OfflineDenoCacheLive, OfflineNodeCacheLive, resolveBun, resolveDeno, resolveNode };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
|
+
import { JSONSchema, Schema } from "effect";
|
|
3
|
+
var json_schema_namespaceObject = {};
|
|
4
|
+
__webpack_require__.r(json_schema_namespaceObject);
|
|
5
|
+
__webpack_require__.d(json_schema_namespaceObject, {
|
|
6
|
+
cliJsonSchema: ()=>cliJsonSchema
|
|
7
|
+
});
|
|
2
8
|
const CliErrorDetail = Schema.Struct({
|
|
3
9
|
_tag: Schema.String.annotations({
|
|
4
10
|
description: "Error type identifier (e.g. RateLimitError, SemverError)"
|
|
@@ -86,4 +92,4 @@ const CliResponse = Schema.Union(CliSuccessResponse, CliErrorResponse).annotatio
|
|
|
86
92
|
description: "CLI response envelope. Contains an ok discriminator and a results map with per-runtime resolution outcomes."
|
|
87
93
|
});
|
|
88
94
|
const cliJsonSchema = JSONSchema.make(CliResponse);
|
|
89
|
-
export {
|
|
95
|
+
export { json_schema_namespaceObject };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runtime-resolver",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Resolve semver-compatible versions of Node.js, Bun, and Deno runtimes with Effect-based architecture and offline fallback.",
|
|
6
6
|
"keywords": [
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"email": "spencer@beggs.codes",
|
|
31
31
|
"url": "https://spencerbeg.gs"
|
|
32
32
|
},
|
|
33
|
+
"sideEffects": false,
|
|
33
34
|
"type": "module",
|
|
34
35
|
"exports": {
|
|
35
36
|
".": {
|
|
@@ -41,26 +42,27 @@
|
|
|
41
42
|
"runtime-resolver": "./bin/runtime-resolver.js"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@effect/cli": "^0.
|
|
45
|
-
"@effect/platform": "^0.
|
|
46
|
-
"@effect/platform-node": "^0.
|
|
45
|
+
"@effect/cli": "^0.75.0",
|
|
46
|
+
"@effect/platform": "^0.96.0",
|
|
47
|
+
"@effect/platform-node": "^0.106.0",
|
|
47
48
|
"@octokit/auth-app": "^8.2.0",
|
|
48
|
-
"effect": "^3.
|
|
49
|
+
"effect": "^3.21.0",
|
|
49
50
|
"octokit": "^5.0.5",
|
|
50
|
-
"semver-effect": "^0.
|
|
51
|
+
"semver-effect": "^0.2.0"
|
|
51
52
|
},
|
|
52
53
|
"files": [
|
|
53
54
|
"!runtime-resolver.api.json",
|
|
54
55
|
"!tsconfig.json",
|
|
55
56
|
"!tsdoc.json",
|
|
56
|
-
"
|
|
57
|
-
"701.js",
|
|
57
|
+
"711.js",
|
|
58
58
|
"LICENSE",
|
|
59
59
|
"README.md",
|
|
60
60
|
"bin/runtime-resolver.js",
|
|
61
61
|
"index.d.ts",
|
|
62
62
|
"index.js",
|
|
63
|
+
"json-schema.js",
|
|
63
64
|
"package.json",
|
|
65
|
+
"rslib-runtime.js",
|
|
64
66
|
"tsdoc-metadata.json"
|
|
65
67
|
]
|
|
66
68
|
}
|
package/rslib-runtime.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __webpack_module_cache__ = {};
|
|
2
|
+
function __webpack_require__(moduleId) {
|
|
3
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
4
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
5
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
6
|
+
exports: {}
|
|
7
|
+
};
|
|
8
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
9
|
+
return module.exports;
|
|
10
|
+
}
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
13
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: definition[key]
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
})();
|
|
19
|
+
(()=>{
|
|
20
|
+
__webpack_require__.add = function(modules) {
|
|
21
|
+
Object.assign(__webpack_require__.m, modules);
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
(()=>{
|
|
25
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
26
|
+
})();
|
|
27
|
+
(()=>{
|
|
28
|
+
__webpack_require__.r = (exports)=>{
|
|
29
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
30
|
+
value: 'Module'
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, '__esModule', {
|
|
33
|
+
value: true
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
})();
|
|
37
|
+
export { __webpack_require__ };
|