color-name-list 13.19.3 → 13.20.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 (42) hide show
  1. package/.github/workflows/build-and-release.yml +1 -0
  2. package/CONTRIBUTING.md +1 -0
  3. package/changes.svg +3 -3
  4. package/dist/colornames.bestof.csv +1 -0
  5. package/dist/colornames.bestof.esm.js +1 -1
  6. package/dist/colornames.bestof.esm.mjs +1 -1
  7. package/dist/colornames.bestof.html +1 -1
  8. package/dist/colornames.bestof.json +1 -1
  9. package/dist/colornames.bestof.min.json +1 -1
  10. package/dist/colornames.bestof.scss +1 -1
  11. package/dist/colornames.bestof.toon +1 -0
  12. package/dist/colornames.bestof.umd.js +1 -1
  13. package/dist/colornames.bestof.xml +4 -0
  14. package/dist/colornames.bestof.yaml +3 -0
  15. package/dist/colornames.csv +3 -3
  16. package/dist/colornames.esm.js +1 -1
  17. package/dist/colornames.esm.mjs +1 -1
  18. package/dist/colornames.html +1 -1
  19. package/dist/colornames.json +1 -1
  20. package/dist/colornames.min.json +1 -1
  21. package/dist/colornames.scss +1 -1
  22. package/dist/colornames.short.csv +1 -0
  23. package/dist/colornames.short.esm.js +1 -1
  24. package/dist/colornames.short.esm.mjs +1 -1
  25. package/dist/colornames.short.html +1 -1
  26. package/dist/colornames.short.json +1 -1
  27. package/dist/colornames.short.min.json +1 -1
  28. package/dist/colornames.short.scss +1 -1
  29. package/dist/colornames.short.toon +1 -0
  30. package/dist/colornames.short.umd.js +1 -1
  31. package/dist/colornames.short.xml +4 -0
  32. package/dist/colornames.short.yaml +3 -0
  33. package/dist/colornames.toon +3 -3
  34. package/dist/colornames.umd.js +1 -1
  35. package/dist/colornames.xml +12 -12
  36. package/dist/colornames.yaml +9 -9
  37. package/dist/history.json +1 -1
  38. package/package.json +1 -1
  39. package/src/colornames.csv +4 -4
  40. package/tests/allowlists.test.js +76 -0
  41. package/tests/duplicate-allowlist.json +1 -2
  42. 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.20.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,
@@ -29989,4 +29989,4 @@ Zumthor,#cdd5d5,
29989
29989
  Zunda Green,#6bc026,x
29990
29990
  Zuni,#008996,
29991
29991
  Zürich Blue,#248bcc,
29992
- Zürich White,#e6e1d9,
29992
+ 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",