@dxos/feed 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33
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 +6 -2
- package/dist/lib/neutral/chunk-PENEKCN2.mjs +742 -0
- package/dist/lib/neutral/chunk-PENEKCN2.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +13 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +174 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/errors.d.ts +39 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/feed-store.d.ts +103 -9
- package/dist/types/src/feed-store.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/sync-client.d.ts +54 -0
- package/dist/types/src/sync-client.d.ts.map +1 -0
- package/dist/types/src/sync-server.d.ts +28 -0
- package/dist/types/src/sync-server.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-builder.d.ts +78 -0
- package/dist/types/src/testing/test-builder.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -21
- package/src/errors.ts +20 -0
- package/src/feed-store.test.ts +397 -40
- package/src/feed-store.ts +499 -142
- package/src/index.ts +3 -1
- package/src/sync-client.ts +199 -0
- package/src/sync-server.ts +96 -0
- package/src/sync.test.ts +151 -91
- package/src/testing/index.ts +1 -1
- package/src/testing/test-builder.ts +223 -0
- package/dist/lib/browser/index.mjs +0 -342
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -1
- package/dist/lib/node-esm/index.mjs +0 -344
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -2
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/protocol.d.ts +0 -120
- package/dist/types/src/protocol.d.ts.map +0 -1
- package/src/protocol.ts +0 -110
- /package/dist/lib/{browser/testing → neutral}/index.mjs.map +0 -0
package/README.md
CHANGED
|
@@ -103,8 +103,8 @@ Stores the mapping between global feed identifiers and local integer IDs.
|
|
|
103
103
|
| `position` | `number \| null` | The global position index. `null` if unpositioned. |
|
|
104
104
|
| `sequence` | `number` | **Sequence Number** (Assigned by Author). |
|
|
105
105
|
| `actorId` | `string` | **Actor ID** (Public Key). |
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
106
|
+
| `prevSequence` | `number` | **Sequence Number** part of the Predecessor ID. |
|
|
107
|
+
| `prevActorId` | `string` | **Actor ID** (Public Key) part of the Predecessor ID. |
|
|
108
108
|
| `timestamp` | `number` | Unix timestamp in milliseconds. |
|
|
109
109
|
| `data` | `Uint8Array` | The content of the block. **Immutable**. |
|
|
110
110
|
|
|
@@ -256,3 +256,7 @@ All timestamps (e.g., `insertionTimestamp`) are Unix timestamps in milliseconds.
|
|
|
256
256
|
]
|
|
257
257
|
}
|
|
258
258
|
```
|
|
259
|
+
|
|
260
|
+
### TODOs
|
|
261
|
+
|
|
262
|
+
- [ ] Sync protocol only works if each namespace is synced separately.
|