@adobe/spectrum-tokens 14.3.0 → 14.4.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/moon.yml CHANGED
@@ -83,6 +83,17 @@ tasks:
83
83
  - dist
84
84
  local: true
85
85
  platform: system
86
+ verifyLegacyRoundtrip:
87
+ command: ../../sdk/target/debug/design-data
88
+ args:
89
+ - migrate
90
+ - roundtrip-verify
91
+ - ./src
92
+ platform: system
93
+ deps:
94
+ - sdk:build
95
+ inputs:
96
+ - "@globs(sources)"
86
97
  test:
87
98
  command:
88
99
  - pnpm
@@ -96,6 +107,7 @@ tasks:
96
107
  deps:
97
108
  - ~:buildTokens
98
109
  - ~:verifyDesignDataSnapshot
110
+ - ~:verifyLegacyRoundtrip
99
111
  platform: node
100
112
  test-watch:
101
113
  command:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "14.3.0",
3
+ "version": "14.4.0",
4
4
  "description": "Design tokens for Spectrum, Adobe's design system",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -68,5 +68,5 @@
68
68
  "renamed": {},
69
69
  "uuid": {}
70
70
  },
71
- "required": ["sets"]
71
+ "required": ["sets", "uuid"]
72
72
  }
@@ -59,5 +59,5 @@
59
59
  "renamed": {},
60
60
  "uuid": {}
61
61
  },
62
- "required": ["sets"]
62
+ "required": ["sets", "uuid"]
63
63
  }
@@ -29,15 +29,27 @@
29
29
  "default": false
30
30
  },
31
31
  "deprecated": {
32
- "type": "boolean",
33
- "default": false
32
+ "type": ["boolean", "string"],
33
+ "default": false,
34
+ "description": "Boolean (legacy) or version string (cascade). Truthy = deprecated."
34
35
  },
35
36
  "deprecated_comment": {
36
37
  "type": "string"
37
38
  },
38
39
  "renamed": {
39
40
  "type": "string",
40
- "description": "New token name if this token has been renamed. Use for 1:1 complete replacements."
41
+ "description": "Legacy format: new token name. Use replaced_by (UUID) in cascade format instead."
42
+ },
43
+ "replaced_by": {
44
+ "oneOf": [
45
+ { "type": "string", "format": "uuid" },
46
+ { "type": "array", "items": { "type": "string", "format": "uuid" }, "minItems": 1 }
47
+ ],
48
+ "description": "UUID(s) of the replacement token(s). Array form requires deprecated_comment."
49
+ },
50
+ "plannedRemoval": {
51
+ "type": "string",
52
+ "description": "Spec version when token will be removed."
41
53
  },
42
54
  "description": {
43
55
  "type": "string",