@adobe/spectrum-tokens 14.2.1 → 14.2.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
2
2
 
3
+ ## 14.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#747](https://github.com/adobe/spectrum-design-data/pull/747) [`80b1637`](https://github.com/adobe/spectrum-design-data/commit/80b163712ae7ac42b9892b0fd4001b1bb27ba1ac) Thanks [@GarthDB](https://github.com/GarthDB)! - fix(tokens): restore ./dist/\* subpath export for backward compatibility
8
+
9
+ ## 14.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#741](https://github.com/adobe/spectrum-design-data/pull/741) [`3f05fcf`](https://github.com/adobe/spectrum-design-data/commit/3f05fcffcd8641c822a54c4cdd37ba452dab455c) Thanks [@GarthDB](https://github.com/GarthDB)! - Add naming-exceptions.json and SPEC-007 (name-roundtrip) validation
14
+ rule. Tracks 194 legacy token names that cannot be deterministically
15
+ generated from a structured name object (167 state-position, 27
16
+ compound-state). This infrastructure supports the migration path from
17
+ legacy flat kebab-case names to structured name objects.
18
+
19
+ - [#740](https://github.com/adobe/spectrum-design-data/pull/740) [`956d61a`](https://github.com/adobe/spectrum-design-data/commit/956d61a00f154e7c488edf6916b0ce16945a814c) Thanks [@GarthDB](https://github.com/GarthDB)! - Add `token-file.json` schema for legacy token maps, a validation snapshot, and Moon tasks that run
20
+ the `design-data` CLI (`validate` / `migrate verify`) against `src/` and `schemas/`.
21
+
3
22
  ## 14.2.1
4
23
 
5
24
  ### Patch Changes
package/README.md CHANGED
@@ -8,6 +8,16 @@ Design tokens are directly integrated into our component libraries, UI kits, and
8
8
 
9
9
  Follow the monorepo [setup guide](../../README.md#setup-monorepo-locally).
10
10
 
11
+ ## Design Data validation
12
+
13
+ Moon tasks run the Rust `design-data` CLI against `src/` and `schemas/`:
14
+
15
+ * `moon run tokens:validateDesignData` — JSON Schema (Layer 1) + catalog rules (Layer 2)
16
+ * `moon run tokens:verifyDesignDataSnapshot` — same as above, compared to
17
+ `snapshots/validation-snapshot.json` (update with `design-data migrate snapshot` when outputs change)
18
+
19
+ From the repo root with Rust available, you can also run `cargo run -p design-data-cli --manifest-path sdk/Cargo.toml -- validate ./packages/tokens/src --schema-path ./packages/tokens/schemas`.
20
+
11
21
  ## Generate a Diff from the last release
12
22
 
13
23
  The `pnpm generateDiffResult` script will build the project and compare the tokens in the `dist` directory with the last released version of Spectrum Tokens. It will generate a report of added tokens, deleted tokens, tokens with value changes, and tokens with potential name changes. The script can't guarantee the correct name changes; it compares new tokens and deleted tokens to see if any have the same value and are likely to be token name changes.
package/moon.yml CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2024 Adobe. All rights reserved.
1
+ # Copyright 2026 Adobe. All rights reserved.
2
2
  # This file is licensed to you under the Apache License, Version 2.0 (the "License");
3
3
  # you may not use this file except in compliance with the License. You may obtain a copy
4
4
  # of the License at http://www.apache.org/licenses/LICENSE-2.0
@@ -15,6 +15,43 @@ fileGroups:
15
15
  tests:
16
16
  - "test/**/*"
17
17
  tasks:
18
+ validateDesignData:
19
+ command: ../../sdk/target/debug/design-data
20
+ args:
21
+ - validate
22
+ - ./src
23
+ - --schema-path
24
+ - ./schemas
25
+ - --exceptions-path
26
+ - ./naming-exceptions.json
27
+ platform: system
28
+ deps:
29
+ - sdk:build
30
+ inputs:
31
+ - "@globs(sources)"
32
+ - "schemas/**/*.json"
33
+ - "snapshots/**/*.json"
34
+ - "naming-exceptions.json"
35
+ verifyDesignDataSnapshot:
36
+ command: ../../sdk/target/debug/design-data
37
+ args:
38
+ - migrate
39
+ - verify
40
+ - ./src
41
+ - --snapshot
42
+ - ./snapshots/validation-snapshot.json
43
+ - --schema-path
44
+ - ./schemas
45
+ - --exceptions-path
46
+ - ./naming-exceptions.json
47
+ platform: system
48
+ deps:
49
+ - sdk:build
50
+ inputs:
51
+ - "@globs(sources)"
52
+ - "schemas/**/*.json"
53
+ - "snapshots/**/*.json"
54
+ - "naming-exceptions.json"
18
55
  build:
19
56
  deps:
20
57
  - ~:buildTokens
@@ -58,6 +95,7 @@ tasks:
58
95
  - "@globs(sources)"
59
96
  deps:
60
97
  - ~:buildTokens
98
+ - ~:verifyDesignDataSnapshot
61
99
  platform: node
62
100
  test-watch:
63
101
  command: