Skip to content

Commit

Permalink
Test against React 19.0.0 (#3662)
Browse files Browse the repository at this point in the history
* Test against React 19.0.0

* ignore buggy lint
  • Loading branch information
nstepien authored Dec 5, 2024
1 parent 4486223 commit c945bca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/patch-react19.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import fs from 'node:fs/promises';
const pkgText = await fs.readFile('./package.json', 'utf8');
const pkg = JSON.parse(pkgText);

pkg.devDependencies['@types/react'] = 'npm:types-react@rc';
pkg.devDependencies['@types/react-dom'] = 'npm:types-react-dom@rc';
pkg.devDependencies.react = 'rc';
pkg.devDependencies['react-dom'] = 'rc';
pkg.devDependencies['@types/react'] = '^19.0.0';
pkg.devDependencies['@types/react-dom'] = '^19.0.0';
pkg.devDependencies.react = '^19.0.0';
pkg.devDependencies['react-dom'] = '^19.0.0';
pkg.overrides = {
'@types/react': 'npm:types-react@rc',
'@types/react-dom': 'npm:types-react-dom@rc'
'@types/react': '^19.0.0',
'@types/react-dom': '^19.0.0'
};

fs.writeFile('./package.json', JSON.stringify(pkg, null, 2));
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@babel/runtime": "^7.26.0",
"@babel/traverse": "7.25.9",
"@biomejs/biome": "1.9.4",
"@eslint/compat": "^1.2.3",
"@faker-js/faker": "^9.0.0",
Expand Down
2 changes: 2 additions & 0 deletions src/HeaderRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ function HeaderRow<R, SR, K extends React.Key>({
shouldFocusGrid,
direction
}: HeaderRowProps<R, SR, K>) {
// eslint-disable-next-line react-compiler/react-compiler
// eslint-disable-next-line react-hooks/rules-of-hooks
const dragDropKey = useId();

const cells = [];
Expand Down

0 comments on commit c945bca

Please sign in to comment.