@patternfly/react-tokens 4.20.4 → 4.20.8

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
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 4.20.8 (2021-10-27)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-tokens
9
+
10
+
11
+
12
+
13
+
14
+ ## 4.20.7 (2021-10-27)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * change transformer cjs package to private ([#6515](https://github.com/patternfly/patternfly-react/issues/6515)) ([efcb357](https://github.com/patternfly/patternfly-react/commit/efcb3573b71541328ce2b16caa80ce33b2a62131))
20
+
21
+
22
+
23
+
24
+
25
+ ## 4.20.6 (2021-10-26)
26
+
27
+ **Note:** Version bump only for package @patternfly/react-tokens
28
+
29
+
30
+
31
+
32
+
33
+ ## 4.20.5 (2021-10-26)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **tokens:** added check for no matching var to avoid infinite loop ([#6502](https://github.com/patternfly/patternfly-react/issues/6502)) ([99605c2](https://github.com/patternfly/patternfly-react/commit/99605c213f12490d0abe75910e05c3e6da26a1f3))
39
+
40
+
41
+
42
+
43
+
6
44
  ## 4.20.4 (2021-10-26)
7
45
 
8
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-tokens",
3
- "version": "4.20.4",
3
+ "version": "4.20.8",
4
4
  "description": "This library provides access to the design tokens of PatternFly 4 from JavaScript",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -29,11 +29,11 @@
29
29
  "clean": "rimraf dist"
30
30
  },
31
31
  "devDependencies": {
32
- "@patternfly/patternfly": "4.151.3",
32
+ "@patternfly/patternfly": "4.151.4",
33
33
  "css": "^2.2.3",
34
34
  "fs-extra": "^6.0.1",
35
35
  "glob": "^7.1.2",
36
36
  "rimraf": "^2.6.2"
37
37
  },
38
- "gitHead": "84c2450e8f45e7807dc1e35a09dbb399d2aa282e"
38
+ "gitHead": "65892669e3aa015e47ef7bcb379e4eb7d317f1ac"
39
39
  }
@@ -151,6 +151,14 @@ function generateTokens() {
151
151
  } else {
152
152
  computedValue = getComputedScssVarValue(computedValue);
153
153
  }
154
+
155
+ // error out if variable doesn't exist to avoid infinite loop
156
+ if (finalValue === value && computedValue === value) {
157
+ // eslint-disable-next-line no-console
158
+ console.error(`Error: "${value}" variable not found`);
159
+ throw Error;
160
+ }
161
+
154
162
  varsMap.push(computedValue);
155
163
  }
156
164
  const lastElement = varsMap[varsMap.length - 1];