@quereus/sync 0.3.6 → 0.4.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 +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ const { syncModule, syncManager, syncEvents } = createSyncModule(store, storeEve
|
|
|
33
33
|
|
|
34
34
|
// Register with database
|
|
35
35
|
const db = new Database();
|
|
36
|
-
db.
|
|
36
|
+
db.registerModule('store', syncModule);
|
|
37
37
|
|
|
38
38
|
// Create tables and use normally - all changes are tracked
|
|
39
39
|
await db.exec(`
|
package/dist/src/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* const store = new LevelDBModule(storeEvents);
|
|
19
19
|
* const { syncModule, syncManager, syncEvents } = createSyncModule(store, storeEvents);
|
|
20
20
|
*
|
|
21
|
-
* db.
|
|
21
|
+
* db.registerModule('store', syncModule);
|
|
22
22
|
*/
|
|
23
23
|
export { type HLC, HLCManager, compareHLC, hlcEquals, createHLC, serializeHLC, deserializeHLC, type SerializedHLC, hlcToJson, hlcFromJson, type SiteId, generateSiteId, siteIdToBase64, siteIdFromBase64, toBase64Url, fromBase64Url, siteIdEquals, type SiteIdentity, serializeSiteIdentity, deserializeSiteIdentity, SITE_ID_KEY, } from './clock/index.js';
|
|
24
24
|
export { type ColumnChange, type RowDeletion, type Change, type SchemaMigrationType, type SchemaMigration, type ChangeSet, type ApplyResult, type ColumnVersionEntry, type TableSnapshot, type Snapshot, type PeerSyncState, type SnapshotChunkType, type SnapshotHeaderChunk, type SnapshotTableStartChunk, type SnapshotColumnVersionsChunk, type SnapshotTableEndChunk, type SnapshotSchemaMigrationChunk, type SnapshotFooterChunk, type SnapshotChunk, type SnapshotProgress, type ApplyToStoreOptions, type DataChangeToApply, type SchemaChangeToApply, type ApplyToStoreResult, type ApplyToStoreCallback, type SyncConfig, DEFAULT_SYNC_CONFIG, } from './sync/protocol.js';
|
package/dist/src/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* const store = new LevelDBModule(storeEvents);
|
|
19
19
|
* const { syncModule, syncManager, syncEvents } = createSyncModule(store, storeEvents);
|
|
20
20
|
*
|
|
21
|
-
* db.
|
|
21
|
+
* db.registerModule('store', syncModule);
|
|
22
22
|
*/
|
|
23
23
|
// Clock module
|
|
24
24
|
export { HLCManager, compareHLC, hlcEquals, createHLC, serializeHLC, deserializeHLC, hlcToJson, hlcFromJson, generateSiteId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quereus/sync",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Multi-master CRDT replication for Quereus - automatic sync with conflict resolution",
|
|
6
6
|
"keywords": [
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"test:single": "cd ../.. && node --import ./packages/quereus-sync/register.mjs node_modules/mocha/bin/mocha.js --bail"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@quereus/quereus": "^0.
|
|
46
|
-
"@quereus/store": "^0.
|
|
45
|
+
"@quereus/quereus": "^0.10.0",
|
|
46
|
+
"@quereus/store": "^0.4.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@quereus/quereus": "*",
|