@supacloud/elysia 0.28.0 → 0.29.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/README.md +5 -2
- package/compatibility.json +1 -0
- package/dist/effect.d.ts +1 -2
- package/dist/index.js +1 -16
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,9 +9,12 @@ is a separately authorized business command, never an assumed rollback.
|
|
|
9
9
|
## Compatibility and Acceptance Boundary
|
|
10
10
|
|
|
11
11
|
The Elysia peer and development dependency are pinned to `2.0.0-beta.21`.
|
|
12
|
+
The runtime adapter pins Effect `4.0.2` and consumes its `Exit`-based
|
|
13
|
+
execution boundary.
|
|
12
14
|
`compatibility.json` records the acceptance target: Bun 1.4.2, Elysia
|
|
13
|
-
2.0.0-beta.21, `typebox` 1.3.34, `exact-mirror` 1.2.6,
|
|
14
|
-
and the compiler's separate TypeScript 6 semantic API 6.0.2.
|
|
15
|
+
2.0.0-beta.21, Effect 4.0.2, `typebox` 1.3.34, `exact-mirror` 1.2.6,
|
|
16
|
+
TypeScript CLI 7.0.2 and the compiler's separate TypeScript 6 semantic API 6.0.2.
|
|
17
|
+
The matrix is a
|
|
15
18
|
required target, not proof of an execution. See the dated, commit-specific
|
|
16
19
|
[framework acceptance record](../../docs/framework-acceptance.md) for actual
|
|
17
20
|
results. The contract-upgrade gate checks both TypeScript engines. These tests
|
package/compatibility.json
CHANGED
package/dist/effect.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1015,12 +1015,7 @@ function createDocumentationPlugin(options = {}) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
// src/effect.ts
|
|
1018
|
-
import
|
|
1019
|
-
import * as Effect from "effect/Effect";
|
|
1020
|
-
import * as Schedule from "effect/Schedule";
|
|
1021
|
-
import * as Cause from "effect/Cause";
|
|
1022
|
-
import * as Exit from "effect/Exit";
|
|
1023
|
-
import * as Runtime from "effect/Runtime";
|
|
1018
|
+
import { Cause, Duration, Effect, Exit, Schedule } from "effect";
|
|
1024
1019
|
|
|
1025
1020
|
class EffectApplicationError extends Error {
|
|
1026
1021
|
status;
|
|
@@ -1063,17 +1058,7 @@ function effectErrorTag(error) {
|
|
|
1063
1058
|
return error.constructor.name;
|
|
1064
1059
|
return;
|
|
1065
1060
|
}
|
|
1066
|
-
function unwrapFiberFailure(error) {
|
|
1067
|
-
let current = error;
|
|
1068
|
-
const seen = new Set;
|
|
1069
|
-
while (Runtime.isFiberFailure(current) && !seen.has(current)) {
|
|
1070
|
-
seen.add(current);
|
|
1071
|
-
current = Cause.squash(current[Runtime.FiberFailureCauseId]);
|
|
1072
|
-
}
|
|
1073
|
-
return current;
|
|
1074
|
-
}
|
|
1075
1061
|
function mapEffectFailure(error, descriptor) {
|
|
1076
|
-
error = unwrapFiberFailure(error);
|
|
1077
1062
|
const tag = effectErrorTag(error);
|
|
1078
1063
|
const mapping = tag && descriptor?.errors?.find((entry) => entry.tag === tag);
|
|
1079
1064
|
if (mapping) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/elysia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Elysia runtime adapter for SupaCloud compiled modules: application/request scopes, route registration and validation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@supacloud/app": "0.24.0",
|
|
53
53
|
"@supacloud/contracts": "0.8.0",
|
|
54
|
-
"effect": "
|
|
54
|
+
"effect": "4.0.2",
|
|
55
55
|
"exact-mirror": "1.2.6",
|
|
56
56
|
"jose": "^6.2.11",
|
|
57
57
|
"typebox": "1.3.34"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"elysia": "2.0.0-beta.21"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@supacloud/compiler": "0.
|
|
69
|
+
"@supacloud/compiler": "0.42.0",
|
|
70
70
|
"@supacloud/delivery": "0.8.0",
|
|
71
71
|
"@supacloud/commands": "0.9.1",
|
|
72
72
|
"@supacloud/db": "0.14.0",
|