zero-swift 0.5.0 → 0.5.2
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 +5 -0
- package/dist/bin.js +1 -1
- package/package.json +3 -3
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.
|
|
12
|
+
version: "0.5.2",
|
|
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.
|
|
3
|
+
"version": "0.5.2",
|
|
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": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"oxfmt": "^0.74.0",
|
|
26
26
|
"vitest": "^5.0.5",
|
|
27
27
|
"@rocicorp/zero": "1.12.0",
|
|
28
|
-
"zero-
|
|
28
|
+
"zero-types": "0.0.0",
|
|
29
29
|
"zql": "0.0.0",
|
|
30
|
-
"zero-
|
|
30
|
+
"zero-schema": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@rocicorp/zero": ">=1.11.0"
|