@rocicorp/zero 0.21.2025052103 → 0.21.2025052600
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/ast-to-zql/src/ast-to-zql.js +1 -1
- package/out/ast-to-zql/src/ast-to-zql.js.map +1 -1
- package/out/{chunk-67DEDR65.js → chunk-JZAY4BJA.js} +2 -2
- package/out/{chunk-Y5SC5VIM.js → chunk-UAWIBMWA.js} +15 -6
- package/out/chunk-UAWIBMWA.js.map +7 -0
- package/out/{chunk-ZQLO2WTQ.js → chunk-X7AUUQ3J.js} +14 -9
- package/out/{chunk-ZQLO2WTQ.js.map → chunk-X7AUUQ3J.js.map} +2 -2
- package/out/{inspector-VQFIQSJR.js → inspector-KBNUEBWB.js} +6 -4
- package/out/inspector-KBNUEBWB.js.map +7 -0
- package/out/react.js +1 -1
- package/out/solid.js +3 -3
- package/out/z2s/src/compiler.d.ts +1 -1
- package/out/z2s/src/compiler.d.ts.map +1 -1
- package/out/z2s/src/compiler.js +9 -3
- package/out/z2s/src/compiler.js.map +1 -1
- package/out/zero/src/zqlite.d.ts +2 -0
- package/out/zero/src/zqlite.d.ts.map +1 -0
- package/out/zero/src/zqlite.js +3 -0
- package/out/zero/src/zqlite.js.map +1 -0
- package/out/zero-cache/src/auth/write-authorizer.d.ts +4 -4
- package/out/zero-cache/src/auth/write-authorizer.d.ts.map +1 -1
- package/out/zero-cache/src/auth/write-authorizer.js +16 -13
- package/out/zero-cache/src/auth/write-authorizer.js.map +1 -1
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
- package/out/zero-cache/src/config/zero-config.js +4 -9
- package/out/zero-cache/src/config/zero-config.js.map +1 -1
- package/out/zero-cache/src/db/pg-copy.d.ts +1 -1
- package/out/zero-cache/src/db/pg-copy.d.ts.map +1 -1
- package/out/zero-cache/src/db/pg-copy.js +6 -7
- package/out/zero-cache/src/db/pg-copy.js.map +1 -1
- package/out/zero-cache/src/server/logging.d.ts +8 -3
- package/out/zero-cache/src/server/logging.d.ts.map +1 -1
- package/out/zero-cache/src/server/logging.js +2 -8
- package/out/zero-cache/src/server/logging.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/copy-runner.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/copy-runner.js +10 -3
- package/out/zero-cache/src/services/change-source/pg/copy-runner.js.map +1 -1
- package/out/zero-cache/src/services/litestream/commands.d.ts.map +1 -1
- package/out/zero-cache/src/services/litestream/commands.js +4 -11
- package/out/zero-cache/src/services/litestream/commands.js.map +1 -1
- package/out/zero-cache/src/services/litestream/config.yml +2 -0
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.js +5 -2
- package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -1
- package/out/zero-schema/src/builder/schema-builder.d.ts.map +1 -1
- package/out/zero-schema/src/builder/schema-builder.js +3 -0
- package/out/zero-schema/src/builder/schema-builder.js.map +1 -1
- package/out/zero.js +3 -3
- package/out/zql/src/builder/builder.d.ts.map +1 -1
- package/out/zql/src/builder/builder.js +14 -3
- package/out/zql/src/builder/builder.js.map +1 -1
- package/out/zql/src/query/query-impl.d.ts +1 -1
- package/out/zql/src/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/query/query-impl.js +2 -2
- package/out/zql/src/query/query-impl.js.map +1 -1
- package/out/zql/src/query/static-query.d.ts +2 -2
- package/out/zql/src/query/static-query.d.ts.map +1 -1
- package/out/zql/src/query/static-query.js +4 -4
- package/out/zql/src/query/static-query.js.map +1 -1
- package/out/zqlite/src/mod.d.ts +4 -0
- package/out/zqlite/src/mod.d.ts.map +1 -0
- package/out/zqlite/src/mod.js +4 -0
- package/out/zqlite/src/mod.js.map +1 -0
- package/out/zqlite/src/query-delegate.d.ts +25 -0
- package/out/zqlite/src/query-delegate.d.ts.map +1 -0
- package/out/zqlite/src/query-delegate.js +63 -0
- package/out/zqlite/src/query-delegate.js.map +1 -0
- package/package.json +5 -1
- package/out/chunk-Y5SC5VIM.js.map +0 -7
- package/out/inspector-VQFIQSJR.js.map +0 -7
- /package/out/{chunk-67DEDR65.js.map → chunk-JZAY4BJA.js.map} +0 -0
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
withWrite,
|
|
88
88
|
withWriteNoImplicitCommit,
|
|
89
89
|
wrapIterable
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-JZAY4BJA.js";
|
|
91
91
|
import {
|
|
92
92
|
AbstractQuery,
|
|
93
93
|
ExpressionBuilder,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
toStaticParam,
|
|
123
123
|
transformFilters,
|
|
124
124
|
valita_exports
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-UAWIBMWA.js";
|
|
126
126
|
import {
|
|
127
127
|
__export,
|
|
128
128
|
assert,
|
|
@@ -5816,6 +5816,11 @@ function createSchema(options) {
|
|
|
5816
5816
|
function checkRelationship(relationships2, tableName, tables) {
|
|
5817
5817
|
Object.entries(relationships2).forEach(([name, rel]) => {
|
|
5818
5818
|
let source = tables[tableName];
|
|
5819
|
+
if (source.columns[name] !== void 0) {
|
|
5820
|
+
throw new Error(
|
|
5821
|
+
`Relationship "${tableName}"."${name}" cannot have the same name as the column "${name}" on the the table "${source.name}"`
|
|
5822
|
+
);
|
|
5823
|
+
}
|
|
5819
5824
|
rel.forEach((connection) => {
|
|
5820
5825
|
if (!tables[connection.destSchema]) {
|
|
5821
5826
|
throw new Error(
|
|
@@ -5853,11 +5858,11 @@ var StaticQuery = class _StaticQuery extends AbstractQuery {
|
|
|
5853
5858
|
expressionBuilder() {
|
|
5854
5859
|
return new ExpressionBuilder(this._exists);
|
|
5855
5860
|
}
|
|
5856
|
-
constructor(schema, tableName, ast, format) {
|
|
5857
|
-
super(schema, tableName, ast, format, "permissions");
|
|
5861
|
+
constructor(schema, tableName, ast, format, currentJunction) {
|
|
5862
|
+
super(schema, tableName, ast, format, "permissions", currentJunction);
|
|
5858
5863
|
}
|
|
5859
|
-
[newQuerySymbol](schema, tableName, ast, format) {
|
|
5860
|
-
return new _StaticQuery(schema, tableName, ast, format);
|
|
5864
|
+
[newQuerySymbol](schema, tableName, ast, format, currentJunction) {
|
|
5865
|
+
return new _StaticQuery(schema, tableName, ast, format, currentJunction);
|
|
5861
5866
|
}
|
|
5862
5867
|
get ast() {
|
|
5863
5868
|
return this._completeAst();
|
|
@@ -8532,7 +8537,7 @@ function makeMessage(message, context, logLevel) {
|
|
|
8532
8537
|
}
|
|
8533
8538
|
|
|
8534
8539
|
// ../zero-client/src/client/version.ts
|
|
8535
|
-
var version2 = "0.21.
|
|
8540
|
+
var version2 = "0.21.2025052600";
|
|
8536
8541
|
|
|
8537
8542
|
// ../zero-client/src/client/log-options.ts
|
|
8538
8543
|
var LevelFilterLogSink = class {
|
|
@@ -11013,7 +11018,7 @@ var Zero = class {
|
|
|
11013
11018
|
*/
|
|
11014
11019
|
async inspect() {
|
|
11015
11020
|
BUNDLE_SIZE: {
|
|
11016
|
-
const m = await import("./inspector-
|
|
11021
|
+
const m = await import("./inspector-KBNUEBWB.js");
|
|
11017
11022
|
return m.newInspector(this.#rep, this.#schema, async () => {
|
|
11018
11023
|
await this.#connectResolver.promise;
|
|
11019
11024
|
return this.#socket;
|
|
@@ -11140,4 +11145,4 @@ export {
|
|
|
11140
11145
|
update_needed_reason_type_enum_exports,
|
|
11141
11146
|
Zero
|
|
11142
11147
|
};
|
|
11143
|
-
//# sourceMappingURL=chunk-
|
|
11148
|
+
//# sourceMappingURL=chunk-X7AUUQ3J.js.map
|