From a51cedc5c96eccd6bf766996bbd50f07b83b1f8b Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 8 Apr 2020 13:06:11 -0400 Subject: [PATCH 1/4] Make peerDependency ranges more strict --- packages/enzyme-matchers/package.json | 2 +- packages/jasmine-enzyme/package.json | 3 ++- packages/jest-environment-enzyme/package.json | 11 +++++++---- packages/jest-enzyme/package.json | 8 +++++--- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/packages/enzyme-matchers/package.json b/packages/enzyme-matchers/package.json index 0616fde..14ac7eb 100644 --- a/packages/enzyme-matchers/package.json +++ b/packages/enzyme-matchers/package.json @@ -28,7 +28,7 @@ "url": "https://github.com/FormidableLabs/enzyme-matchers/issues" }, "peerDependencies": { - "enzyme": ">=3.4.0" + "enzyme": "^3.4.0" }, "dependencies": { "circular-json-es6": "^2.0.1", diff --git a/packages/jasmine-enzyme/package.json b/packages/jasmine-enzyme/package.json index 53d74af..bac751e 100644 --- a/packages/jasmine-enzyme/package.json +++ b/packages/jasmine-enzyme/package.json @@ -44,7 +44,7 @@ "enzyme" ], "peerDependencies": { - "enzyme": ">=3.4.0" + "enzyme": "^3.4.0" }, "dependencies": { "enzyme-matchers": "^7.1.2" @@ -66,6 +66,7 @@ "verbose": true }, "devDependencies": { + "enzyme": "^3.4.0", "jasmine": "^2.8.0", "jest-environment-enzyme": "^7.1.2", "jest-enzyme": "^7.1.2", diff --git a/packages/jest-environment-enzyme/package.json b/packages/jest-environment-enzyme/package.json index 17cd44d..f273882 100644 --- a/packages/jest-environment-enzyme/package.json +++ b/packages/jest-environment-enzyme/package.json @@ -41,12 +41,15 @@ "url": "https://github.com/FormidableLabs/enzyme-matchers/issues" }, "peerDependencies": { - "enzyme": "3.x", - "jest": ">=22.0.0", - "react": "^0.13.0 || ^0.14.0 || ^15.0.0 || >=16.x" + "enzyme": "^3.4.0", + "jest": "^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0", + "react": "^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0" }, "devDependencies": { - "cpy-cli": "^2.0.0" + "cpy-cli": "^2.0.0", + "enzyme": "^3.4.0", + "jest": "^25.2.0", + "react": "^16.5.1" }, "dependencies": { "jest-environment-jsdom": "^25.2.0" diff --git a/packages/jest-enzyme/package.json b/packages/jest-enzyme/package.json index 722fc92..6699a08 100644 --- a/packages/jest-enzyme/package.json +++ b/packages/jest-enzyme/package.json @@ -46,8 +46,8 @@ "url": "https://github.com/FormidableLabs/enzyme-matchers/issues" }, "peerDependencies": { - "enzyme": ">=3.4.0", - "jest": ">=22.0.0" + "enzyme": "^3.4.0", + "jest": "^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0" }, "dependencies": { "enzyme-matchers": "^7.1.2", @@ -57,7 +57,9 @@ "devDependencies": { "@types/enzyme": "^3.1.11", "@types/react": "^16.0.10", - "cpy-cli": "^2.0.0" + "cpy-cli": "^2.0.0", + "enzyme": "^3.4.0", + "jest": "^25.2.0" }, "jest": { "transform": { From 5415ec6ef74b4c4b54530b5842dec293177f97f6 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 8 Apr 2020 13:25:44 -0400 Subject: [PATCH 2/4] Update packages/jest-environment-enzyme/package.json Co-Authored-By: Jordan Harband --- packages/jest-environment-enzyme/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-environment-enzyme/package.json b/packages/jest-environment-enzyme/package.json index f273882..41a6bba 100644 --- a/packages/jest-environment-enzyme/package.json +++ b/packages/jest-environment-enzyme/package.json @@ -48,8 +48,8 @@ "devDependencies": { "cpy-cli": "^2.0.0", "enzyme": "^3.4.0", - "jest": "^25.2.0", - "react": "^16.5.1" + "jest": "^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0", + "react": "^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "jest-environment-jsdom": "^25.2.0" From 089927ca8bacc28689b1864cb6ed86ca2c36ba21 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 8 Apr 2020 13:25:52 -0400 Subject: [PATCH 3/4] Update packages/jest-enzyme/package.json Co-Authored-By: Jordan Harband --- packages/jest-enzyme/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-enzyme/package.json b/packages/jest-enzyme/package.json index 6699a08..e39c961 100644 --- a/packages/jest-enzyme/package.json +++ b/packages/jest-enzyme/package.json @@ -59,7 +59,7 @@ "@types/react": "^16.0.10", "cpy-cli": "^2.0.0", "enzyme": "^3.4.0", - "jest": "^25.2.0" + "jest": "^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0" }, "jest": { "transform": { From 4a57c021ac509df8acbe7c73c67238490fd61caa Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 8 Apr 2020 13:29:51 -0400 Subject: [PATCH 4/4] Update yarn.lock --- yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn.lock b/yarn.lock index b28eea8..181d91d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5516,7 +5516,7 @@ jest-worker@^25.2.0: merge-stream "^2.0.0" supports-color "^7.0.0" -jest@^25.2.0: +"jest@^22.0.0 || ^23.0.0 || ^24.0.0 || ^25.0.0", jest@^25.2.0: version "25.2.0" resolved "https://registry.yarnpkg.com/jest/-/jest-25.2.0.tgz#d7b9b9ce7007002a9b4586da9bf0e0414a10a27d" integrity sha512-6vlNxNhkZZcFBpn6GkVHyEQZKE9zAsnYithlHAnkVLJYFdD6o4dV2S7uTFcxi6k9XEEN2ilVLuTe6PJ1qgbi4w== @@ -7408,7 +7408,7 @@ react-test-renderer@^16.0.0-0: object-assign "^4.1.1" prop-types "^15.6.0" -react@^16.5.1: +"react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0", react@^16.5.1: version "16.5.2" resolved "https://registry.yarnpkg.com/react/-/react-16.5.2.tgz#19f6b444ed139baa45609eee6dc3d318b3895d42" dependencies: