@terrazzo/plugin-css 2.0.0-alpha.0 → 2.0.0-alpha.1
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 +16 -0
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @terrazzo/plugin-css
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ Breaking change: lint on plugins no longer runs on individual files, rather, the full set once merged.
|
|
8
|
+
|
|
9
|
+
If your lint plugin is not using the `src` context value, no changes are needed. If it is, you’ll need to instead read from the `sources` array, and look up sources with a token’s `source.loc` filename manually. This change was because lint rules now run on all files in one pass, essentially.
|
|
10
|
+
|
|
11
|
+
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - ⚠️ [Plugin API] Minor breaking change: token.originalValue may be undefined for tokens created with $ref. This shouldn’t affect any tokens or plugins not using $refs. But going forward this value will be missing if the token was created dynamically via $ref.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#530](https://github.com/terrazzoapp/terrazzo/pull/530) [`370ed7b`](https://github.com/terrazzoapp/terrazzo/commit/370ed7b0f578a64824124145d7f4936536b37bb3) Thanks [@drwpow](https://github.com/drwpow)! - Validation moved to lint rules, which means token validation can be individually configured, and optionally extended.
|
|
16
|
+
|
|
17
|
+
- [#553](https://github.com/terrazzoapp/terrazzo/pull/553) [`e63a627`](https://github.com/terrazzoapp/terrazzo/commit/e63a6277f61282fb608744a8348689b16f977076) Thanks [@Sidnioulz](https://github.com/Sidnioulz)! - Add support for the Token Listing format
|
|
18
|
+
|
|
3
19
|
## 0.10.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -4709,7 +4709,8 @@ function cssPlugin(options) {
|
|
|
4709
4709
|
format: FORMAT_ID,
|
|
4710
4710
|
localID,
|
|
4711
4711
|
value,
|
|
4712
|
-
mode
|
|
4712
|
+
mode,
|
|
4713
|
+
meta: { "token-listing": { name: localID } }
|
|
4713
4714
|
});
|
|
4714
4715
|
continue;
|
|
4715
4716
|
}
|
|
@@ -4720,12 +4721,20 @@ function cssPlugin(options) {
|
|
|
4720
4721
|
transformAlias,
|
|
4721
4722
|
color: { legacyHex }
|
|
4722
4723
|
});
|
|
4723
|
-
if (transformedValue !== void 0)
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4724
|
+
if (transformedValue !== void 0) {
|
|
4725
|
+
let listingName = localID;
|
|
4726
|
+
if (typeof transformedValue === "object" && generateShorthand({
|
|
4727
|
+
$type: token.$type,
|
|
4728
|
+
localID
|
|
4729
|
+
}) === void 0) listingName = void 0;
|
|
4730
|
+
setTransform(id, {
|
|
4731
|
+
format: FORMAT_ID,
|
|
4732
|
+
localID,
|
|
4733
|
+
value: transformedValue,
|
|
4734
|
+
mode,
|
|
4735
|
+
meta: { "token-listing": { name: listingName } }
|
|
4736
|
+
});
|
|
4737
|
+
}
|
|
4729
4738
|
}
|
|
4730
4739
|
}
|
|
4731
4740
|
},
|