@effectstream/runtime 0.100.23 → 0.100.25

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": "@effectstream/runtime",
3
- "version": "0.100.23",
3
+ "version": "0.100.25",
4
4
  "license": "MIT",
5
5
  "homepage": "https://effectstream.github.io/docs/",
6
6
  "repository": {
@@ -13,17 +13,17 @@
13
13
  },
14
14
  "exports": "./src/mod.ts",
15
15
  "dependencies": {
16
- "@effectstream/concise": "0.100.23",
17
- "@effectstream/config": "0.100.23",
18
- "@effectstream/coroutine": "0.100.23",
19
- "@effectstream/crypto": "0.100.23",
20
- "@effectstream/db": "0.100.23",
21
- "@effectstream/event-client": "0.100.23",
22
- "@effectstream/event-server": "0.100.23",
23
- "@effectstream/log": "0.100.23",
24
- "@effectstream/sm": "0.100.23",
25
- "@effectstream/sync": "0.100.23",
26
- "@effectstream/utils": "0.100.23",
16
+ "@effectstream/concise": "0.100.25",
17
+ "@effectstream/config": "0.100.25",
18
+ "@effectstream/coroutine": "0.100.25",
19
+ "@effectstream/crypto": "0.100.25",
20
+ "@effectstream/db": "0.100.25",
21
+ "@effectstream/event-client": "0.100.25",
22
+ "@effectstream/event-server": "0.100.25",
23
+ "@effectstream/log": "0.100.25",
24
+ "@effectstream/sm": "0.100.25",
25
+ "@effectstream/sync": "0.100.25",
26
+ "@effectstream/utils": "0.100.25",
27
27
  "@fastify/cors": "^11.0.1",
28
28
  "@metamask/json-rpc-engine": "^10.0.3",
29
29
  "pg": "8.21.0",
package/src/coalesce.ts CHANGED
@@ -62,6 +62,7 @@ export function isCoalescableEmptyBlock(
62
62
  boundaries.minScheduledBlockHeight != null &&
63
63
  value.blockNumber >= boundaries.minScheduledBlockHeight
64
64
  ) {
65
+ log.local(ComponentNames.EFFECTSTREAM_SYNC, "coalesce", SeverityNumber.DEBUG, (l) => l(`coalescing suppressed: minScheduledBlockHeight=${boundaries.minScheduledBlockHeight} blockNumber=${value.blockNumber}`));
65
66
  return false;
66
67
  }
67
68
  if (
@@ -225,7 +225,9 @@ function cleanupOrphanedClusters(bin: string, env: Record<string, string | undef
225
225
  * so they don't accumulate and exhaust system resources.
226
226
  */
227
227
  function ensureCluster(): Promise<Cluster> {
228
- if (clusterPromise) return clusterPromise;
228
+ // If the cluster was stopped (last harness tore down), start a fresh one.
229
+ if (clusterPromise && !clusterStopped) return clusterPromise;
230
+ clusterPromise = undefined;
229
231
  clusterPromise = (async () => {
230
232
  const bin = resolvePgBinDir()!;
231
233
  clusterBin = bin;
@@ -500,9 +502,6 @@ async function setupPostgresHarness(): Promise<Harness> {
500
502
  await admin.query(`CREATE DATABASE "${dbName}"`);
501
503
  await admin.end();
502
504
 
503
- // Parent assertions go through poll.ts's `q`; PGLITE=false → plain queries.
504
- process.env.PGLITE = "false";
505
-
506
505
  const dbEnv = {
507
506
  PGLITE: "false",
508
507
  ALLOW_NO_PG_IVM: "true",