@geekmidas/constructs 0.9.0 → 1.0.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/Function-CwlB89lS.d.cts.map +1 -1
  3. package/dist/Function-DEX2O-SB.d.mts.map +1 -1
  4. package/dist/Function-DgQ_no6B.cjs.map +1 -1
  5. package/dist/Function-xfQbftdE.mjs.map +1 -1
  6. package/dist/{HonoEndpointAdaptor-C8fXczC4.d.cts → HonoEndpointAdaptor-BNHGwpvZ.d.cts} +3 -3
  7. package/dist/{HonoEndpointAdaptor-C8fXczC4.d.cts.map → HonoEndpointAdaptor-BNHGwpvZ.d.cts.map} +1 -1
  8. package/dist/{HonoEndpointAdaptor-xNOg1bAE.d.mts → HonoEndpointAdaptor-BbnZe3hb.d.mts} +3 -3
  9. package/dist/{HonoEndpointAdaptor-xNOg1bAE.d.mts.map → HonoEndpointAdaptor-BbnZe3hb.d.mts.map} +1 -1
  10. package/dist/adaptors/aws.d.mts +1 -1
  11. package/dist/adaptors/hono.d.cts +1 -1
  12. package/dist/adaptors/hono.d.mts +2 -2
  13. package/dist/adaptors/testing.d.mts +1 -1
  14. package/dist/crons/Cron.d.mts +1 -1
  15. package/dist/crons/CronBuilder.d.mts +1 -1
  16. package/dist/crons/index.d.cts +4 -4
  17. package/dist/crons/index.d.mts +5 -5
  18. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +1 -1
  19. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +1 -1
  20. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +1 -1
  21. package/dist/endpoints/Endpoint.d.mts +1 -1
  22. package/dist/endpoints/EndpointBuilder.d.mts +1 -1
  23. package/dist/endpoints/EndpointFactory.d.mts +1 -1
  24. package/dist/endpoints/HonoEndpointAdaptor.d.cts +1 -1
  25. package/dist/endpoints/HonoEndpointAdaptor.d.mts +2 -2
  26. package/dist/endpoints/TestEndpointAdaptor.d.mts +1 -1
  27. package/dist/endpoints/audit.d.mts +1 -1
  28. package/dist/endpoints/helpers.d.mts +1 -1
  29. package/dist/endpoints/index.d.cts +2 -2
  30. package/dist/endpoints/index.d.mts +3 -3
  31. package/dist/endpoints/lazyAccessors.d.mts +1 -1
  32. package/dist/endpoints/processAudits.d.mts +1 -1
  33. package/dist/endpoints/rls.d.mts +1 -1
  34. package/dist/functions/index.d.mts +1 -1
  35. package/dist/index-DHGtpWKA.d.mts +12 -0
  36. package/dist/{index-puUpr9Dh.d.mts.map → index-DHGtpWKA.d.mts.map} +1 -1
  37. package/dist/subscribers/index.d.mts +2 -2
  38. package/dist/subscribers/index.d.mts.map +1 -1
  39. package/package.json +22 -22
  40. package/src/__benchmarks__/build-time-optimization.bench.ts +2 -2
  41. package/src/functions/Function.ts +1 -1
  42. package/dist/index-puUpr9Dh.d.mts +0 -12
  43. package/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/constructs",
3
- "version": "0.9.0",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -78,32 +78,32 @@
78
78
  "kysely": "~0.28.8",
79
79
  "pg": "~8.16.3",
80
80
  "zod": "~4.1.13",
