From a2e3f60c5fc911f32f6a2e7576950a24df81c499 Mon Sep 17 00:00:00 2001 From: Austin McGee <947888+amcgee@users.noreply.github.com> Date: Wed, 12 Feb 2020 15:39:48 +0100 Subject: [PATCH] fix: correctly specify runtime and peer dependencieis (#662) BREAKING CHANGE: The Data Visualizer Plugin now requires react and react-dom to be provided by the consumer. --- packages/app/package.json | 4 +--- packages/plugin/package.json | 4 +++- yarn.lock | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/app/package.json b/packages/app/package.json index ddaea3a1f7..e57a093cb1 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -30,9 +30,7 @@ "redux-logger": "^3.0.6", "redux-thunk": "^2.2.0", "reselect": "^4.0.0", - "whatwg-fetch": "^3.0.0" - }, - "peerDependencies": { + "whatwg-fetch": "^3.0.0", "@dhis2/app-runtime": "*", "@dhis2/d2-i18n": "*", "@dhis2/ui-core": "*", diff --git a/packages/plugin/package.json b/packages/plugin/package.json index fad4f1ade5..2f99d021e5 100644 --- a/packages/plugin/package.json +++ b/packages/plugin/package.json @@ -13,7 +13,9 @@ "@dhis2/analytics": "^3.2.0", "@material-ui/core": "^3.1.2", "d2-analysis": "33.2.11", - "lodash-es": "^4.17.11", + "lodash-es": "^4.17.11" + }, + "peerDependencies": { "react": "^16.8", "react-dom": "^16.8" }, diff --git a/yarn.lock b/yarn.lock index 90817b7c82..73e9b28f00 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1456,7 +1456,7 @@ "@dhis2/ui-widgets" "^2.0.4" moment "^2.24.0" -"@dhis2/app-runtime@^2.0.4": +"@dhis2/app-runtime@*", "@dhis2/app-runtime@^2.0.4": version "2.0.4" resolved "https://registry.yarnpkg.com/@dhis2/app-runtime/-/app-runtime-2.0.4.tgz#9ae202fef3313094aef33a3e38d2c6c5d799c808" integrity sha512-w5+C/fHSsuF0am5Tpvz53+tigEZzfz9ahkjXH3BiWxGVxwZGtdHjWfso1T5bJRiKhDTgf76TxIsQiC11W20WyA== @@ -1577,18 +1577,18 @@ moment "^2.22.1" rimraf "^2.6.2" -"@dhis2/d2-i18n@^1.0.3", "@dhis2/d2-i18n@^1.0.4": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@dhis2/d2-i18n/-/d2-i18n-1.0.5.tgz#9148af1bc95e9442bcae66136b8f80146406a43f" - integrity sha512-nz1JtDLNn6hOoSg84C1iYRBr11O/ljMdczEqq0/j/gQy9wRs80Z7lExwItclHgS7t6ESWCa6+OFkwgRCOKF2ew== +"@dhis2/d2-i18n@*", "@dhis2/d2-i18n@^1.0.5", "@dhis2/d2-i18n@^1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@dhis2/d2-i18n/-/d2-i18n-1.0.6.tgz#2914be8acf296f3a6bf7b51c76c46da6a120b0ff" + integrity sha512-7YdA4ppFosjuyf7ZMm47BrdsA5TWLM9lmS0lUPgjcCVeeWfUgagqzf4W5JGB9XQ3w1vzK+yy5zH2Ij8IgRAGhA== dependencies: i18next "^10.3" moment "^2.24.0" -"@dhis2/d2-i18n@^1.0.5", "@dhis2/d2-i18n@^1.0.6": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@dhis2/d2-i18n/-/d2-i18n-1.0.6.tgz#2914be8acf296f3a6bf7b51c76c46da6a120b0ff" - integrity sha512-7YdA4ppFosjuyf7ZMm47BrdsA5TWLM9lmS0lUPgjcCVeeWfUgagqzf4W5JGB9XQ3w1vzK+yy5zH2Ij8IgRAGhA== +"@dhis2/d2-i18n@^1.0.3", "@dhis2/d2-i18n@^1.0.4": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@dhis2/d2-i18n/-/d2-i18n-1.0.5.tgz#9148af1bc95e9442bcae66136b8f80146406a43f" + integrity sha512-nz1JtDLNn6hOoSg84C1iYRBr11O/ljMdczEqq0/j/gQy9wRs80Z7lExwItclHgS7t6ESWCa6+OFkwgRCOKF2ew== dependencies: i18next "^10.3" moment "^2.24.0" @@ -1758,7 +1758,7 @@ dependencies: prop-types "^15" -"@dhis2/ui-core@^4.1.1": +"@dhis2/ui-core@*", "@dhis2/ui-core@^4.1.1": version "4.9.0" resolved "https://registry.yarnpkg.com/@dhis2/ui-core/-/ui-core-4.9.0.tgz#d2af15cee87a7873741e8698ac2923c423f671c1" integrity sha512-9Cf7Tv4JQ+2TX9CCoy3xGMn0P5FWvA1KNx9qzWFccHorEwlvbDYUbeAJaZ2LMnHUBeS5llmBbDByYzAH4K5SmA==