Skip to content

Commit a596c3e

Browse files
lounsbroughCopilot
andauthored
Remove iteration (#60)
## Describe your changes Get iteration reduced as much as possible ## Issue ticket number and link #2 ## Checklist before requesting a review - [x] I have performed a self-review of my code - [x] If it is a core feature, I have added thorough tests. --------- Co-authored-by: Copilot <[email protected]>
1 parent 287b28f commit a596c3e

File tree

7 files changed

+2438
-2452
lines changed

7 files changed

+2438
-2452
lines changed

cypress/support/commands.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
/// <reference types="cypress" />
22

3-
import { colord } from 'colord'
3+
import { colord, extend as extendColord } from 'colord'
4+
import colordLabPlugin from 'colord/plugins/lab'
5+
6+
extendColord([colordLabPlugin])
47

58
const expectColorsToMatch = (color1: string | undefined, color2: string | undefined) => {
69
expect(Boolean(color1), 'expected both color to be defined or undefined').to.equal(Boolean(color2))
710
if (color1 && color2) {
8-
expect(colord(color1).toHex()).to.be.equal(colord(color2).toHex())
11+
const delta = 0.005
12+
if (colord(color1).delta(colord(color2)) > delta) {
13+
throw new Error(`expected colors to match: ${color1} vs ${color2} (allowed delta: ${delta})`)
14+
}
915
}
1016
}
1117

demo/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.14.0",
7-
"@emotion/styled": "^11.14.0",
8-
"@mui/icons-material": "^6.3.0",
9-
"@mui/material": "^6.3.0",
7+
"@emotion/styled": "^11.14.1",
8+
"@mui/icons-material": "^7.1.2",
9+
"@mui/material": "^7.1.2",
1010
"@testing-library/jest-dom": "^6.6.3",
11-
"@testing-library/react": "^16.1.0",
12-
"@testing-library/user-event": "^14.5.2",
13-
"@types/jest": "^29.5.14",
14-
"@types/node": "^22.10.3",
15-
"@types/react": "^19.0.2",
16-
"@types/react-dom": "^19.0.2",
11+
"@testing-library/react": "^16.3.0",
12+
"@testing-library/user-event": "^14.6.1",
13+
"@types/jest": "^30.0.0",
14+
"@types/node": "^24.0.6",
15+
"@types/react": "^19.1.8",
16+
"@types/react-dom": "^19.1.6",
1717
"@types/react-helmet": "^6.1.11",
18-
"react": "^19.0.0",
18+
"react": "^19.1.0",
1919
"react-color-a11y": "workspace:*",
2020
"react-colorful": "^5.6.1",
21-
"react-dom": "^19.0.0",
21+
"react-dom": "^19.1.0",
2222
"react-helmet-async": "^2.0.5",
2323
"react-scripts": "5.0.1",
24-
"typescript": "^5.7.2",
25-
"web-vitals": "^4.2.4"
24+
"typescript": "^5.8.3",
25+
"web-vitals": "^5.0.3"
2626
},
2727
"scripts": {
2828
"start": "DISABLE_ESLINT_PLUGIN=true react-scripts start",

demo/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Typography,
66
Slider,
77
Switch,
8-
Grid2 as Grid
8+
Grid
99
} from '@mui/material'
1010
import { HexColorPicker, HexColorInput } from 'react-colorful'
1111
import SettingsBox from './SettingsBox'

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,26 @@
4545
"react-dom": ">=17.0.0"
4646
},
4747
"devDependencies": {
48-
"@eslint/js": "^9.17.0",
49-
"@rollup/plugin-commonjs": "^28.0.2",
50-
"@rollup/plugin-node-resolve": "^16.0.0",
51-
"@types/node": "^22.10.3",
52-
"@types/react": "^19.0.2",
53-
"@types/react-dom": "^19.0.2",
54-
"@typescript-eslint/eslint-plugin": "^8.19.0",
55-
"cypress": "^14.0.1",
56-
"eslint": "^9.17.0",
57-
"gh-pages": "^6.2.0",
58-
"postcss": "^8.4.49",
59-
"react": "^19.0.0",
60-
"react-dom": "^19.0.0",
61-
"rollup": "^4.29.1",
48+
"@eslint/js": "^9.29.0",
49+
"@rollup/plugin-commonjs": "^28.0.6",
50+
"@rollup/plugin-node-resolve": "^16.0.1",
51+
"@types/node": "^24.0.4",
52+
"@types/react": "^19.1.8",
53+
"@types/react-dom": "^19.1.6",
54+
"@typescript-eslint/eslint-plugin": "^8.35.0",
55+
"cypress": "^14.5.0",
56+
"eslint": "^9.29.0",
57+
"gh-pages": "^6.3.0",
58+
"postcss": "^8.5.6",
59+
"react": "^19.1.0",
60+
"react-dom": "^19.1.0",
61+
"rollup": "^4.44.1",
6262
"rollup-plugin-peer-deps-external": "^2.2.4",
6363
"rollup-plugin-typescript2": "^0.36.0",
64-
"ts-loader": "^9.5.1",
64+
"ts-loader": "^9.5.2",
6565
"ts-node": "^10.9.2",
66-
"typescript": "^5.7.2",
67-
"typescript-eslint": "^8.18.2",
68-
"webpack": "^5.97.1"
66+
"typescript": "^5.8.3",
67+
"typescript-eslint": "^8.35.0",
68+
"webpack": "^5.99.9"
6969
}
7070
}

0 commit comments

Comments
 (0)