81
- "@geekmidas/audit": "^0.2.0",
82
- "@geekmidas/cache": "^0.2.0",
83
- "@geekmidas/db": "^0.3.0",
84
- "@geekmidas/envkit": "^0.7.0",
85
- "@geekmidas/errors": "^0.1.0",
86
- "@geekmidas/events": "^0.2.0",
87
- "@geekmidas/logger": "^0.4.0",
88
- "@geekmidas/rate-limit": "^0.3.0",
89
- "@geekmidas/schema": "^0.1.0",
90
- "@geekmidas/services": "^0.2.0",
91
- "@geekmidas/testkit": "^0.6.0"
81
+ "@geekmidas/audit": "^1.0.0",
82
+ "@geekmidas/cache": "^1.0.0",
83
+ "@geekmidas/db": "^1.0.0",
84
+ "@geekmidas/envkit": "^1.0.0",
85
+ "@geekmidas/errors": "^1.0.0",
86
+ "@geekmidas/events": "^1.0.0",
87
+ "@geekmidas/logger": "^1.0.0",
88
+ "@geekmidas/rate-limit": "^1.0.0",
89
+ "@geekmidas/schema": "^1.0.0",
90
+ "@geekmidas/services": "^1.0.0",
91
+ "@geekmidas/testkit": "^1.0.0"
92
92
  },
93
93
  "peerDependencies": {
94
94
  "@middy/core": ">=6.3.1",
95
95
  "@types/aws-lambda": ">=8.10.92",
96
96
  "hono": ">=4.8.2",
97
- "@geekmidas/audit": "^0.2.0",
98
- "@geekmidas/cache": "^0.2.0",
99
- "@geekmidas/envkit": "^0.7.0",
100
- "@geekmidas/db": "^0.3.0",
101
- "@geekmidas/events": "^0.2.0",
102
- "@geekmidas/rate-limit": "^0.3.0",
103
- "@geekmidas/logger": "^0.4.0",
104
- "@geekmidas/schema": "^0.1.0",
105
- "@geekmidas/services": "^0.2.0",
106
- "@geekmidas/errors": "^0.1.0"
97
+ "@geekmidas/audit": "^1.0.0",
98
+ "@geekmidas/cache": "^1.0.0",
99
+ "@geekmidas/db": "^1.0.0",
100
+ "@geekmidas/envkit": "^1.0.0",
101
+ "@geekmidas/errors": "^1.0.0",
102
+ "@geekmidas/events": "^1.0.0",
103
+ "@geekmidas/logger": "^1.0.0",
104
+ "@geekmidas/rate-limit": "^1.0.0",
105
+ "@geekmidas/schema": "^1.0.0",
106
+ "@geekmidas/services": "^1.0.0"
107
107
  },
108
108
  "peerDependenciesMeta": {
109
109
  "@geekmidas/audit": {
@@ -214,14 +214,14 @@ function createRequest(
214
214
  body?: unknown;
215
215
  headers?: Record<string, string>;
216
216
  } = {},
217
- ) {
217
+ ): Request {
218
218
  const { method = 'GET', body, headers = {} } = options;
219
219
  const init: RequestInit = {
220
220
  method,
221
221
  headers: { 'Content-Type': 'application/json', ...headers },
222
222
  };
223
223
  if (body) init.body = JSON.stringify(body);
224
- return new Request(`http://localhost${path}`, init);
224
+ return new Request(`http://localhost${path}`, init) as Request;
225
225
  }
226
226
 
227
227
  // ============================================================================
@@ -154,7 +154,7 @@ export class Function<
154
154
  events: MappedEvent<TEventPublisher, OutSchema>[] = [],
155
155
  memorySize?: number,
156
156
  auditorStorageService?: Service<TAuditStorageServiceName, TAuditStorage>,
157
- public databaseService?: Service<TDatabaseServiceName, TDatabase>,
157
+ public override databaseService?: Service<TDatabaseServiceName, TDatabase>,
158
158
  ) {
159
159
  super(
160
160
  type,
@@ -1,12 +0,0 @@
1
- import { FunctionBuilder } from "./FunctionBuilder-DRw1s5uT.mjs";
2
- import * as _geekmidas_audit2 from "@geekmidas/audit";
3
- import * as _geekmidas_logger1 from "@geekmidas/logger";
4
- import * as _geekmidas_schema0 from "@geekmidas/schema";
5
-
6
- //#region src/functions/index.d.ts
7
- declare const f: FunctionBuilder<_geekmidas_schema0.ComposableStandardSchema, undefined, [], _geekmidas_logger1.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit2.AuditableAction<string, unknown>>;
8
- //# sourceMappingURL=index.d.ts.map
9
-
10
- //#endregion
11
- export { f };
12
- //# sourceMappingURL=index-puUpr9Dh.d.mts.map