File tree 4 files changed +13
-12
lines changed
4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 38
38
strategy :
39
39
matrix :
40
40
node-version : [16.x, 18.x, 20.x]
41
- react-version : [17.x, 18.x]
41
+ react-version : [17.x, 18.x, 19.x ]
42
42
include :
43
43
- node-version : 12.x
44
44
react-version : 16.0.0
@@ -53,10 +53,11 @@ jobs:
53
53
- name : Install dependencies
54
54
run : npm install
55
55
- name : Install React ${{matrix.react-version}}
56
- if : matrix.react-version != '18 .x'
56
+ if : matrix.react-version != '19 .x'
57
57
run : |
58
58
npm install --save-dev \
59
59
react@${{matrix.react-version}} \
60
- react-dom@${{matrix.react-version}}
60
+ react-dom@${{matrix.react-version}}\
61
+ @types/react@${{matrix.react-version}}
61
62
- name : Run tests
62
63
run : npm run tests-only
Original file line number Diff line number Diff line change 1
1
/* eslint-env browser */
2
2
import React from 'react' ;
3
- import ReactDOM from 'react-dom' ;
3
+ import ReactDOM from 'react-dom/client ' ;
4
4
import YouTube from '@u-wave/react-youtube' ; // eslint-disable-line import/no-unresolved
5
5
6
6
const {
@@ -128,5 +128,5 @@ function App() {
128
128
) ;
129
129
}
130
130
131
- // eslint-disable-next-line react/no-deprecated
132
- ReactDOM . render ( < App /> , document . getElementById ( 'example' ) ) ;
131
+ const root = ReactDOM . createRoot ( document . getElementById ( 'example' ) ) ;
132
+ root . render ( < App /> ) ;
Original file line number Diff line number Diff line change 11
11
"dependencies" : {
12
12
"@u-wave/react-youtube" : " file:.." ,
13
13
"esbuild" : " ^0.14.0" ,
14
- "react" : " ^18 .0.0" ,
15
- "react-dom" : " ^18 .0.0" ,
14
+ "react" : " ^19 .0.0" ,
15
+ "react-dom" : " ^19 .0.0" ,
16
16
"serve" : " ^13.0.0"
17
17
}
18
18
}
Original file line number Diff line number Diff line change 7
7
"url" : " https://github.com/u-wave/react-youtube/issues"
8
8
},
9
9
"dependencies" : {
10
- "@types/react" : " ^17.0.0" ,
10
+ "@types/react" : " ^17.0.0 || ^18.0.0 || ^19.0.0 " ,
11
11
"@types/youtube" : " 0.0.50" ,
12
12
"load-script2" : " ^1.0.1" ,
13
13
"prop-types" : " ^15.7.2"
33
33
"mocha" : " ^10.0.0" ,
34
34
"prop-types-table" : " ^1.0.0" ,
35
35
"proxyquire" : " ^2.1.3" ,
36
- "react" : " ^18 .0.0" ,
37
- "react-dom" : " ^18 .0.0" ,
36
+ "react" : " ^19 .0.0" ,
37
+ "react-dom" : " ^19 .0.0" ,
38
38
"rollup" : " ^2.0.2" ,
39
39
"tsd" : " ^0.31.0"
40
40
},
51
51
"module" : " dist/react-youtube.es.js" ,
52
52
"types" : " index.d.ts" ,
53
53
"peerDependencies" : {
54
- "react" : " ^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
54
+ "react" : " ^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 "
55
55
},
56
56
"repository" : {
57
57
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments