@checkstack/integration-backend 0.1.5 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @checkstack/integration-backend
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 66a3963: Update database types to use SafeDatabase
8
+
9
+ - Updated all database type declarations from `NodePgDatabase` to `SafeDatabase` for compile-time safety
10
+
11
+ - Updated dependencies [2c0822d]
12
+ - Updated dependencies [66a3963]
13
+ - @checkstack/queue-api@0.2.0
14
+ - @checkstack/backend-api@0.5.0
15
+ - @checkstack/command-backend@0.1.6
16
+
3
17
  ## 0.1.5
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/integration-backend",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "checkstack": {
@@ -1,4 +1,4 @@
1
- import type { NodePgDatabase } from "drizzle-orm/node-postgres";
1
+ import type { SafeDatabase } from "@checkstack/backend-api";
2
2
  import type { Logger } from "@checkstack/backend-api";
3
3
  import type { QueueManager } from "@checkstack/queue-api";
4
4
  import type { SignalService } from "@checkstack/signal-common";
@@ -55,7 +55,7 @@ export interface DeliveryCoordinator {
55
55
  }
56
56
 
57
57
  interface DeliveryCoordinatorDeps {
58
- db: NodePgDatabase<typeof schema>;
58
+ db: SafeDatabase<typeof schema>;
59
59
  providerRegistry: IntegrationProviderRegistry;
60
60
  connectionStore: ConnectionStore;
61
61
  queueManager: QueueManager;
package/src/router.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { implement, ORPCError } from "@orpc/server";
2
- import type { NodePgDatabase } from "drizzle-orm/node-postgres";
2
+ import type { SafeDatabase } from "@checkstack/backend-api";
3
3
  import {
4
4
  autoAuthMiddleware,
5
5
  type RpcContext,
@@ -96,7 +96,7 @@ function extractJsonSchemaProperties(
96
96
  }
97
97
 
98
98
  interface RouterDeps {
99
- db: NodePgDatabase<typeof schema>;
99
+ db: SafeDatabase<typeof schema>;
100
100
  eventRegistry: IntegrationEventRegistry;
101
101
  providerRegistry: IntegrationProviderRegistry;
102
102
  deliveryCoordinator: DeliveryCoordinator;