@rocicorp/zero 0.22.2025070600 → 0.22.2025070701
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-U52OBQ2U.js → chunk-4XUYLHLN.js} +80 -103
- package/out/chunk-4XUYLHLN.js.map +7 -0
- package/out/{chunk-5ZACJSVD.js → chunk-7VV3XSWG.js} +3 -3
- package/out/{chunk-ZGVTOORV.js → chunk-XUGOP4Z4.js} +22 -21
- package/out/{chunk-ZGVTOORV.js.map → chunk-XUGOP4Z4.js.map} +2 -2
- package/out/{inspector-XJ4IL4MG.js → inspector-DIXW3TGL.js} +2 -2
- package/out/react.js +2 -2
- package/out/solid.js +3 -3
- package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -1
- package/out/zero.js +3 -3
- package/out/zql/src/ivm/view-apply-change.d.ts.map +1 -1
- package/out/zql/src/ivm/view-apply-change.js +91 -72
- package/out/zql/src/ivm/view-apply-change.js.map +1 -1
- package/package.json +1 -1
- package/out/chunk-U52OBQ2U.js.map +0 -7
- /package/out/{chunk-5ZACJSVD.js.map → chunk-7VV3XSWG.js.map} +0 -0
- /package/out/{inspector-XJ4IL4MG.js.map → inspector-DIXW3TGL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clientToServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XUGOP4Z4.js";
|
|
4
4
|
import {
|
|
5
5
|
AbstractQuery,
|
|
6
6
|
ExpressionBuilder,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
staticParam,
|
|
16
16
|
toStaticParam,
|
|
17
17
|
valita_exports
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4XUYLHLN.js";
|
|
19
19
|
|
|
20
20
|
// ../zero-protocol/src/custom-queries.ts
|
|
21
21
|
var transformRequestBodySchema = valita_exports.array(
|
|
@@ -337,4 +337,4 @@ export {
|
|
|
337
337
|
querify,
|
|
338
338
|
namedQuery
|
|
339
339
|
};
|
|
340
|
-
//# sourceMappingURL=chunk-
|
|
340
|
+
//# sourceMappingURL=chunk-7VV3XSWG.js.map
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
withWrite,
|
|
127
127
|
withWriteNoImplicitCommit,
|
|
128
128
|
wrapIterable
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-4XUYLHLN.js";
|
|
130
130
|
import {
|
|
131
131
|
__export
|
|
132
132
|
} from "./chunk-424PT5DM.js";
|
|
@@ -8539,7 +8539,7 @@ function makeMessage(message, context, logLevel) {
|
|
|
8539
8539
|
}
|
|
8540
8540
|
|
|
8541
8541
|
// ../zero-client/src/client/version.ts
|
|
8542
|
-
var version2 = "0.22.
|
|
8542
|
+
var version2 = "0.22.2025070701";
|
|
8543
8543
|
|
|
8544
8544
|
// ../zero-client/src/client/log-options.ts
|
|
8545
8545
|
var LevelFilterLogSink = class {
|
|
@@ -9649,29 +9649,29 @@ function mergePokes(pokeBuffer, schema, serverToClient2) {
|
|
|
9649
9649
|
for (const [clientID, queriesPatch] of Object.entries(
|
|
9650
9650
|
pokePart.desiredQueriesPatches
|
|
9651
9651
|
)) {
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9652
|
+
for (const op of queriesPatch) {
|
|
9653
|
+
mergedPatch.push(
|
|
9654
|
+
queryPatchOpToReplicachePatchOp(
|
|
9655
9655
|
op,
|
|
9656
9656
|
(hash) => toDesiredQueriesKey(clientID, hash)
|
|
9657
9657
|
)
|
|
9658
|
-
)
|
|
9659
|
-
|
|
9658
|
+
);
|
|
9659
|
+
}
|
|
9660
9660
|
}
|
|
9661
9661
|
}
|
|
9662
9662
|
if (pokePart.gotQueriesPatch) {
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
)
|
|
9667
|
-
|
|
9663
|
+
for (const op of pokePart.gotQueriesPatch) {
|
|
9664
|
+
mergedPatch.push(
|
|
9665
|
+
queryPatchOpToReplicachePatchOp(op, toGotQueriesKey)
|
|
9666
|
+
);
|
|
9667
|
+
}
|
|
9668
9668
|
}
|
|
9669
9669
|
if (pokePart.rowsPatch) {
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
)
|
|
9674
|
-
|
|
9670
|
+
for (const p of pokePart.rowsPatch) {
|
|
9671
|
+
mergedPatch.push(
|
|
9672
|
+
rowsPatchOpToReplicachePatchOp(p, schema, serverToClient2)
|
|
9673
|
+
);
|
|
9674
|
+
}
|
|
9675
9675
|
}
|
|
9676
9676
|
}
|
|
9677
9677
|
}
|
|
@@ -9694,12 +9694,13 @@ function queryPatchOpToReplicachePatchOp(op, toKey) {
|
|
|
9694
9694
|
key: toKey(op.hash)
|
|
9695
9695
|
};
|
|
9696
9696
|
case "put":
|
|
9697
|
-
default:
|
|
9698
9697
|
return {
|
|
9699
9698
|
op: "put",
|
|
9700
9699
|
key: toKey(op.hash),
|
|
9701
9700
|
value: null
|
|
9702
9701
|
};
|
|
9702
|
+
default:
|
|
9703
|
+
unreachable(op);
|
|
9703
9704
|
}
|
|
9704
9705
|
}
|
|
9705
9706
|
function rowsPatchOpToReplicachePatchOp(op, schema, serverToClient2) {
|
|
@@ -9739,7 +9740,7 @@ function rowsPatchOpToReplicachePatchOp(op, schema, serverToClient2) {
|
|
|
9739
9740
|
constrain: serverToClient2.columns(op.tableName, op.constrain)
|
|
9740
9741
|
};
|
|
9741
9742
|
default:
|
|
9742
|
-
|
|
9743
|
+
unreachable(op);
|
|
9743
9744
|
}
|
|
9744
9745
|
}
|
|
9745
9746
|
function rafFallback(callback) {
|
|
@@ -11099,7 +11100,7 @@ var Zero = class _Zero {
|
|
|
11099
11100
|
*/
|
|
11100
11101
|
async inspect() {
|
|
11101
11102
|
BUNDLE_SIZE: {
|
|
11102
|
-
const m = await import("./inspector-
|
|
11103
|
+
const m = await import("./inspector-DIXW3TGL.js");
|
|
11103
11104
|
return m.newInspector(this.#rep, this.#schema, async () => {
|
|
11104
11105
|
await this.#connectResolver.promise;
|
|
11105
11106
|
return this.#socket;
|
|
@@ -11237,4 +11238,4 @@ export {
|
|
|
11237
11238
|
update_needed_reason_type_enum_exports,
|
|
11238
11239
|
Zero
|
|
11239
11240
|
};
|
|
11240
|
-
//# sourceMappingURL=chunk-
|
|
11241
|
+
//# sourceMappingURL=chunk-XUGOP4Z4.js.map
|