@ultimat3/realtime 27.5.0 → 27.6.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/README.md CHANGED
@@ -87,7 +87,7 @@ class — stay on `.`.
87
87
  | hooks | `.` | `useQuery`, `useRecord`, `useRecords` (by key, or a whole type: `RecordSelection`), `useMutation`, `useMutationQueue`, `useOutbox`, `useConnection`, `useChannel`, `usePresence`, `hasPageSocket`, `installRealtime` |
88
88
  | channel records, no replicator | `./server` | `recordPublisher` — an app's committed rows as channel `records`, sequenced per producer ([below](#channel-records-with-no-replicator)) |
89
89
  | channels | `.` | `channel`, `channelRef`, `ChannelHandle`, `topic`, `readPresence`, the channel frame types |
90
- | first paint | `.` | `holdFirstPaint`, `FIRST_PAINT_HOLD_MS` (1 s) — what the island bootstrap awaits before `mount`: the boot's restore and the open outbox, capped (#506) |
90
+ | first paint | `.` | `holdFirstPaint`, `FIRST_PAINT_HOLD_MS` (1 s) — what the island bootstrap awaits before `mount`, for an island that reads the store or the outbox: the boot's restore and the open outbox, capped (#506). An island taking only `useChannel` / `usePresence` / `useConnection` never awaits it and is never hidden |
91
91
  | offline | `.` | `pageOutbox`, `recordPersister`, `persistedTypes`, `openLocalStore`, `pageLocalStore`, `memoryLocalStore()` |
92
92
  | the socket's worker | `./sync-worker` | the SharedWorker entry — no exports |
93
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/realtime",
3
- "version": "27.5.0",
3
+ "version": "27.6.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.5.0",
44
- "@ultimat3/entity": "27.5.0",
45
- "@ultimat3/policy": "27.5.0",
46
- "@ultimat3/query": "27.5.0",
43
+ "@ultimat3/core": "27.6.0",
44
+ "@ultimat3/entity": "27.6.0",
45
+ "@ultimat3/policy": "27.6.0",
46
+ "@ultimat3/query": "27.6.0",
47
47
  "nats": "2.29.3"
48
48
  }
49
49
  }
@@ -5,7 +5,10 @@
5
5
  // rebuilds a node's refusal by code in `refusalError`, and `page-errors.ts` constructs codes from
6
6
  // here without importing it) and by `errors.ts`, so constructing a server refusal registers too.
7
7
 
8
- import { registerErrorCodes } from '@ultimat3/core';
8
+ // From `/page`, never core's barrel: this module is in every island chunk that reaches realtime,
9
+ // and the barrel's own anchors are core's and schema's titles tables — 4,571 B minified of titles
10
+ // no realtime island reads (`page-errors-bundle.test.ts`). The registry is one module either way.
11
+ import { registerErrorCodes } from '@ultimat3/core/page';
9
12
 
10
13
  /** Codes this package declares and owns. */
11
14
  export const REALTIME_OWNED_ERROR_CODES = [
@@ -1,7 +1,7 @@
1
- // What a realtime island's bootstrap awaits before its `mount` may run (#506, owner option 3): the
2
- // page boot's disk restore AND the outbox it opened, so the island's first render already carries
3
- // the overlays a reload rebuilds from the queue — never the server's stale count. Capped, because
4
- // an IndexedDB that hangs must cost the hold, never the island.
1
+ // What the bootstrap of a realtime island that READS the store or the outbox awaits before `mount`
2
+ // (#506, owner option 3; one that only follows a channel never imports this): the page boot's disk
3
+ // restore AND the outbox it opened, so the first render already carries the overlays a reload
4
+ // rebuilds from the queue. Capped, because an IndexedDB that hangs must cost the hold, never the island.
5
5
 
6
6
  import { peekOutbox } from './outbox-slot';
7
7
  import { pageRealtime } from './page-store';