Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 293bb9f

Browse files
authoredNov 30, 2022
Merge pull request #34 from jaytarr/react-v17-support
Add support for React v17
2 parents 73cd7d2 + a5c6cc7 commit 293bb9f

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed
 

‎dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-recaptcha-v3",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "This library helps to integrate google recaptcha into your react project easily. ",
55
"keywords": [
66
"react",
@@ -31,8 +31,8 @@
3131
},
3232
"homepage": "https://github.com/codeep/react-recaptcha-v3#readme",
3333
"peerDependencies": {
34-
"react": "^15.6.2 || ^16.x",
35-
"prop-types": "^15.6.2"
34+
"prop-types": "^15.6.2",
35+
"react": "^15.6.2 || ^16.x || ^17.x"
3636
},
3737
"devDependencies": {
3838
"@babel/core": "^7.1.6",
@@ -70,12 +70,11 @@
7070
"eslint-plugin-react-perf": "2.0.9",
7171
"eslint-plugin-standard": "4.0.0",
7272
"prop-types": "^15.6.2",
73-
"react": "^15.6.2 || ^16.x",
73+
"react": "^15.6.2 || ^16.x || v17.x",
7474
"terser-webpack-plugin": "^3.0.4",
7575
"webpack": "^4.26.0",
7676
"webpack-bundle-analyzer": "^3.0.3",
7777
"webpack-cli": "^3.1.2"
7878
},
79-
"dependencies": {},
8079
"sideEffects": false
8180
}

‎src/ReCaptcha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ReCaptcha extends Component {
3333
if (this.state.ready) {
3434
this.execute()
3535
} else {
36-
readyCheck = setInterval(this._updateReadyState, 1000);
36+
readyCheck = setInterval(this._updateReadyState, 1000)
3737
}
3838
}
3939

‎webpack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path')
22
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
3-
const TerserPlugin = require('terser-webpack-plugin');
3+
const TerserPlugin = require('terser-webpack-plugin')
44
const pkg = require('./package.json')
55
const isProd = process.env.NODE_ENV === 'production'
66

@@ -59,5 +59,3 @@ module.exports = {
5959
}
6060
}
6161
}
62-
63-

0 commit comments

Comments
 (0)
Please sign in to comment.