@supacloud/elysia 0.42.2 → 0.42.4
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 +2 -2
- package/dist/bun-aot.js +0 -1
- package/dist/fixtures/webhook-generated/application.d.ts +9 -0
- package/dist/index.js +0 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -62,8 +62,11 @@ do not establish a wider RC version matrix or Node.js runtime compatibility.
|
|
|
62
62
|
|
|
63
63
|
Keep the exact Elysia peer until additional versions have their own acceptance
|
|
64
64
|
evidence. A server using this adapter still installs Elysia; application metadata
|
|
65
|
-
and business modules need not import native Elysia types.
|
|
66
|
-
|
|
65
|
+
and business modules need not import native Elysia types. Publication rewrites
|
|
66
|
+
`@supacloud/app` from `file:../app` to that sibling's exact version. Every static
|
|
67
|
+
import of `@supacloud/app` or a subpath, including `@supacloud/app/pending-work`,
|
|
68
|
+
must be an export of the published app tarball, runtime JavaScript file included.
|
|
69
|
+
See the [dependency boundary and upgrade policy](../../docs/elysia-compatibility.md).
|
|
67
70
|
|
|
68
71
|
## Identity-bound ZenStack read adapter
|
|
69
72
|
|
package/compatibility.json
CHANGED
package/dist/bun-aot.js
CHANGED
|
@@ -3001,7 +3001,6 @@ function createModulePlugin(compiled, services, ctxFactory = defaultRequestConte
|
|
|
3001
3001
|
const command = route.command ? commandsByClassName.get(route.command) : undefined;
|
|
3002
3002
|
const commandPipeline = route.command ? descriptorPipeline(command ?? {}, "command", options.onExecution) : undefined;
|
|
3003
3003
|
const routeHasAspects = compiled.aspectPipeline !== undefined || (compiled.aspects?.length ?? 0) > 0 || route.aspectPipeline !== undefined || (route.aspects?.length ?? 0) > 0 || command?.aspectPipeline !== undefined || (command?.aspects?.length ?? 0) > 0;
|
|
3004
|
-
const routeInvoker = route.invoker;
|
|
3005
3004
|
if (mappingPolicies.length > 0) {
|
|
3006
3005
|
const responseValidators = Validator2.response(schema.response, { normalize: options.normalize ?? true });
|
|
3007
3006
|
Object.assign(schema, {
|
|
@@ -139,6 +139,15 @@ export interface CompiledModule {
|
|
|
139
139
|
}
|
|
140
140
|
type CompiledAspectObserver = (stage: string, run: () => unknown | Promise<unknown>) => unknown | Promise<unknown>;
|
|
141
141
|
type CompiledAspectPipeline = (context: CompiledAspectContext, next: () => unknown | Promise<unknown>, observe?: CompiledAspectObserver) => unknown | Promise<unknown>;
|
|
142
|
+
export declare function compiledAspectStep(context: CompiledAspectContext, handler: () => unknown | Promise<unknown>, run: (next: () => Promise<unknown>) => unknown | Promise<unknown>): Promise<unknown>;
|
|
143
|
+
export declare function observeCompiledAspect(observe: CompiledAspectObserver | undefined, stage: string, run: () => unknown | Promise<unknown>): unknown | Promise<unknown>;
|
|
144
|
+
export declare function resolveFactoryValue(value: unknown): unknown;
|
|
145
|
+
type CompiledServiceLifecycleEntry = {
|
|
146
|
+
key: string;
|
|
147
|
+
index?: number;
|
|
148
|
+
};
|
|
149
|
+
export declare function initializeServiceInstances(services: Record<string, unknown>, plan: readonly CompiledServiceLifecycleEntry[]): Promise<void>;
|
|
150
|
+
export declare function destroyServiceInstances(services: Record<string, unknown>, plan: readonly CompiledServiceLifecycleEntry[]): Promise<void>;
|
|
142
151
|
export type CompiledApplicationModule = Omit<CompiledModule, "name" | "createServices"> & ({
|
|
143
152
|
name: "webhook";
|
|
144
153
|
createServices: typeof createWebhookServices;
|
package/dist/index.js
CHANGED
|
@@ -3001,7 +3001,6 @@ function createModulePlugin(compiled, services, ctxFactory = defaultRequestConte
|
|
|
3001
3001
|
const command = route.command ? commandsByClassName.get(route.command) : undefined;
|
|
3002
3002
|
const commandPipeline = route.command ? descriptorPipeline(command ?? {}, "command", options.onExecution) : undefined;
|
|
3003
3003
|
const routeHasAspects = compiled.aspectPipeline !== undefined || (compiled.aspects?.length ?? 0) > 0 || route.aspectPipeline !== undefined || (route.aspects?.length ?? 0) > 0 || command?.aspectPipeline !== undefined || (command?.aspects?.length ?? 0) > 0;
|
|
3004
|
-
const routeInvoker = route.invoker;
|
|
3005
3004
|
if (mappingPolicies.length > 0) {
|
|
3006
3005
|
const responseValidators = Validator2.response(schema.response, { normalize: options.normalize ?? true });
|
|
3007
3006
|
Object.assign(schema, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/elysia",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.4",
|
|
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.
|
|
57
|
+
"@supacloud/app": "0.39.3",
|
|
58
58
|
"@supacloud/commands": "0.12.0",
|
|
59
|
-
"@supacloud/contracts": "0.16.
|
|
59
|
+
"@supacloud/contracts": "0.16.2",
|
|
60
60
|
"effect": "4.0.5",
|
|
61
|
-
"exact-mirror": "1.2.
|
|
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.
|
|
66
|
+
"@supacloud/delivery": "0.28.0",
|
|
67
|
+
"@supacloud/contracts": "0.16.2",
|
|
68
68
|
"@supacloud/commands": "0.12.0",
|
|
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.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@supacloud/compiler": "0.62.
|
|
78
|
-
"@supacloud/delivery": "0.
|
|
77
|
+
"@supacloud/compiler": "0.62.5",
|
|
78
|
+
"@supacloud/delivery": "0.28.0",
|
|
79
79
|
"@supacloud/db": "0.24.2",
|
|
80
80
|
"@types/bun": "^1.4.4",
|
|
81
|
-
"elysia": "2.0.0-rc.
|
|
81
|
+
"elysia": "2.0.0-rc.3",
|
|
82
82
|
"typescript": "7.1.0-beta"
|
|
83
83
|
}
|
|
84
84
|
}
|