color-name-list 13.19.3 → 13.21.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.
Files changed (43) hide show
  1. package/.github/workflows/build-and-release.yml +1 -0
  2. package/CONTRIBUTING.md +1 -0
  3. package/README.md +2 -2
  4. package/changes.svg +3 -3
  5. package/dist/colornames.bestof.csv +3 -0
  6. package/dist/colornames.bestof.esm.js +1 -1
  7. package/dist/colornames.bestof.esm.mjs +1 -1
  8. package/dist/colornames.bestof.html +1 -1
  9. package/dist/colornames.bestof.json +1 -1
  10. package/dist/colornames.bestof.min.json +1 -1
  11. package/dist/colornames.bestof.scss +1 -1
  12. package/dist/colornames.bestof.toon +4 -1
  13. package/dist/colornames.bestof.umd.js +1 -1
  14. package/dist/colornames.bestof.xml +12 -0
  15. package/dist/colornames.bestof.yaml +9 -0
  16. package/dist/colornames.csv +5 -3
  17. package/dist/colornames.esm.js +1 -1
  18. package/dist/colornames.esm.mjs +1 -1
  19. package/dist/colornames.html +1 -1
  20. package/dist/colornames.json +1 -1
  21. package/dist/colornames.min.json +1 -1
  22. package/dist/colornames.scss +1 -1
  23. package/dist/colornames.short.csv +2 -0
  24. package/dist/colornames.short.esm.js +1 -1
  25. package/dist/colornames.short.esm.mjs +1 -1
  26. package/dist/colornames.short.html +1 -1
  27. package/dist/colornames.short.json +1 -1
  28. package/dist/colornames.short.min.json +1 -1
  29. package/dist/colornames.short.scss +1 -1
  30. package/dist/colornames.short.toon +3 -1
  31. package/dist/colornames.short.umd.js +1 -1
  32. package/dist/colornames.short.xml +8 -0
  33. package/dist/colornames.short.yaml +6 -0
  34. package/dist/colornames.toon +6 -4
  35. package/dist/colornames.umd.js +1 -1
  36. package/dist/colornames.xml +20 -12
  37. package/dist/colornames.yaml +15 -9
  38. package/dist/history.json +1 -1
  39. package/package.json +1 -1
  40. package/src/colornames.csv +6 -4
  41. package/tests/allowlists.test.js +76 -0
  42. package/tests/duplicate-allowlist.json +1 -2
  43. package/tests/title-case-allowlist.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-name-list",
3
- "version": "13.19.3",
3
+ "version": "13.21.0",
4
4
  "description": "long list of color names",
5
5
  "main": "dist/colornames.json",
6
6
  "browser": "dist/colornames.umd.js",
@@ -2495,14 +2495,13 @@ Bird Blue Grey,#7f92a0,
2495
2495
  Bird Flower,#d0c117,
2496
2496
  Bird’s Child,#fff1cf,
2497
2497
  Bird’s Egg Green,#aaccb9,
2498
- Bird’s Eye,#b9030a,
2499
2498
  Bird’s Nest,#cfbb9b,
2499
+ Bird’s-Eye,#ab823d,
2500
+ Bird’s-Eye Maple,#e4c495,
2500
2501
  Birdhouse Brown,#6c483a,
2501
2502
  Birdie,#e9e424,
2502
2503
  Birdie Num Num,#89acda,x
2503
2504
  Birdseed,#e2c28e,
2504
- Birdseye,#ab823d,
2505
- Birdseye Maple,#e4c495,
2506
2505
  Biro Blue,#2f3946,
2507
2506
  Birōdo Green,#224634,
2508
2507
  Birth of a Star,#fce9df,
@@ -3975,6 +3974,7 @@ Bull Shot,#75442b,
3975
3974
  Bullet Hell,#faf1c8,x
3976
3975
  Bullfighters Red,#cd4646,
3977
3976
  Bullfrog,#8a966a,x
3977
+ Bullseye,#b9030a,x
3978
3978
  Bulma Hair,#359e6b,x
3979
3979
  Bulrush,#6d5837,
3980
3980
  Bumangués Blue,#0777bc,
@@ -8102,6 +8102,7 @@ Drifting Downstream,#61736f,
8102
8102
  Drifting Dream,#ccbbe3,
8103
8103
  Drifting Sand,#a89f93,
8104
8104
  Drifting Tide,#dfefeb,
8105
+ Drifting Violet,#5b4276,x
8105
8106
  Driftwood,#a67a45,x
8106
8107
  Drip,#a6ccd6,
8107
8108
  Drip Coffee,#7a280a,x
@@ -24162,6 +24163,7 @@ Silent Delight,#e5e7e8,
24162
24163
  Silent Film,#9fa5a5,x
