zero-swift 0.5.0 → 0.5.1

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/README.md CHANGED
@@ -56,6 +56,11 @@ Rename a row struct whose name clashes with a type you use. A table named
56
56
  `list` generates `struct List`, which hides SwiftUI's `List`; set
57
57
  `tables.list.type` to `NoteList`, or set a `typePrefix`.
58
58
 
59
+ Two generated schemas with a table of the same name can't share a module:
60
+ both declare `tx.mutate.<table>`. Generate each into a module of its own.
61
+ Code that imports both names the row type, as in
62
+ `TypedTableMutator<Issue>(tx.mutate).insert(…)`.
63
+
59
64
  ### Names
60
65
 
61
66
  Tables, columns, relationships, JSON fields and enumeration values keep
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.5.0",
12
+ version: "0.5.1",
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zero-swift",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
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": {