@sqlite-sync/core 0.10.1 → 0.12.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 +17 -21
- package/dist/{crdt-sync-remote-source-CugbiosG.js → crdt-sync-remote-source-Q6P6OiL0.js} +131 -96
- package/dist/crdt-sync-remote-source-Q6P6OiL0.js.map +1 -0
- package/dist/heartbeat-CJWQAoGP.js +7 -0
- package/dist/heartbeat-CJWQAoGP.js.map +1 -0
- package/dist/{index-D0jdmcYF.d.ts → index-3zVvNWRd.d.ts} +24 -19
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -14
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{reset-state-DNPkxGim.js → reset-state-BQi96NLn.js} +2 -6
- package/dist/{reset-state-DNPkxGim.js.map → reset-state-BQi96NLn.js.map} +1 -1
- package/dist/server.d.ts +6 -2
- package/dist/server.js +3 -2
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +60 -82
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/crdt-sync-remote-source-CugbiosG.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as generateId, f as quoteId, n as isNoOpCrdtEventPayload, o as createTypedEventTarget, r as TypedBroadcastChannel, s as ensureSingletonExecution, t as CRDT_EVENT_NO_OP_PAYLOAD } from "./crdt-table-schema-2w_AIpsV.js";
|
|
2
|
-
import { c as serializeHLC, n as CrdtEventValidationError, r as validateNewCrdtEvent, s as deserializeHLC } from "./crdt-sync-remote-source-
|
|
2
|
+
import { c as serializeHLC, n as CrdtEventValidationError, r as validateNewCrdtEvent, s as deserializeHLC } from "./crdt-sync-remote-source-Q6P6OiL0.js";
|
|
3
3
|
import { u as createStoredValue } from "./system-schema-C2JZDv6L.js";
|
|
4
4
|
import { DummyDriver, Kysely, SqliteAdapter, SqliteIntrospector, SqliteQueryCompiler, sql } from "kysely";
|
|
5
5
|
import initXxhash from "xxhash-wasm";
|
|
@@ -1132,9 +1132,6 @@ function createCrdtStorage(storage) {
|
|
|
1132
1132
|
});
|
|
1133
1133
|
return enqueueEvents("local", sourceNodeId, newEvents);
|
|
1134
1134
|
};
|
|
1135
|
-
const enqueueOwnEvents = (events) => {
|
|
1136
|
-
return enqueueEvents("own", storage.nodeId, events);
|
|
1137
|
-
};
|
|
1138
1135
|
const enqueueRemoteEvents = (events) => {
|
|
1139
1136
|
return enqueueEvents("remote", "", events);
|
|
1140
1137
|
};
|
|
@@ -1499,7 +1496,6 @@ where "dataset" = ? and "item_id" = ? and "payload" <> ${noOpPayloadSqlLiteral}`
|
|
|
1499
1496
|
return {
|
|
1500
1497
|
getEventsBatch,
|
|
1501
1498
|
enqueueLocalEvents,
|
|
1502
|
-
enqueueOwnEvents,
|
|
1503
1499
|
enqueueRemoteEvents,
|
|
1504
1500
|
applyOwnEvents,
|
|
1505
1501
|
applyOwnSnapshot,
|
|
@@ -1635,4 +1631,4 @@ function createReloadRequestHandler({ resetState, broadcast, generateEpoch = gen
|
|
|
1635
1631
|
//#endregion
|
|
1636
1632
|
export { introspectDb as C, dummyKysely as D, createImportData as E, startPerformanceLogger as S, createExportData as T, formatSchemaVerificationIssues as _, createBroadcastChannels as a, createMigrator as b, isWorkerNotificationMessage as c, syncDbClientLockName as d, syncDbWorkerLockName as f, createSQLiteCrdtApplyFunction as g, createCrdtApplyFunction as h, createResetStateStore as i, isWorkerRequestMessage as l, createCrdtStorage as m, createIdbResetStore as n, isWorkerErrorResponseMessage as o, createCrdtSyncProducer as p, createReloadRequestHandler as r, isWorkerInitMessage as s, RESET_REQUEST_TTL_MS as t, isWorkerResponseMessage as u, verifySyncSchema as v, xxhash as w, SQLiteDbWrapper as x, createMigrations as y };
|
|
1637
1633
|
|
|
1638
|
-
//# sourceMappingURL=reset-state-
|
|
1634
|
+
//# sourceMappingURL=reset-state-BQi96NLn.js.map
|