@supacloud/elysia 0.36.0 → 0.36.2
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 -5
- package/compatibility.json +2 -2
- package/dist/index.js +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -8,17 +8,17 @@ is a separately authorized business command, never an assumed rollback.
|
|
|
8
8
|
|
|
9
9
|
## Compatibility and Acceptance Boundary
|
|
10
10
|
|
|
11
|
-
The Elysia peer and development dependency are pinned to `2.0.0-
|
|
11
|
+
The Elysia peer and development dependency are pinned to `2.0.0-rc.0`.
|
|
12
12
|
The runtime adapter pins Effect `4.0.5` and consumes its `Exit`-based
|
|
13
13
|
execution boundary.
|
|
14
14
|
`compatibility.json` records the acceptance target: Bun 1.4.3, Elysia
|
|
15
|
-
2.0.0-
|
|
15
|
+
2.0.0-rc.0, Effect 4.0.5, `typebox` 1.4.2, `exact-mirror` 1.2.6,
|
|
16
16
|
TypeScript CLI 7.0.2 and the compiler's separate TypeScript 6 semantic API 6.0.2.
|
|
17
17
|
The matrix is a
|
|
18
18
|
required target, not proof of an execution. See the dated, commit-specific
|
|
19
19
|
[framework acceptance record](../../docs/framework-acceptance.md) for actual
|
|
20
20
|
results. The contract-upgrade gate checks both TypeScript engines. These tests
|
|
21
|
-
do not establish a wider
|
|
21
|
+
do not establish a wider RC version matrix or Node.js runtime compatibility.
|
|
22
22
|
|
|
23
23
|
Keep the exact Elysia peer until additional versions have their own acceptance
|
|
24
24
|
evidence. A server using this adapter still installs Elysia; application metadata
|
|
@@ -327,7 +327,7 @@ Runtime adapter that turns `@supacloud/compiler` output into a production-ready
|
|
|
327
327
|
## Installation
|
|
328
328
|
|
|
329
329
|
```bash
|
|
330
|
-
bun add --exact @supacloud/elysia elysia@2.0.0-
|
|
330
|
+
bun add --exact @supacloud/elysia elysia@2.0.0-rc.0
|
|
331
331
|
```
|
|
332
332
|
|
|
333
333
|
## Usage
|
|
@@ -642,7 +642,7 @@ Lightweight error class carrying HTTP `status`, machine-readable `code`, and
|
|
|
642
642
|
optional structured `details`.
|
|
643
643
|
|
|
644
644
|
The adapter registers `ApplicationError` and `SchemaContractError` in Elysia
|
|
645
|
-
2.0's native error dictionary (`app.
|
|
645
|
+
2.0's native error dictionary (`app.onError(ErrorClass, handler)`). Typed entries
|
|
646
646
|
keep these classes out of the generic catch-all, so route response inference
|
|
647
647
|
stays precise while Elysia (and Eden Treaty) knows the errors are handled. The
|
|
648
648
|
dictionary is exported as `applicationErrorDictionary`, and
|
package/compatibility.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -862,7 +862,7 @@ function registerElysiaRoute(app, route) {
|
|
|
862
862
|
}
|
|
863
863
|
return value;
|
|
864
864
|
};
|
|
865
|
-
app.
|
|
865
|
+
app.route(route.method, route.path, { ...toElysiaRouteSchema(route.contract) }, handler);
|
|
866
866
|
return app;
|
|
867
867
|
}
|
|
868
868
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/elysia",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.2",
|
|
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",
|
|
@@ -49,29 +49,29 @@
|
|
|
49
49
|
"directory": "packages/elysia"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@supacloud/app": "0.
|
|
53
|
-
"@supacloud/commands": "0.11.
|
|
54
|
-
"@supacloud/contracts": "0.
|
|
52
|
+
"@supacloud/app": "0.33.0",
|
|
53
|
+
"@supacloud/commands": "0.11.1",
|
|
54
|
+
"@supacloud/contracts": "0.15.1",
|
|
55
55
|
"effect": "4.0.5",
|
|
56
56
|
"exact-mirror": "1.2.6",
|
|
57
|
-
"jose": "^6.2.
|
|
58
|
-
"typebox": "1.
|
|
57
|
+
"jose": "^6.2.13",
|
|
58
|
+
"typebox": "1.4.2"
|
|
59
59
|
},
|
|
60
60
|
"overrides": {
|
|
61
|
-
"@supacloud/delivery": "0.21.
|
|
62
|
-
"@supacloud/contracts": "0.
|
|
63
|
-
"@supacloud/commands": "0.11.
|
|
61
|
+
"@supacloud/delivery": "0.21.1",
|
|
62
|
+
"@supacloud/contracts": "0.15.1",
|
|
63
|
+
"@supacloud/commands": "0.11.1",
|
|
64
64
|
"@graphql-tools/utils": "^12.0.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"elysia": "2.0.0-
|
|
67
|
+
"elysia": "2.0.0-rc.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@supacloud/compiler": "0.51.
|
|
71
|
-
"@supacloud/delivery": "0.21.
|
|
72
|
-
"@supacloud/db": "0.20.
|
|
70
|
+
"@supacloud/compiler": "0.51.1",
|
|
71
|
+
"@supacloud/delivery": "0.21.1",
|
|
72
|
+
"@supacloud/db": "0.20.1",
|
|
73
73
|
"@types/bun": "^1.4.3",
|
|
74
|
-
"elysia": "2.0.0-
|
|
74
|
+
"elysia": "2.0.0-rc.0",
|
|
75
75
|
"typescript": "^7.0.2"
|
|
76
76
|
}
|
|
77
77
|
}
|