Skip to content

Commit

Permalink
React 16.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Feb 7, 2019
1 parent 14ceba0 commit 0fba9be
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"scripts": {
"clean": "rm -Rf target",
"prepare": "mkdir target && cp ./README.md ./source/README.md",
"prepare": "cp ./README.md ./source/README.md",
"patch": "cd patch && node build.js",
"build": "run-s clean prepare patch"
},
Expand All @@ -27,7 +27,7 @@
"homepage": "https://github.com/hot-loader/react-dom#readme",
"devDependencies": {
"npm-run-all": "^4.1.5",
"react-dom": "^16.7.0"
"react-dom": "^16.8.1"
},
"dependencies": {
"loose-envify": "^1.1.0",
Expand Down
6 changes: 5 additions & 1 deletion patch/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@ const copy = (source, target) => {

const stat = statSync(sourceFile);
if (stat.isDirectory()) {
mkdirSync(`${target}/${i}`);
try {
mkdirSync(`${target}/${i}`);
} catch (e) {
}
copy(sourceFile, targetFile)
} else {
copyFile(sourceFile, targetFile);
}
}
}

mkdirSync('../target');
copy('../node_modules/react-dom/', '../target');
copy('../source', '../node_modules/react-dom/', '../target');

Expand Down
2 changes: 1 addition & 1 deletion source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There are just 4 changed lines, see `patch.js` for details
```text
yarn add @hot-loader/react-dom@YOUR_REACT_VERSION
```
> Right now only 16.7.0-alpha.2 version is available
> Right now only 16.7.0+ versions are available
## Rewire
To use this version of React-dom you have to rewire your application
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ prop-types@^15.6.2:
loose-envify "^1.3.1"
object-assign "^4.1.1"

react-dom@^16.7.0:
version "16.7.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.7.0.tgz#a17b2a7ca89ee7390bc1ed5eb81783c7461748b8"
integrity sha512-D0Ufv1ExCAmF38P2Uh1lwpminZFRXEINJe53zRAbm4KPwSyd6DY/uDoS0Blj9jvPpn1+wivKpZYc8aAAN/nAkg==
react-dom@^16.8.1:
version "16.8.1"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.1.tgz#ec860f98853d09d39bafd3a6f1e12389d283dbb4"
integrity sha512-N74IZUrPt6UiDjXaO7UbDDFXeUXnVhZzeRLy/6iqqN1ipfjrhR60Bp5NuBK+rv3GMdqdIuwIl22u1SYwf330bg==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
scheduler "^0.12.0"
scheduler "^0.13.1"

read-pkg@^3.0.0:
version "3.0.0"
Expand All @@ -332,14 +332,6 @@ read-pkg@^3.0.0:
normalize-package-data "^2.3.2"
path-type "^3.0.0"

scheduler@^0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.12.0.tgz#8ab17699939c0aedc5a196a657743c496538647b"
integrity sha512-t7MBR28Akcp4Jm+QoR63XgAi9YgCUmgvDHqf5otgAj4QvdoBE4ImCX0ffehefePPG+aitiYHp0g/mW6s4Tp+dw==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

scheduler@^0.12.0-alpha.2:
version "0.12.0-alpha.2"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.12.0-alpha.2.tgz#2a8bc8dc6ecdb75fa6480ceeedc1f187c9539970"
Expand All @@ -348,6 +340,14 @@ scheduler@^0.12.0-alpha.2:
loose-envify "^1.1.0"
object-assign "^4.1.1"

scheduler@^0.13.1:
version "0.13.1"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.1.tgz#1a217df1bfaabaf4f1b92a9127d5d732d85a9591"
integrity sha512-VJKOkiKIN2/6NOoexuypwSrybx13MY7NSy9RNt8wPvZDMRT1CW6qlpF5jXRToXNHz3uWzbm2elNpZfXfGPqP9A==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

"semver@2 || 3 || 4 || 5", semver@^5.5.0:
version "5.6.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004"
Expand Down

0 comments on commit 0fba9be

Please sign in to comment.