@ultimat3/realtime 27.2.2 → 27.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/realtime",
3
- "version": "27.2.2",
3
+ "version": "27.3.0",
4
4
  "description": "Three-tier realtime: channels, live queries, local-first sync — one protocol, one mutator shape",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,10 +40,10 @@
40
40
  "test": "bun test"
41
41
  },
42
42
  "dependencies": {
43
- "@ultimat3/core": "27.2.2",
44
- "@ultimat3/entity": "27.2.2",
45
- "@ultimat3/policy": "27.2.2",
46
- "@ultimat3/query": "27.2.2",
43
+ "@ultimat3/core": "27.3.0",
44
+ "@ultimat3/entity": "27.3.0",
45
+ "@ultimat3/policy": "27.3.0",
46
+ "@ultimat3/query": "27.3.0",
47
47
  "nats": "2.29.3"
48
48
  }
49
49
  }
@@ -3,6 +3,7 @@
3
3
  // from what the socket then does — the same line `sync-frames.ts` and `sync-listen.ts` already draw.
4
4
 
5
5
  import {
6
+ BUILD_ID_HEADER,
6
7
  type HealthPayload,
7
8
  healthBody,
8
9
  healthPeerListed,
@@ -283,7 +284,12 @@ function health(
283
284
  healthPeerListed(deps.healthDetailPeers, server.requestIP(request)?.address ?? null);
284
285
  return new Response(JSON.stringify(healthBody(payload.body, 'sync', detailed)), {
285
286
  status: payload.status,
286
- headers: { 'content-type': 'application/json', 'cache-control': 'no-store' },
287
+ // The build in the header, as every page says it (#734); never in the stranger's body (#53).
288
+ headers: {
289
+ 'content-type': 'application/json',
290
+ 'cache-control': 'no-store',
291
+ [BUILD_ID_HEADER]: deps.buildId,
292
+ },
287
293
  });
288
294
  }
289
295