Skip to content

Commit eb11185

Browse files
Add support for React 18 (#246)
1 parent f5cbbe4 commit eb11185

File tree

3 files changed

+26
-29
lines changed

3 files changed

+26
-29
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ For the complete documentation, see the [React SDK Guide](https://cloudinary.com
2323
- Generate [image](https://cloudinary.com/documentation/react1_image_manipulation#deliver_and_transform_images) and [video](https://cloudinary.com/documentation/react1_video_manipulation#video_element) tags.
2424

2525
## Version Support
26-
| SDK Version | React 15.3 | React 16.2 | React 16.3 | React 17 |
27-
|---------------|------------|------------|------------|----------|
28-
| 1.6.8 & up | X | X | V | V |
29-
| 1.2.0 - 1.6.7 | X | X | V | X |
30-
| 1.0.5 - 1.1.4 | X | V | X | X |
31-
| 1.0.0 - 1.0.4 | V | X | X | X |
26+
| SDK Version | React 15.3 | React 16.2 | React 16.3 | React 17 | React 18 |
27+
|---------------|------------|------------|------------|----------|----------|
28+
| 1.6.8 & up | X | X | V | V | V |
29+
| 1.2.0 - 1.6.7 | X | X | V | X | X |
30+
| 1.0.5 - 1.1.4 | X | V | X | X | X |
31+
| 1.0.0 - 1.0.4 | V | X | X | X | X |
3232

3333
## Installation
3434
### Install using your favorite package manager (yarn, npm)

e2e-test/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"@testing-library/react": "^9.3.2",
88
"@testing-library/user-event": "^7.1.2",
99
"cloudinary-react": "file:cloudinary-react.tgz",
10-
"react": "^16.13.1",
11-
"react-dom": "^16.13.1",
10+
"react": "^18.0.0",
11+
"react-dom": "^18.0.0",
1212
"react-scripts": "3.4.1"
1313
},
1414
"scripts": {
@@ -36,7 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"cypress": "^4.9.0",
39-
"start-server-and-test": "^1.11.0",
40-
"typescript": "^3.7.2"
39+
"start-server-and-test": "^1.14.0",
40+
"typescript": "^3.9.10"
4141
}
4242
}

package.json

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,23 @@
3434
},
3535
"homepage": "https://github.com/cloudinary/cloudinary-react#readme",
3636
"devDependencies": {
37-
"@babel/cli": "^7.2.0",
38-
"@babel/core": "^7.2.2",
37+
"@babel/cli": "^7.17.6",
38+
"@babel/core": "^7.17.8",
3939
"@babel/eslint-parser": "^7.13.4",
40-
"@babel/plugin-proposal-class-properties": "^7.8.3",
41-
"@babel/plugin-proposal-export-default-from": "^7.2.0",
42-
"@babel/preset-env": "^7.2.0",
43-
"@babel/preset-react": "^7.0.0",
44-
"@babel/register": "^7.0.0",
40+
"@babel/plugin-proposal-class-properties": "^7.16.7",
41+
"@babel/plugin-proposal-export-default-from": "^7.16.7",
42+
"@babel/preset-env": "^7.16.11",
43+
"@babel/preset-react": "^7.16.7",
44+
"@babel/register": "^7.17.7",
4545
"@storybook/addon-essentials": "^6.1.20",
4646
"@storybook/react": "^6.1.20",
4747
"babel-eslint": "^10.1.0",
48-
"babel-loader": "^8.0.4",
49-
"babelify": "^10.0.0",
50-
"browserify": "^16.2.3",
51-
"browserify-shim": "^3.8.14",
52-
"bundlewatch": "^0.2.6",
48+
"babel-loader": "^8.2.4",
49+
"bundlewatch": "^0.3.3",
5350
"cpy-cli": "^3.1.1",
5451
"del-cli": "^3.0.0",
5552
"enzyme": "^3.10.0",
56-
"enzyme-adapter-react-16": "^1.14.0",
53+
"enzyme-adapter-react-16": "^1.15.6",
5754
"eslint": "^7.20.0",
5855
"eslint-config-standard": "^14.1.0",
5956
"eslint-config-standard-react": "^9.2.0",
@@ -68,17 +65,17 @@
6865
"jest-enzyme": "^7.1.2",
6966
"jest-extended": "^0.11.5",
7067
"jsdom": "^11.12.0",
71-
"microbundle": "^0.13.0",
68+
"microbundle": "^0.13.3",
7269
"npm-run-all": "^4.1.5",
73-
"react": "^16.3.3",
74-
"react-dom": "^16.3.3"
70+
"react": "^16.14.0",
71+
"react-dom": "^16.14.0"
7572
},
7673
"dependencies": {
77-
"cloudinary-core": "^2.11.3",
78-
"prop-types": "^15.6.2"
74+
"cloudinary-core": "^2.12.3",
75+
"prop-types": "^15.8.1"
7976
},
8077
"peerDependencies": {
81-
"react": "^16.3.3 || ^17.0.0"
78+
"react": "^16.3.3 || ^17.0.0 || ^18.0.0"
8279
},
8380
"files": [
8481
"dist"

0 commit comments

Comments
 (0)