@luckystack/sync 0.2.2 → 0.2.4

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/CLAUDE.md CHANGED
@@ -117,6 +117,6 @@ None directly. Inherits socket transport config from `@luckystack/server` and Re
117
117
  - Socket setup + Redis adapter: `/docs/ARCHITECTURE_SOCKET.md`
118
118
  - Multi-instance model + pitfalls (regular `syncRequest` fan-out reaches across instances via `io.in(room).fetchSockets()` + `RemoteSocket.emit()`; streaming via `broadcastStream`/`streamTo`): `/docs/ARCHITECTURE_MULTI_INSTANCE.md`
119
119
  - File-based `_sync/` routing: `/docs/ARCHITECTURE_ROUTING.md`
120
- - Streaming page reconstruction: `/docs/STREAMING_RECONSTRUCTION.md`
120
+ - Streaming primitives (`stream` / `streamTo` / `broadcastStream` / `_client`) + throttle: `/docs/ARCHITECTURE_SYNC.md#streaming`
121
121
  - README (consumer quickstart): `./README.md`
122
122
  - Sibling packages: `@luckystack/api`, `@luckystack/presence`, `@luckystack/server`
package/README.md CHANGED
@@ -139,7 +139,7 @@ Client entry (`@luckystack/sync/client`):
139
139
  - [`docs/ARCHITECTURE_SYNC.md`](../../docs/ARCHITECTURE_SYNC.md) — full sync lifecycle, streaming decision tree, performance notes.
140
140
  - [`docs/ARCHITECTURE_SOCKET.md`](../../docs/ARCHITECTURE_SOCKET.md) — Socket.io + Redis adapter (required for cross-instance fanout).
141
141
  - [`docs/ARCHITECTURE_ROUTING.md`](../../docs/ARCHITECTURE_ROUTING.md) — `_sync/` file conventions and `_server` / `_client` split.
142
- - [`docs/STREAMING_RECONSTRUCTION.md`](../../docs/STREAMING_RECONSTRUCTION.md) — recreating the streaming demo page.
142
+ - [`docs/ARCHITECTURE_SYNC.md#streaming`](../../docs/ARCHITECTURE_SYNC.md#streaming) — the streaming primitives (`stream` / `streamTo` / `broadcastStream` / `_client`), `createStreamThrottle`, and SSE.
143
143
 
144
144
  ## Dependencies
145
145
 
package/docs/streaming.md CHANGED
@@ -344,6 +344,5 @@ The same `flushPressure({ thresholdBytes? })` is also injected into `_api/<name>
344
344
  - Originator API + `onStream`: [`./sync-request.md`](./sync-request.md)
345
345
  - Recipient subscription: [`./callback-registration.md`](./callback-registration.md)
346
346
  - Handler authoring (where streams come from): [`./server-vs-client-handlers.md`](./server-vs-client-handlers.md)
347
- - Stream reconstruction demo page: [`/docs/STREAMING_RECONSTRUCTION.md`](../../../docs/STREAMING_RECONSTRUCTION.md)
348
347
  - Full architecture: [`/docs/ARCHITECTURE_SYNC.md`](../../../docs/ARCHITECTURE_SYNC.md#streaming)
349
348
  - Throttle config: `projectConfig.sync.streamThrottle.*`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luckystack/sync",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -60,8 +60,8 @@
60
60
  "test": "vitest run"
61
61
  },
62
62
  "dependencies": {
63
- "@luckystack/core": "^0.2.2",
64
- "@luckystack/error-tracking": "^0.2.2"
63
+ "@luckystack/core": "^0.2.4",
64
+ "@luckystack/error-tracking": "^0.2.4"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@prisma/client": "^6.19.0",