From 0cbaabd2485064a98d0734778ccca4609de4d569 Mon Sep 17 00:00:00 2001 From: David Pickart Date: Mon, 21 Sep 2020 14:20:39 -0500 Subject: [PATCH] Bump react peer dependency to 16.8 (#444) * Bump react peer dependency to 16.8 * Add migration guide * Version bump: 4.0.0 Co-authored-by: Versionator --- README.md | 1 + migration-guides/v4.0.0.md | 9 +++++++++ package.json | 6 +++--- yarn.lock | 11 ++++++++++- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 migration-guides/v4.0.0.md diff --git a/README.md b/README.md index 3a098e75..f8c0491b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/migration-guides/v4.0.0.md b/migration-guides/v4.0.0.md new file mode 100644 index 00000000..3e5235ed --- /dev/null +++ b/migration-guides/v4.0.0.md @@ -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 react@16.8.0 +``` diff --git a/package.json b/package.json index 75560948..da8c1866 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -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", @@ -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" diff --git a/yarn.lock b/yarn.lock index 02e11f37..31a17ecb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==