Skip to content

Commit

Permalink
Bump react peer dependency to 16.8 (#444)
Browse files Browse the repository at this point in the history
* Bump react peer dependency to 16.8

* Add migration guide

* Version bump: 4.0.0

Co-authored-by: Versionator <[email protected]>
  • Loading branch information
dpikt and lpluser authored Sep 21, 2020
1 parent d50df25 commit 0cbaabd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Documentation and usage info can be found in [docs.md](docs.md).

- [v2.0.0](migration-guides/v2.0.0.md)
- [v3.0.0](migration-guides/v3.0.0.md)
- [v4.0.0](migration-guides/v4.0.0.md)

## Contribution

Expand Down
9 changes: 9 additions & 0 deletions migration-guides/v4.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# v4.0.0 Migration Guide

The only breaking change in this version is that `React ^16.8.0` is now required to use this library. This enables components to be implemented using React hooks.

You can upgrade the React version in your project using yarn:

```sh
yarn upgrade [email protected]
```
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchpadlab/lp-components",
"version": "3.34.0",
"version": "4.0.0",
"engines": {
"node": "^8.0.0 || ^10.13.0 || ^12.0.0"
},
Expand Down Expand Up @@ -80,7 +80,7 @@
"jest": "^25.1.0",
"jest-canvas-mock": "^2.1.1",
"node-sass": "^4.11.0",
"react": "^16.4.1",
"react": "^16.8.0",
"react-dom": "^16.2.0",
"recompose": "^0.30.0",
"redux": "^4.0.0",
Expand All @@ -92,7 +92,7 @@
"documentation/chokidar": "^2.0.4"
},
"peerDependencies": {
"react": ">=15.5.0"
"react": "^16.8.0"
},
"husky": {
"pre-commit": "yarn run docs && git add docs.md"
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11076,7 +11076,16 @@ react-transition-group@^2.2.1:
prop-types "^15.6.2"
react-lifecycles-compat "^3.0.4"

react@^16.4.1, react@^16.8.3:
react@^16.8.0:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e"
integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"

react@^16.8.3:
version "16.11.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.11.0.tgz#d294545fe62299ccee83363599bf904e4a07fdbb"
integrity sha512-M5Y8yITaLmU0ynd0r1Yvfq98Rmll6q8AxaEe88c8e7LxO8fZ2cNgmFt0aGAS9wzf1Ao32NKXtCl+/tVVtkxq6g==
Expand Down

0 comments on commit 0cbaabd

Please sign in to comment.