@rocicorp/zero 0.18.2025032800 → 0.18.2025032900
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-3S3SDA44.js → chunk-I7LQ2GI3.js} +27 -7
- package/out/{chunk-3S3SDA44.js.map → chunk-I7LQ2GI3.js.map} +3 -3
- package/out/shared/src/deep-merge.d.ts +6 -0
- package/out/shared/src/deep-merge.d.ts.map +1 -0
- package/out/solid.js +1 -1
- package/out/solid.js.map +2 -2
- package/out/zero-cache/src/db/migration-lite.d.ts.map +1 -1
- package/out/zero-cache/src/db/migration-lite.js +12 -0
- package/out/zero-cache/src/db/migration-lite.js.map +1 -1
- package/out/zero-cache/src/server/main.d.ts.map +1 -1
- package/out/zero-cache/src/server/main.js +17 -1
- package/out/zero-cache/src/server/main.js.map +1 -1
- package/out/zero-cache/src/services/change-source/replica-schema.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/replica-schema.js +10 -1
- package/out/zero-cache/src/services/change-source/replica-schema.js.map +1 -1
- package/out/zero-client/src/client/zero.d.ts +2 -1
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-client/src/mod.d.ts +1 -1
- package/out/zero-client/src/mod.d.ts.map +1 -1
- package/out/zero-pg/src/mod.d.ts +2 -1
- package/out/zero-pg/src/mod.d.ts.map +1 -1
- package/out/zero-pg/src/mod.js +1 -0
- package/out/zero-pg/src/mod.js.map +1 -1
- package/out/zero-pg/src/postgres-connection.d.ts +30 -0
- package/out/zero-pg/src/postgres-connection.d.ts.map +1 -0
- package/out/zero-pg/src/postgres-connection.js +31 -0
- package/out/zero-pg/src/postgres-connection.js.map +1 -0
- package/out/zero-pg/src/web.d.ts +5 -9
- package/out/zero-pg/src/web.d.ts.map +1 -1
- package/out/zero-pg/src/web.js +12 -13
- package/out/zero-pg/src/web.js.map +1 -1
- package/out/zero-protocol/src/push.d.ts +7 -0
- package/out/zero-protocol/src/push.d.ts.map +1 -1
- package/out/zero-protocol/src/push.js +7 -0
- package/out/zero-protocol/src/push.js.map +1 -1
- package/out/zero-solid/src/create-zero.d.ts +2 -2
- package/out/zero-solid/src/create-zero.d.ts.map +1 -1
- package/out/zero.js +7 -3
- package/package.json +1 -1
|
@@ -5183,7 +5183,7 @@ var ReplicacheImpl = class {
|
|
|
5183
5183
|
}
|
|
5184
5184
|
return rv;
|
|
5185
5185
|
}
|
|
5186
|
-
async #mutate(name, mutatorImpl, args,
|
|
5186
|
+
async #mutate(name, mutatorImpl, args, timestamp2) {
|
|
5187
5187
|
const frozenArgs = deepFreeze(args ?? null);
|
|
5188
5188
|
if (this.#subscriptions.hasPendingSubscriptionRuns) {
|
|
5189
5189
|
await Promise.resolve();
|
|
@@ -5200,7 +5200,7 @@ var ReplicacheImpl = class {
|
|
|
5200
5200
|
frozenArgs,
|
|
5201
5201
|
originalHash,
|
|
5202
5202
|
dagWrite,
|
|
5203
|
-
|
|
5203
|
+
timestamp2,
|
|
5204
5204
|
clientID,
|
|
5205
5205
|
Latest
|
|
5206
5206
|
);
|
|
@@ -5613,6 +5613,20 @@ function json() {
|
|
|
5613
5613
|
customType: null
|
|
5614
5614
|
});
|
|
5615
5615
|
}
|
|
5616
|
+
function date() {
|
|
5617
|
+
return new ColumnBuilder({
|
|
5618
|
+
type: "date",
|
|
5619
|
+
optional: false,
|
|
5620
|
+
customType: null
|
|
5621
|
+
});
|
|
5622
|
+
}
|
|
5623
|
+
function timestamp() {
|
|
5624
|
+
return new ColumnBuilder({
|
|
5625
|
+
type: "timestamp",
|
|
5626
|
+
optional: false,
|
|
5627
|
+
customType: null
|
|
5628
|
+
});
|
|
5629
|
+
}
|
|
5616
5630
|
function enumeration() {
|
|
5617
5631
|
return new ColumnBuilder({
|
|
5618
5632
|
type: "string",
|
|
@@ -6342,6 +6356,10 @@ var pushResponseMessageSchema = valita_exports.tuple([
|
|
|
6342
6356
|
valita_exports.literal("push-response"),
|
|
6343
6357
|
pushResponseSchema
|
|
6344
6358
|
]);
|
|
6359
|
+
var pushParamsSchema = valita_exports.object({
|
|
6360
|
+
schema: valita_exports.string(),
|
|
6361
|
+
appID: valita_exports.string()
|
|
6362
|
+
});
|
|
6345
6363
|
function mapCRUD(arg, map) {
|
|
6346
6364
|
return {
|
|
6347
6365
|
ops: arg.ops.map(
|
|
@@ -8305,7 +8323,7 @@ function makeMessage(message, context, logLevel) {
|
|
|
8305
8323
|
}
|
|
8306
8324
|
|
|
8307
8325
|
// ../zero-client/src/client/version.ts
|
|
8308
|
-
var version2 = "0.18.
|
|
8326
|
+
var version2 = "0.18.2025032900";
|
|
8309
8327
|
|
|
8310
8328
|
// ../zero-client/src/client/log-options.ts
|
|
8311
8329
|
var LevelFilterLogSink = class {
|
|
@@ -10359,17 +10377,17 @@ var Zero = class {
|
|
|
10359
10377
|
const now = Date.now();
|
|
10360
10378
|
for (let i = start; i < req.mutations.length; i++) {
|
|
10361
10379
|
const m = req.mutations[i];
|
|
10362
|
-
const
|
|
10380
|
+
const timestamp2 = now - Math.round(performance.now() - m.timestamp);
|
|
10363
10381
|
const zeroM = m.name === CRUD_MUTATION_NAME ? {
|
|
10364
10382
|
type: CRUD,
|
|
10365
|
-
timestamp,
|
|
10383
|
+
timestamp: timestamp2,
|
|
10366
10384
|
id: m.id,
|
|
10367
10385
|
clientID: m.clientID,
|
|
10368
10386
|
name: m.name,
|
|
10369
10387
|
args: [mapCRUD(m.args, this.#clientToServer)]
|
|
10370
10388
|
} : {
|
|
10371
10389
|
type: Custom,
|
|
10372
|
-
timestamp,
|
|
10390
|
+
timestamp: timestamp2,
|
|
10373
10391
|
id: m.id,
|
|
10374
10392
|
clientID: m.clientID,
|
|
10375
10393
|
name: m.name,
|
|
@@ -10789,6 +10807,8 @@ export {
|
|
|
10789
10807
|
number2 as number,
|
|
10790
10808
|
boolean,
|
|
10791
10809
|
json,
|
|
10810
|
+
date,
|
|
10811
|
+
timestamp,
|
|
10792
10812
|
enumeration,
|
|
10793
10813
|
createSchema,
|
|
10794
10814
|
ANYONE_CAN,
|
|
@@ -10798,4 +10818,4 @@ export {
|
|
|
10798
10818
|
escapeLike,
|
|
10799
10819
|
Zero
|
|
10800
10820
|
};
|
|
10801
|
-
//# sourceMappingURL=chunk-
|
|
10821
|
+
//# sourceMappingURL=chunk-I7LQ2GI3.js.map
|