@ucm-kit/cli 0.1.22 → 0.1.24

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.
Files changed (2) hide show
  1. package/README.md +11 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -11,8 +11,8 @@ next to the component's code. This command reads those files and says whether
11
11
  they still hold together.
12
12
 
13
13
  ```sh
14
- npx --yes @ucm-kit/cli@0.1.22 init
15
- npx --yes @ucm-kit/cli@0.1.22 check --report ci-report.md
14
+ npx --yes @ucm-kit/cli@0.1.24 init
15
+ npx --yes @ucm-kit/cli@0.1.24 check --report ci-report.md
16
16
  ```
17
17
 
18
18
  Pin an exact version, without `^`. A range would let npx install a build this
@@ -58,7 +58,7 @@ not write React states its own extension here, rather than carrying a `.tsx`
58
58
  that was wrong the day it was installed:
59
59
 
60
60
  ```sh
61
- npx --yes @ucm-kit/cli@0.1.22 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
61
+ npx --yes @ucm-kit/cli@0.1.24 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
62
62
  ```
63
63
 
64
64
  All three act only on a first install: `ucm init` never overwrites an existing
@@ -147,6 +147,14 @@ directions.
147
147
  | Every `{token.path}` cited exists in the token file | Warns, but a missing or unreadable token file blocks |
148
148
  | The code exposes the props the contract declares, with a stack adapter installed | Warns |
149
149
 
150
+ Before any contract, the check reads the format version at the root of the
151
+ token file. A version newer than this package reads, or a mark that is not a
152
+ version, blocks the merge, even in a repository with no contract yet. A
153
+ developer upgrades the UCM packages for the first case, and the designer runs
154
+ the token export again for the second.
155
+ [`@ucm-kit/core`](https://www.npmjs.com/package/@ucm-kit/core) lists the four
156
+ states.
157
+
150
158
  A gap with the code needs a developer, so it warns and lets the merge through. A
151
159
  token removed from the design system does too: tokens are the source of truth,
152
160
  so an older contract does not hold back their evolution. A token file that is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucm-kit/cli",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "La ligne de commande UCM : initialiser un repository, lister ce qu'il doit couvrir.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "test": "node scripts/run-tests.cjs"
28
28
  },
29
29
  "dependencies": {
30
- "@ucm-kit/core": "0.1.23"
30
+ "@ucm-kit/core": "0.1.25"
31
31
  }
32
32
  }