zero-swift 0.4.4 → 0.4.6

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/dist/bin.js CHANGED
@@ -9,7 +9,7 @@ import { Cli, z } from "incur";
9
9
  // package.json
10
10
  var package_default = {
11
11
  name: "zero-swift",
12
- version: "0.4.4",
12
+ version: "0.4.6",
13
13
  description: "Generates the Swift row types and schema of a Zero app for the Zero Swift client.",
14
14
  license: "Apache-2.0",
15
15
  repository: {
@@ -48,7 +48,7 @@ var package_default = {
48
48
  "@types/node": "^22.19.19",
49
49
  esbuild: "0.28.2",
50
50
  oxfmt: "^0.74.0",
51
- vitest: "^5.0.0",
51
+ vitest: "^5.0.5",
52
52
  "zero-schema": "workspace:*",
53
53
  "zero-types": "workspace:*",
54
54
  zql: "workspace:*"
@@ -1026,7 +1026,7 @@ cli.command(
1026
1026
  "SAMPLES_NOT_FOUND",
1027
1027
  `Samples file ${relative(cwd, samples)} doesn't exist. Pass --samples.`
1028
1028
  );
1029
- const { recordDriftFile } = await import("./drift-S756Q2ZA.js");
1029
+ const { recordDriftFile } = await import("./drift-SSEQSMJX.js");
1030
1030
  const vectors = await recordDriftFile(samples);
1031
1031
  return writeOutput(
1032
1032
  c.error,
@@ -112,6 +112,27 @@ function isPlainObject(value) {
112
112
  return typeof value === "object" && value !== null;
113
113
  }
114
114
 
115
+ // ../shared/src/iterables.ts
116
+ var iteratorCtor = globalThis.Iterator;
117
+ var nativeIteratorFrom = iteratorCtor?.from;
118
+ function toSorted(iter, compare) {
119
+ return [...iter].sort(compare);
120
+ }
121
+ var EmptyIteratorWithReturn = class {
122
+ value;
123
+ done = true;
124
+ constructor(value) {
125
+ this.value = value;
126
+ }
127
+ [Symbol.iterator]() {
128
+ return this;
129
+ }
130
+ next() {
131
+ return this;
132
+ }
133
+ };
134
+ var emptyIterator = new EmptyIteratorWithReturn(void 0);
135
+
115
136
  // ../shared/src/must.ts
116
137
  function must(v, msg) {
117
138
  if (v == null) {
@@ -1589,7 +1610,7 @@ var normalizedConditions = /* @__PURE__ */ new WeakSet();
1589
1610
  function normalizeRelated(related) {
1590
1611
  for (let i = 1; i < related.length; i++) {
1591
1612
  if (cmpRelated(related[i - 1], related[i]) > 0) {
1592
- return related.toSorted(cmpRelated);
1613
+ return toSorted(related, cmpRelated);
1593
1614
  }
1594
1615
  }
1595
1616
  return related;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zero-swift",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "Generates the Swift row types and schema of a Zero app for the Zero Swift client.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -23,10 +23,10 @@
23
23
  "@types/node": "^22.19.19",
24
24
  "esbuild": "0.28.2",
25
25
  "oxfmt": "^0.74.0",
26
- "vitest": "^5.0.0",
26
+ "vitest": "^5.0.5",
27
27
  "@rocicorp/zero": "1.12.0",
28
- "zero-types": "0.0.0",
29
28
  "zero-schema": "0.0.0",
29
+ "zero-types": "0.0.0",
30
30
  "zql": "0.0.0"
31
31
  },
32
32
  "peerDependencies": {