@rocicorp/zero 0.10.2025011400 → 0.11.2025011402
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/out/{chunk-TS7IMB6J.js → chunk-AII6TS5B.js} +6 -3
- package/out/{chunk-TS7IMB6J.js.map → chunk-AII6TS5B.js.map} +2 -2
- package/out/solid.js +1 -1
- package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/initial-sync.js +18 -13
- package/out/zero-cache/src/services/change-source/pg/initial-sync.js.map +1 -1
- package/out/zero-client/src/client/options.d.ts +9 -3
- package/out/zero-client/src/client/options.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.d.ts +1 -0
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero.js +1 -1
- package/package.json +1 -1
|
@@ -14597,7 +14597,7 @@ function makeMessage(message, context, logLevel) {
|
|
|
14597
14597
|
}
|
|
14598
14598
|
|
|
14599
14599
|
// ../zero-client/src/client/version.ts
|
|
14600
|
-
var version2 = "0.
|
|
14600
|
+
var version2 = "0.11.2025011402+73df1d";
|
|
14601
14601
|
|
|
14602
14602
|
// ../zero-client/src/client/log-options.ts
|
|
14603
14603
|
var LevelFilterLogSink = class {
|
|
@@ -15539,6 +15539,7 @@ var Zero = class {
|
|
|
15539
15539
|
#rep;
|
|
15540
15540
|
#server;
|
|
15541
15541
|
userID;
|
|
15542
|
+
storageKey;
|
|
15542
15543
|
#lc;
|
|
15543
15544
|
#logOptions;
|
|
15544
15545
|
#enableAnalytics;
|
|
@@ -15622,6 +15623,7 @@ var Zero = class {
|
|
|
15622
15623
|
constructor(options) {
|
|
15623
15624
|
const {
|
|
15624
15625
|
userID,
|
|
15626
|
+
storageKey,
|
|
15625
15627
|
onOnlineChange,
|
|
15626
15628
|
onUpdateNeeded,
|
|
15627
15629
|
onClientStateNotFound,
|
|
@@ -15658,6 +15660,7 @@ var Zero = class {
|
|
|
15658
15660
|
const replicacheMutators = {
|
|
15659
15661
|
["_zero_crud"]: makeCRUDMutator(normalizedSchema)
|
|
15660
15662
|
};
|
|
15663
|
+
this.storageKey = storageKey ?? "";
|
|
15661
15664
|
const replicacheOptions = {
|
|
15662
15665
|
// The schema stored in IDB is dependent upon both the application schema
|
|
15663
15666
|
// and the AST schema (i.e. PROTOCOL_VERSION).
|
|
@@ -15665,7 +15668,7 @@ var Zero = class {
|
|
|
15665
15668
|
logLevel: logOptions.logLevel,
|
|
15666
15669
|
logSinks: [logOptions.logSink],
|
|
15667
15670
|
mutators: replicacheMutators,
|
|
15668
|
-
name: `zero-${userID}`,
|
|
15671
|
+
name: `zero-${userID}-${this.storageKey}`,
|
|
15669
15672
|
pusher: (req, reqID) => this.#pusher(req, reqID),
|
|
15670
15673
|
puller: (req, reqID) => this.#puller(req, reqID),
|
|
15671
15674
|
pushDelay: 0,
|
|
@@ -16634,4 +16637,4 @@ export {
|
|
|
16634
16637
|
escapeLike,
|
|
16635
16638
|
Zero
|
|
16636
16639
|
};
|
|
16637
|
-
//# sourceMappingURL=chunk-
|
|
16640
|
+
//# sourceMappingURL=chunk-AII6TS5B.js.map
|