Skip to content

Commit 4d97dad

Browse files
authored
Merge pull request #7 from matteotrapani/feat/react-19-upgrade
upgraded dependency to also support React 19 closes issue #4
2 parents 76705ba + eb29d14 commit 4d97dad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"lint:fix": "eslint --fix"
4646
},
4747
"peerDependencies": {
48-
"react": "^18.0.0"
48+
"react": ">=18.0.0"
4949
},
5050
"dependencies": {
5151
"json-diff-kit": "^1.0.32",
@@ -68,15 +68,15 @@
6868
"@storybook/react": "8.6.0-alpha.0",
6969
"@storybook/react-vite": "8.6.0-alpha.0",
7070
"@types/node": "^22.14.1",
71-
"@types/react": "^18.2.15",
71+
"@types/react": ">=18.0.0",
7272
"@types/react-window": "^1.8.8",
7373
"eslint": "^9.33.0",
7474
"eslint-plugin-format": "^1.0.1",
7575
"eslint-plugin-react-hooks": "^5.2.0",
7676
"eslint-plugin-react-refresh": "^0.4.20",
7777
"lint-staged": "^16.1.5",
7878
"postcss": "^8.5.1",
79-
"react": "^18.2.0",
79+
"react": ">=18.0.0",
8080
"rollup": "^3.26.3",
8181
"rollup-plugin-dts": "^5.3.0",
8282
"rollup-plugin-peer-deps-external": "^2.2.4",

src/components/DiffViewer/components/VirtualizedDiffViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const VirtualizedDiffViewer: React.FC<VirtualizedDiffViewerProps> = ({
7878
miniMapWidth,
7979
}) => {
8080
const listRef = useRef<List>(null);
81-
const searchTimeoutRef = useRef<NodeJS.Timeout>();
81+
const searchTimeoutRef = useRef<NodeJS.Timeout | undefined>(undefined);
8282
const [scrollTop, setScrollTop] = useState(0);
8383

8484
const [segments, setSegments] = useState<SegmentItem[]>([]);

0 commit comments

Comments
 (0)