24163
24164
  Silent Ivory,#fef2c7,
24164
24165
  Silent Night,#526771,x
24166
+ Silent Orbit,#231c4d,x
24165
24167
  Silent Ripple,#abe3de,
24166
24168
  Silent River,#bad9d9,
24167
24169
  Silent Sage,#729988,
@@ -29989,4 +29991,4 @@ Zumthor,#cdd5d5,
29989
29991
  Zunda Green,#6bc026,x
29990
29992
  Zuni,#008996,
29991
29993
  Zürich Blue,#248bcc,
29992
- Zürich White,#e6e1d9,
29994
+ Zürich White,#e6e1d9,
@@ -0,0 +1,76 @@
1
+ import { describe, it, expect, beforeAll } from 'vitest';
2
+ import { csvTestData } from './csv-test-data.js';
3
+ import duplicateAllowlist from './duplicate-allowlist.json';
4
+ import duplicatePluralsAllowlist from './duplicate-plurals-allowlist.json';
5
+ import titleCaseAllowlist from './title-case-allowlist.json';
6
+ import { buildFailureMessage } from './_utils/report.js';
7
+
8
+ describe('Allowlists Validation', () => {
9
+ beforeAll(() => {
10
+ // Load CSV data once for all tests
11
+ csvTestData.load();
12
+ });
13
+
14
+ const allColorNames = new Set();
15
+
16
+ beforeAll(() => {
17
+ csvTestData.data.values['name'].forEach(name => allColorNames.add(name));
18
+ });
19
+
20
+ it('should ensure all entries in duplicate-allowlist.json exist in colornames.csv', () => {
21
+ const missingEntries = duplicateAllowlist.filter(name => !allColorNames.has(name));
22
+
23
+ if (missingEntries.length) {
24
+ throw new Error(
25
+ buildFailureMessage({
26
+ title: 'Found {n} unused {items} in duplicate-allowlist.json:',
27
+ offenders: missingEntries,
28
+ offenderLabel: 'entry',
29
+ details: [
30
+ 'These names are listed in the allowlist but do not exist in src/colornames.csv.',
31
+ 'Please remove them from tests/duplicate-allowlist.json to keep the list clean.',
32
+ ],
33
+ })
34
+ );
35
+ }
36
+ expect(missingEntries.length).toBe(0);
37
+ });
38
+
39
+ it('should ensure all entries in duplicate-plurals-allowlist.json exist in colornames.csv', () => {
40
+ const missingEntries = duplicatePluralsAllowlist.filter(name => !allColorNames.has(name));
41
+
42
+ if (missingEntries.length) {
43
+ throw new Error(
44
+ buildFailureMessage({
45
+ title: 'Found {n} unused {items} in duplicate-plurals-allowlist.json:',
46
+ offenders: missingEntries,
47
+ offenderLabel: 'entry',
48
+ details: [
49
+ 'These names are listed in the allowlist but do not exist in src/colornames.csv.',
50
+ 'Please remove them from tests/duplicate-plurals-allowlist.json to keep the list clean.',
51
+ ],
52
+ })
53
+ );
54
+ }
55
+ expect(missingEntries.length).toBe(0);
56
+ });
57
+
58
+ it('should ensure all entries in title-case-allowlist.json exist in colornames.csv', () => {
59
+ const missingEntries = titleCaseAllowlist.filter(name => !allColorNames.has(name));
60
+
61
+ if (missingEntries.length) {
62
+ throw new Error(
63
+ buildFailureMessage({
64
+ title: 'Found {n} unused {items} in title-case-allowlist.json:',
65
+ offenders: missingEntries,
66
+ offenderLabel: 'entry',
67
+ details: [
68
+ 'These names are listed in the allowlist but do not exist in src/colornames.csv.',
69
+ 'Please remove them from tests/title-case-allowlist.json to keep the list clean.',
70
+ ],
71
+ })
72
+ );
73
+ }
74
+ expect(missingEntries.length).toBe(0);
75
+ });
76
+ });
@@ -1,5 +1,4 @@
1
1
  [
2
- "Bird's Eye",
3
2
  "Winter Green",
4
3
  "Star Dust",
5
4
  "Star Bright",
@@ -19,7 +18,7 @@
19
18
  "Sail On",
20
19
  "In the Red",
21
20
  "In the Pink",
22
- "In A Pickle",
21
+ "In a Pickle",
23
22
  "In for a Penny",
24
23
  "On the Nile",
25
24
  "In the Navy",
@@ -9,7 +9,6 @@
9
9
  "Mauve-a-Lish",
10
10
  "Peek-a-Blue",
11
11
  "Apple-a-Day",
12
- "Banan-appeal",
13
12
  "Fly-by-Night",
14
13
  "Down-to-Earth",
15
14
  "Iron-ic",