@supacloud/elysia 0.42.3 → 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/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",
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,17 +54,17 @@
54
54
  "directory": "packages/elysia"
55
55
  },
56
56
  "dependencies": {
57
- "@supacloud/app": "0.39.2",
57
+ "@supacloud/app": "0.39.3",
58
58
  "@supacloud/commands": "0.12.0",
59
- "@supacloud/contracts": "0.16.1",
59
+ "@supacloud/contracts": "0.16.2",
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.27.0",
67
- "@supacloud/contracts": "0.16.1",
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",
@@ -74,8 +74,8 @@
74
74
  "elysia": "2.0.0-rc.3"
75
75
  },
76
76
  "devDependencies": {
77
- "@supacloud/compiler": "0.62.3",
78
- "@supacloud/delivery": "0.27.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
81
  "elysia": "2.0.0-rc.3",