Skip to content

Commit

Permalink
fix(npm-packages): upgrade
Browse files Browse the repository at this point in the history
fix(reMount test): coverage

fix(npm-packages): upgrade examples

fix(npm-packages): upgrade

fix(npm-packages): upgrade

fix(npm-packages): upgrade
  • Loading branch information
AlexKarajohn committed Sep 18, 2022
1 parent 4a5883c commit 8b5291f
Show file tree
Hide file tree
Showing 22 changed files with 25,765 additions and 43,844 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Pull Requests that fail the automated checks, will not get code reviewed until a

### Development Prerequisites

1. [nodejs](https://nodejs.org/en/) 10.x.x LTS
1. [nodejs](https://nodejs.org/en/) 16.x.x LTS

### Development Setup

Expand Down
15,067 changes: 4,718 additions & 10,349 deletions dev/package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"license": "MIT",
"devDependencies": {
"@types/dotenv": "^8.2.0",
"dotenv": "^10.0.0",
"dotenv-webpack": "^7.0.3",
"eslint": "^7.30.0",
"html-webpack-plugin": "^5.3.2",
"dotenv": "^16.0.2",
"dotenv-webpack": "^8.0.1",
"eslint": "^8.23.1",
"html-webpack-plugin": "^5.5.0",
"html-webpack-template": "^6.2.0",
"prettier": "^2.3.2",
"ts-loader": "^9.2.3",
"typescript": "^4.3.5",
"webpack": "^5.43.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
"prettier": "^2.7.1",
"ts-loader": "^9.3.1",
"typescript": "^4.8.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.0"
},
"dependencies": {
"@types/react": "^17.0.13",
"@types/react-dom": "^17.0.8",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"prettier": {
"singleQuote": true,
Expand Down
6 changes: 4 additions & 2 deletions dev/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ module.exports = {
},
// @see https://webpack.js.org/configuration/dev-server
devServer: {
contentBase: path.join(__dirname, './'),
static: {
directory: path.join(__dirname, './')
},
compress: true,
port: 9000,
https: false,
Expand All @@ -34,7 +36,7 @@ module.exports = {
headers: {
'Access-Control-Allow-Origin': '*'
},
disableHostCheck: true
allowedHosts: "all",
},
module: {
rules: [
Expand Down
9 changes: 6 additions & 3 deletions examples/javascript/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { render } from 'react-dom';
import * as React from 'react';
import ReactDOM from "react-dom/client";
import {
EReCaptchaV2Size,
EReCaptchaV2Theme,
Expand Down Expand Up @@ -195,5 +195,8 @@ class App extends React.PureComponent {
}
}
}
const rootElement = document.getElementById("root");
if (!rootElement) throw new Error("Failed to find the root element");
const root = ReactDOM.createRoot(rootElement);
root.render(<App />);

render(<App />, document.getElementById('root'));

0 comments on commit 8b5291f

Please sign in to comment.