Skip to content

Commit 16193cc

Browse files
authored
Update devDependencies for React 19, display React version in demo (#383)
I don't suspect any problems but with a major version bump, wanted to make it clearer to people what React version they were seeing in the demo, in case of bug reports.
1 parent 858d283 commit 16193cc

File tree

4 files changed

+62
-58
lines changed

4 files changed

+62
-58
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
react_version:
33-
- '18'
33+
- '19'
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: pnpm/action-setup@v4

Diff for: examples/demo.tsx

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
import React, {useState, StrictMode, useCallback, useEffect} from 'react';
1+
import React, {
2+
useState,
3+
StrictMode,
4+
useCallback,
5+
useEffect,
6+
version as reactVersion,
7+
} from 'react';
28
import {createRoot} from 'react-dom/client';
9+
import {version as reactDOMVersion} from 'react-dom';
310
import {version} from '../package.json';
411
import {FullDemo} from './full';
512
import {DownloadDemo} from './download';
@@ -73,6 +80,12 @@ function Demo() {
7380
</a>
7481
</h1>
7582
</div>
83+
<div className="container">
84+
<p>
85+
Using <code>react@{reactVersion}</code> &{' '}
86+
<code>react-dom@{reactDOMVersion}</code>
87+
</p>
88+
</div>
7689
<div className="container">
7790
<label>
7891
<select

Diff for: package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
"@jest/globals": "^29.5.0",
5353
"@testing-library/dom": "^10.4.0",
5454
"@testing-library/jest-dom": "^6.4.8",
55-
"@testing-library/react": "^16.0.0",
55+
"@testing-library/react": "^16.1.0",
5656
"@types/node": "^20.4.10",
57-
"@types/react": "^18.0.8",
58-
"@types/react-dom": "^18.0.3",
57+
"@types/react": "^19.0.1",
58+
"@types/react-dom": "^19.0.2",
5959
"@typescript-eslint/eslint-plugin": "^6.3.0",
6060
"@typescript-eslint/parser": "^6.3.0",
6161
"eslint": "^8.6.0",
@@ -68,8 +68,8 @@
6868
"jest": "^29.2.2",
6969
"jest-environment-jsdom": "^29.7.0",
7070
"prettier": "^3.0.1",
71-
"react": "^18.0.0",
72-
"react-dom": "^18.0.0",
71+
"react": "^19.0.0",
72+
"react-dom": "^19.0.0",
7373
"ts-jest": "^29.1.0",
7474
"tsup": "^8.0.2",
7575
"typescript": "^5.0.4"

Diff for: pnpm-lock.yaml

+42-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)