@dbos-inc/dbos-sdk 5.3.6-preview → 5.3.7-preview

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "5.3.6-preview",
3
+ "version": "5.3.7-preview",
4
4
  "description": "Lightweight durable workflows built on Postgres",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -77,6 +77,7 @@
77
77
  "test:unit": "jest ./tests --coverage --collectCoverageFrom='src/**/*' --detectOpenHandles",
78
78
  "test:packages": "npm run --workspaces test",
79
79
  "check:package": "npm run build && publint && attw --pack .",
80
+ "test:publish": "node --test publish/peer_range.test.mjs",
80
81
  "prepare": "husky"
81
82
  },
82
83
  "bin": {
@@ -91,7 +92,6 @@
91
92
  "@types/jest": "^30.0.0",
92
93
  "@types/node": "^20.19.1",
93
94
  "@types/pg": "^8.11.2",
94
- "@types/ws": "^8.18.0",
95
95
  "eslint": "^9.22.0",
96
96
  "husky": "^9.1.7",
97
97
  "jest": "^29.7.0",
@@ -108,9 +108,16 @@
108
108
  "pg": "^8.11.3",
109
109
  "serialize-error": "^8.1.0",
110
110
  "superjson": "^1.13.3",
111
- "ws": "^8.18.1",
112
111
  "yaml": "^2.8.3"
113
112
  },
113
+ "peerDependencies": {
114
+ "@dbos-inc/dbos-enterprise": "*"
115
+ },
116
+ "peerDependenciesMeta": {
117
+ "@dbos-inc/dbos-enterprise": {
118
+ "optional": true
119
+ }
120
+ },
114
121
  "lint-staged": {
115
122
  "*.{js,jsx,ts,tsx,json,css,scss,md}": "prettier --write"
116
123
  },
@@ -1,38 +0,0 @@
1
- /// <reference types="node" />
2
- import { DBOSExecutor } from '../dbos-executor';
3
- import WebSocket from 'ws';
4
- interface IntervalTimeout {
5
- interval: NodeJS.Timeout | undefined;
6
- timeout: NodeJS.Timeout | undefined;
7
- }
8
- export declare class Conductor {
9
- readonly dbosExec: DBOSExecutor;
10
- readonly appName: string;
11
- readonly conductorKey: string;
12
- readonly conductorURL: string;
13
- readonly executorMetadata?: Record<string, unknown> | undefined;
14
- readonly metadataOnlyMode: boolean;
15
- url: string;
16
- websocket: WebSocket | undefined;
17
- isShuttingDown: boolean;
18
- pingPeriodMs: number;
19
- pingTimeoutMs: number;
20
- pingIntervalTimeout: IntervalTimeout | undefined;
21
- reconnectDelayMs: number;
22
- reconnectTimeout: NodeJS.Timeout | undefined;
23
- retentionRound: Promise<void> | undefined;
24
- constructor(dbosExec: DBOSExecutor, appName: string, conductorKey: string, conductorURL: string, executorMetadata?: Record<string, unknown> | undefined, metadataOnlyMode?: boolean);
25
- /** Logs a command's exception in full and returns the error message Conductor may see. */
26
- reportException(context: string, e: unknown): string;
27
- resetWebsocket(currWebsocket?: WebSocket, currPing?: IntervalTimeout): void;
28
- setPingInterval(currWebsocket: WebSocket, currPing: IntervalTimeout): void;
29
- dispatchLoop(): void;
30
- /**
31
- * Give a round in flight a bounded chance to finish before shutdown takes the system
32
- * database away from it.
33
- */
34
- awaitRetention(timeoutMs?: number): Promise<void>;
35
- stop(): void;
36
- }
37
- export {};
38
- //# sourceMappingURL=conductor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conductor.d.ts","sourceRoot":"","sources":["../../../src/conductor/conductor.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,SAAS,MAAM,IAAI,CAAC;AAuB3B,UAAU,eAAe;IACvB,QAAQ,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;CACrC;AAED,qBAAa,SAAS;IAalB,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM;IAC7B,QAAQ,CAAC,YAAY,EAA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