@moneypot/hub 1.18.1 → 1.18.3

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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Dashboard</title>
7
- <script type="module" crossorigin src="/dashboard/assets/index-B4xPUnuF.js"></script>
7
+ <script type="module" crossorigin src="/dashboard/assets/index-DGxc3Ja9.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/dashboard/assets/index-32DtKox_.css">
9
9
  </head>
10
10
  <body>
@@ -2,7 +2,7 @@ import { DbOutcome } from "../db/types.js";
2
2
  export declare function makeFinalHash({ serverHash, clientSeed, }: {
3
3
  serverHash: Uint8Array;
4
4
  clientSeed: string;
5
- }): Buffer<ArrayBufferLike>;
5
+ }): NonSharedBuffer;
6
6
  export declare function normalizeHash(hash: Uint8Array): number;
7
7
  export declare function pickRandomOutcome({ outcomes, finalHash, }: {
8
8
  outcomes: readonly DbOutcome[];
package/dist/src/index.js CHANGED
@@ -112,7 +112,7 @@ export async function startAndListen(options) {
112
112
  abortController.abort();
113
113
  await new Promise((resolve) => setTimeout(resolve, 500));
114
114
  logger.info("Closing resources...");
115
- hubServer.shutdown();
115
+ await hubServer.shutdown();
116
116
  try {
117
117
  await Promise.race([
118
118
  closeServerContext(context),
@@ -78,10 +78,11 @@ export function createHubServer({ configureApp, plugins, exportSchemaSDLPath, ex
78
78
  });
79
79
  });
80
80
  },
81
- shutdown: () => {
82
- return new Promise((resolve) => {
81
+ shutdown: async () => {
82
+ await new Promise((resolve) => {
83
83
  nodeServer.close(() => resolve());
84
84
  });
85
+ await pgl.release();
85
86
  },
86
87
  };
87
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "./grafast": "./dist/src/grafast.js",
22
22
  "./express": "./dist/src/express.js",
23
23
  "./dataplan/pg": "./dist/src/dataplan/pg.js",
24
+ "./pg-sql2": "./dist/src/pg-sql2.js",
24
25
  "./hash-chain": "./dist/src/hash-chain/index.js",
25
26
  "./logger": "./dist/src/logger.js",
26
27
  "./audit-log": "./dist/src/audit-log.js"
@@ -49,7 +50,7 @@
49
50
  "test:watch": "vitest"
50
51
  },
51
52
  "dependencies": {
52
- "@graphile-contrib/pg-omit-archived": "^4.0.0-beta.4",
53
+ "@graphile-contrib/pg-omit-archived": "^4.0.0-rc.1",
53
54
  "@moneypot/hash-herald": "^1.0.0",
54
55
  "@moneypot/pg-upgrade-schema": "^2.1.0",
55
56
  "@noble/curves": "^1.5.0",
@@ -62,7 +63,7 @@
62
63
  "pg": "^8.12.0",
63
64
  "pg-connection-string": "^2.6.4",
64
65
  "pino": "^9.7.0",
65
- "postgraphile": "^5.0.0-beta.49",
66
+ "postgraphile": "^5.0.0-rc.3",
66
67
  "tsafe": "^1.6.6",
67
68
  "zod": "^4.1.12"
68
69
  },