@crombolo/schema 0.14.4 → 0.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/schema",
3
- "version": "0.14.4",
3
+ "version": "0.16.0",
4
4
  "description": "Schema-as-code for crombolo: TOML document, media and member type definitions.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@crombolo/core": "0.14.4",
32
- "@crombolo/data": "0.14.4"
31
+ "@crombolo/core": "0.16.0",
32
+ "@crombolo/data": "0.16.0"
33
33
  }
34
34
  }
package/src/check.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The pre-upgrade check: what would this change do to the data, and what does
3
- * it need? One function behind `crombolo upgrade check` and `crombolo schema
3
+ * it need? One function behind `crombolo upgrade check` and `crombolo types
4
4
  * check`. Read-only. docs/packaging-and-upgrades.md, "Three kinds of finding".
5
5
  */
6
6
  import type { ContentTypeAggregate, PropertyTypeModel } from '@crombolo/core'
package/src/scaffold.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * new site with nothing to copy from, and leaves adding a property a matter of
6
6
  * remembering the vocabulary and inventing a uuid. These build the model; the
7
7
  * canonical writer turns it into the file, so what the CLI writes is byte for
8
- * byte what `schema rewrite` would.
8
+ * byte what `types rewrite` would.
9
9
  */
10
10
  import type { SchemaContentType, SchemaProperty, SchemaTab, SchemaTypeKind } from './model.ts'
11
11
  import { allProperties } from './model.ts'
package/src/sync.ts CHANGED
@@ -57,7 +57,7 @@ export interface SyncOptions {
57
57
  componentAliases?: ReadonlySet<string>
58
58
  /** Retire a type even though documents of it exist. */
59
59
  forceRetireTypes?: boolean
60
- /** Compute the report and roll back: `schema check`. */
60
+ /** Compute the report and roll back: `types check`. */
61
61
  dryRun?: boolean
62
62
  /**
63
63
  * `prepared` creates everything under a state no live node has reached, so it
@@ -159,7 +159,7 @@ export async function syncSchema(
159
159
  const missing = elementsWithoutKeys(set)
160
160
  if (missing.length > 0)
161
161
  return emptySyncReport('refused', {
162
- reason: `production requires every element to carry a key; run \`crombolo schema sync\` in development to assign them: ${missing.join(', ')}`,
162
+ reason: `production requires every element to carry a key; run \`crombolo types sync\` in development to assign them: ${missing.join(', ')}`,
163
163
  })
164
164
  }
165
165
  const hash = hashSchemaSet(set)