@supacloud/elysia 0.42.4 → 0.42.6
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 +7 -8
- package/compatibility.json +2 -2
- package/dist/bun-aot.js +5 -2
- package/dist/effect.d.ts +2 -1
- package/dist/index.js +5 -2
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -48,16 +48,15 @@ The manifest describes static declarations; host options can add lifecycle hooks
|
|
|
48
48
|
or select the request pipeline. Native Elysia macros supplied by the host are
|
|
49
49
|
not inferred from application declarations.
|
|
50
50
|
|
|
51
|
-
The Elysia peer and development dependency are pinned to `2.0.0-rc.
|
|
51
|
+
The Elysia peer and development dependency are pinned to `2.0.0-rc.4`.
|
|
52
52
|
The runtime adapter pins Effect `4.0.5` and consumes its `Exit`-based
|
|
53
53
|
execution boundary.
|
|
54
|
-
`compatibility.json` records the acceptance target: Bun 1.4.
|
|
55
|
-
2.0.0-rc.
|
|
56
|
-
TypeScript
|
|
57
|
-
|
|
58
|
-
required target, not proof of an execution. See the dated, commit-specific
|
|
54
|
+
`compatibility.json` records the acceptance target: Bun 1.4.5, Elysia
|
|
55
|
+
2.0.0-rc.4, Effect 4.0.5, `typebox` 1.4.3, `exact-mirror` 1.2.7,
|
|
56
|
+
and TypeScript 7.1.0-beta. The matrix is a required target, not proof of an
|
|
57
|
+
execution. See the dated, commit-specific
|
|
59
58
|
[framework acceptance record](../../docs/framework-acceptance.md) for actual
|
|
60
|
-
results. The contract-upgrade gate checks
|
|
59
|
+
results. The contract-upgrade gate checks the TypeScript CLI and API. These tests
|
|
61
60
|
do not establish a wider RC version matrix or Node.js runtime compatibility.
|
|
62
61
|
|
|
63
62
|
Keep the exact Elysia peer until additional versions have their own acceptance
|
|
@@ -405,7 +404,7 @@ Runtime adapter that turns `@supacloud/compiler` output into a production-ready
|
|
|
405
404
|
## Installation
|
|
406
405
|
|
|
407
406
|
```bash
|
|
408
|
-
bun add --exact @supacloud/elysia elysia@2.0.0-rc.
|
|
407
|
+
bun add --exact @supacloud/elysia elysia@2.0.0-rc.4
|
|
409
408
|
```
|
|
410
409
|
|
|
411
410
|
## Usage
|
package/compatibility.json
CHANGED
package/dist/bun-aot.js
CHANGED
|
@@ -1023,11 +1023,13 @@ var DEFAULT_EFFECT_RETRY = "none";
|
|
|
1023
1023
|
class EffectApplicationError extends Error {
|
|
1024
1024
|
status;
|
|
1025
1025
|
code;
|
|
1026
|
+
details;
|
|
1026
1027
|
expose = true;
|
|
1027
|
-
constructor(message, status, code) {
|
|
1028
|
+
constructor(message, status, code, details) {
|
|
1028
1029
|
super(message);
|
|
1029
1030
|
this.status = status;
|
|
1030
1031
|
this.code = code;
|
|
1032
|
+
this.details = details;
|
|
1031
1033
|
this.name = "EffectApplicationError";
|
|
1032
1034
|
}
|
|
1033
1035
|
}
|
|
@@ -1091,7 +1093,7 @@ function mapEffectFailure(error, descriptor) {
|
|
|
1091
1093
|
const instanceCode = mapping.codeFromError ? boundedString(error, "code", 120) : undefined;
|
|
1092
1094
|
const instanceMessage = mapping.messageFromError ? boundedString(error, "message", 500) : undefined;
|
|
1093
1095
|
const instanceStatus = mapping.statusFromError ? boundedStatus(error) : undefined;
|
|
1094
|
-
return new EffectApplicationError(instanceMessage ?? mapping.message ?? mapping.code, instanceStatus ?? mapping.status, instanceCode ?? mapping.code);
|
|
1096
|
+
return new EffectApplicationError(instanceMessage ?? mapping.message ?? mapping.code, instanceStatus ?? mapping.status, instanceCode ?? mapping.code, isRecord(error) && "details" in error ? error.details : undefined);
|
|
1095
1097
|
}
|
|
1096
1098
|
if (tag === "TimeoutException" || tag === "TimeoutError") {
|
|
1097
1099
|
return new EffectApplicationError("Effect execution timed out", 504, "EFFECT_TIMEOUT");
|
|
@@ -2819,6 +2821,7 @@ function createModulePlugin(compiled, services, ctxFactory = defaultRequestConte
|
|
|
2819
2821
|
"schemaKinds",
|
|
2820
2822
|
"nativeResponse",
|
|
2821
2823
|
"invoker",
|
|
2824
|
+
"effectMode",
|
|
2822
2825
|
"effect",
|
|
2823
2826
|
"directInvoker",
|
|
2824
2827
|
"directInvokerFast",
|
package/dist/effect.d.ts
CHANGED
|
@@ -37,8 +37,9 @@ export interface SupaCloudEffectRuntime {
|
|
|
37
37
|
export declare class EffectApplicationError extends Error {
|
|
38
38
|
readonly status: number;
|
|
39
39
|
readonly code: string;
|
|
40
|
+
readonly details?: unknown;
|
|
40
41
|
readonly expose: true;
|
|
41
|
-
constructor(message: string, status: number, code: string);
|
|
42
|
+
constructor(message: string, status: number, code: string, details?: unknown);
|
|
42
43
|
}
|
|
43
44
|
export declare function createDefaultEffectRuntime(): SupaCloudEffectRuntime;
|
|
44
45
|
export declare function createEffectRuntimeFromLayer<Services>(layer: Layer.Layer<Services, never, never>): SupaCloudEffectRuntime;
|
package/dist/index.js
CHANGED
|
@@ -1023,11 +1023,13 @@ var DEFAULT_EFFECT_RETRY = "none";
|
|
|
1023
1023
|
class EffectApplicationError extends Error {
|
|
1024
1024
|
status;
|
|
1025
1025
|
code;
|
|
1026
|
+
details;
|
|
1026
1027
|
expose = true;
|
|
1027
|
-
constructor(message, status, code) {
|
|
1028
|
+
constructor(message, status, code, details) {
|
|
1028
1029
|
super(message);
|
|
1029
1030
|
this.status = status;
|
|
1030
1031
|
this.code = code;
|
|
1032
|
+
this.details = details;
|
|
1031
1033
|
this.name = "EffectApplicationError";
|
|
1032
1034
|
}
|
|
1033
1035
|
}
|
|
@@ -1091,7 +1093,7 @@ function mapEffectFailure(error, descriptor) {
|
|
|
1091
1093
|
const instanceCode = mapping.codeFromError ? boundedString(error, "code", 120) : undefined;
|
|
1092
1094
|
const instanceMessage = mapping.messageFromError ? boundedString(error, "message", 500) : undefined;
|
|
1093
1095
|
const instanceStatus = mapping.statusFromError ? boundedStatus(error) : undefined;
|
|
1094
|
-
return new EffectApplicationError(instanceMessage ?? mapping.message ?? mapping.code, instanceStatus ?? mapping.status, instanceCode ?? mapping.code);
|
|
1096
|
+
return new EffectApplicationError(instanceMessage ?? mapping.message ?? mapping.code, instanceStatus ?? mapping.status, instanceCode ?? mapping.code, isRecord(error) && "details" in error ? error.details : undefined);
|
|
1095
1097
|
}
|
|
1096
1098
|
if (tag === "TimeoutException" || tag === "TimeoutError") {
|
|
1097
1099
|
return new EffectApplicationError("Effect execution timed out", 504, "EFFECT_TIMEOUT");
|
|
@@ -2819,6 +2821,7 @@ function createModulePlugin(compiled, services, ctxFactory = defaultRequestConte
|
|
|
2819
2821
|
"schemaKinds",
|
|
2820
2822
|
"nativeResponse",
|
|
2821
2823
|
"invoker",
|
|
2824
|
+
"effectMode",
|
|
2822
2825
|
"effect",
|
|
2823
2826
|
"directInvoker",
|
|
2824
2827
|
"directInvokerFast",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/elysia",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.6",
|
|
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",
|
|
@@ -54,31 +54,31 @@
|
|
|
54
54
|
"directory": "packages/elysia"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@supacloud/app": "0.39.
|
|
58
|
-
"@supacloud/commands": "0.12.
|
|
59
|
-
"@supacloud/contracts": "0.16.
|
|
57
|
+
"@supacloud/app": "0.39.5",
|
|
58
|
+
"@supacloud/commands": "0.12.1",
|
|
59
|
+
"@supacloud/contracts": "0.16.3",
|
|
60
60
|
"effect": "4.0.5",
|
|
61
61
|
"exact-mirror": "1.2.7",
|
|
62
62
|
"jose": "^6.2.13",
|
|
63
63
|
"typebox": "1.4.3"
|
|
64
64
|
},
|
|
65
65
|
"overrides": {
|
|
66
|
-
"@supacloud/delivery": "0.
|
|
67
|
-
"@supacloud/contracts": "0.16.
|
|
68
|
-
"@supacloud/commands": "0.12.
|
|
66
|
+
"@supacloud/delivery": "0.29.0",
|
|
67
|
+
"@supacloud/contracts": "0.16.3",
|
|
68
|
+
"@supacloud/commands": "0.12.1",
|
|
69
69
|
"@graphql-tools/utils": "^12.0.4",
|
|
70
70
|
"deepmerge-ts": "8.0.2",
|
|
71
71
|
"prisma": "6.19.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"elysia": "2.0.0-rc.
|
|
74
|
+
"elysia": "2.0.0-rc.4"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@supacloud/compiler": "0.62.
|
|
78
|
-
"@supacloud/delivery": "0.
|
|
79
|
-
"@supacloud/db": "0.
|
|
80
|
-
"@types/bun": "^1.4.
|
|
81
|
-
"elysia": "2.0.0-rc.
|
|
77
|
+
"@supacloud/compiler": "0.62.9",
|
|
78
|
+
"@supacloud/delivery": "0.29.0",
|
|
79
|
+
"@supacloud/db": "0.25.2",
|
|
80
|
+
"@types/bun": "^1.4.5",
|
|
81
|
+
"elysia": "2.0.0-rc.4",
|
|
82
82
|
"typescript": "7.1.0-beta"
|
|
83
83
|
}
|
|
84
84
|
}
|