From 9340e51ce85f9bd8fd8be8b8abc552ff6e5e8006 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Fri, 13 Nov 2020 09:41:54 +0100 Subject: [PATCH] Declare singleton-ish packages as peer dependencies --- packages/a11y/package.json | 6 ++-- packages/annotations/package.json | 10 ++++--- packages/api-fetch/package.json | 4 ++- packages/block-directory/package.json | 19 +++++++------ packages/block-editor/package.json | 18 ++++++------ packages/block-library/package.json | 24 ++++++++-------- packages/blocks/package.json | 8 ++++-- packages/components/package.json | 9 ++++-- packages/core-data/package.json | 8 ++++-- packages/data-controls/package.json | 4 ++- .../package.json | 4 ++- packages/deprecated/package.json | 6 ++-- packages/edit-navigation/package.json | 18 ++++++------ packages/edit-post/package.json | 28 ++++++++++--------- packages/edit-site/package.json | 24 ++++++++-------- packages/edit-widgets/package.json | 24 ++++++++-------- packages/editor/package.json | 24 ++++++++-------- packages/format-library/package.json | 10 ++++--- packages/interface/package.json | 8 ++++-- packages/keyboard-shortcuts/package.json | 4 ++- packages/keycodes/package.json | 4 ++- packages/list-reusable-blocks/package.json | 4 ++- packages/media-utils/package.json | 4 ++- packages/notices/package.json | 4 ++- packages/nux/package.json | 6 ++-- packages/plugins/package.json | 4 ++- packages/react-native-editor/package.json | 12 ++++---- packages/reusable-blocks/package.json | 14 ++++++---- packages/rich-text/package.json | 4 ++- packages/server-side-render/package.json | 7 +++-- packages/viewport/package.json | 4 ++- 31 files changed, 196 insertions(+), 131 deletions(-) diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 4d4be5cdbfa660..ed3bf6526faad7 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -26,8 +26,10 @@ "types": "build-types", "dependencies": { "@babel/runtime": "^7.11.2", - "@wordpress/dom-ready": "file:../dom-ready", - "@wordpress/i18n": "file:../i18n" + "@wordpress/dom-ready": "file:../dom-ready" + }, + "peerDependencies": { + "@wordpress/i18n": "^3.16.0" }, "publishConfig": { "access": "public" diff --git a/packages/annotations/package.json b/packages/annotations/package.json index 956f3e3a4b5992..21bc9dc641c94b 100644 --- a/packages/annotations/package.json +++ b/packages/annotations/package.json @@ -23,14 +23,16 @@ "react-native": "src/index", "dependencies": { "@babel/runtime": "^7.11.2", - "@wordpress/data": "file:../data", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", - "@wordpress/rich-text": "file:../rich-text", "lodash": "^4.17.19", "rememo": "^3.0.0", "uuid": "^8.3.0" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/rich-text": "^3.23.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json index 8f5225db3178bb..1a74623bdb1052 100644 --- a/packages/api-fetch/package.json +++ b/packages/api-fetch/package.json @@ -24,9 +24,11 @@ "react-native": "src/index", "dependencies": { "@babel/runtime": "^7.11.2", - "@wordpress/i18n": "file:../i18n", "@wordpress/url": "file:../url" }, + "peerDependencies": { + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/block-directory/package.json b/packages/block-directory/package.json index dbd6182594eb45..d8169c78135486 100644 --- a/packages/block-directory/package.json +++ b/packages/block-directory/package.json @@ -25,23 +25,26 @@ "@babel/runtime": "^7.11.2", "@wordpress/a11y": "file:../a11y", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/data-controls": "file:../data-controls", - "@wordpress/edit-post": "file:../edit-post", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", "@wordpress/html-entities": "file:../html-entities", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/notices": "file:../notices", - "@wordpress/plugins": "file:../plugins", "@wordpress/url": "file:../url", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/edit-post": "^3.25.2", + "@wordpress/editor": "^9.24.2", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/plugins": "^2.23.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index 7fc434dc3e5650..46b687d23908a3 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -31,26 +31,18 @@ "@babel/runtime": "^7.11.2", "@wordpress/a11y": "file:../a11y", "@wordpress/blob": "file:../blob", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated", "@wordpress/dom": "file:../dom", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", "@wordpress/html-entities": "file:../html-entities", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "@wordpress/is-shallow-equal": "file:../is-shallow-equal", - "@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts", "@wordpress/keycodes": "file:../keycodes", - "@wordpress/notices": "file:../notices", - "@wordpress/rich-text": "file:../rich-text", "@wordpress/shortcode": "file:../shortcode", "@wordpress/token-list": "file:../token-list", "@wordpress/url": "file:../url", - "@wordpress/viewport": "file:../viewport", "@wordpress/warning": "file:../warning", "@wordpress/wordcount": "file:../wordcount", "classnames": "^2.2.5", @@ -70,6 +62,16 @@ "tinycolor2": "^1.4.1", "traverse": "^0.6.6" }, + "peerDependencies": { + "@wordpress/blocks": "^6.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/keyboard-shortcuts": "^1.12.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/rich-text": "^3.23.0", + "@wordpress/viewport": "^2.24.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/block-library/package.json b/packages/block-library/package.json index 42adc1e8f4ba4b..216d8e947e74ca 100644 --- a/packages/block-library/package.json +++ b/packages/block-library/package.json @@ -31,30 +31,19 @@ "@wordpress/api-fetch": "file:../api-fetch", "@wordpress/autop": "file:../autop", "@wordpress/blob": "file:../blob", - "@wordpress/block-editor": "file:../block-editor", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", "@wordpress/date": "file:../date", "@wordpress/deprecated": "file:../deprecated", "@wordpress/dom": "file:../dom", - "@wordpress/editor": "file:../editor", "@wordpress/element": "file:../element", "@wordpress/escape-html": "file:../escape-html", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "@wordpress/is-shallow-equal": "file:../is-shallow-equal", "@wordpress/keycodes": "file:../keycodes", - "@wordpress/notices": "file:../notices", "@wordpress/primitives": "file:../primitives", - "@wordpress/reusable-blocks": "file:../reusable-blocks", - "@wordpress/rich-text": "file:../rich-text", "@wordpress/server-side-render": "file:../server-side-render", "@wordpress/url": "file:../url", - "@wordpress/viewport": "file:../viewport", "classnames": "^2.2.5", "fast-average-color": "4.3.0", "lodash": "^4.17.19", @@ -64,6 +53,19 @@ "reakit": "1.1.0", "tinycolor2": "^1.4.1" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/editor": "^9.24.2", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/reusable-blocks": "^1.0.2", + "@wordpress/rich-text": "^3.23.0", + "@wordpress/viewport": "^2.24.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/blocks/package.json b/packages/blocks/package.json index 22a7807f46ec92..a35cf24bd5699a 100644 --- a/packages/blocks/package.json +++ b/packages/blocks/package.json @@ -30,13 +30,10 @@ "@wordpress/blob": "file:../blob", "@wordpress/block-serialization-default-parser": "file:../block-serialization-default-parser", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated", "@wordpress/dom": "file:../dom", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", "@wordpress/html-entities": "file:../html-entities", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "@wordpress/is-shallow-equal": "file:../is-shallow-equal", "@wordpress/shortcode": "file:../shortcode", @@ -48,6 +45,11 @@ "tinycolor2": "^1.4.1", "uuid": "^8.3.0" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/components/package.json b/packages/components/package.json index 02feffdfebe8b0..9b17986199f06a 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -37,13 +37,10 @@ "@wordpress/deprecated": "file:../deprecated", "@wordpress/dom": "file:../dom", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "@wordpress/is-shallow-equal": "file:../is-shallow-equal", "@wordpress/keycodes": "file:../keycodes", "@wordpress/primitives": "file:../primitives", - "@wordpress/rich-text": "file:../rich-text", "@wordpress/warning": "file:../warning", "classnames": "^2.2.5", "dom-scroll-into-view": "^1.2.1", @@ -63,6 +60,12 @@ "tinycolor2": "^1.4.1", "uuid": "^8.3.0" }, + "peerDependencies": { + "@wordpress/blocks": "^6.24.1", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/rich-text": "^3.23.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/core-data/package.json b/packages/core-data/package.json index 47ddfbab6de835..4c9da4c23ba21b 100644 --- a/packages/core-data/package.json +++ b/packages/core-data/package.json @@ -28,12 +28,9 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/blocks": "file:../blocks", - "@wordpress/data": "file:../data", "@wordpress/data-controls": "file:../data-controls", "@wordpress/deprecated": "file:../deprecated", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "@wordpress/is-shallow-equal": "file:../is-shallow-equal", "@wordpress/url": "file:../url", "equivalent-key-map": "^0.2.2", @@ -41,6 +38,11 @@ "rememo": "^3.0.0", "uuid": "^8.3.0" }, + "peerDependencies": { + "@wordpress/blocks": "^6.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/data-controls/package.json b/packages/data-controls/package.json index b659653c9537db..edc26dd8de151d 100644 --- a/packages/data-controls/package.json +++ b/packages/data-controls/package.json @@ -25,9 +25,11 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/dependency-extraction-webpack-plugin/package.json b/packages/dependency-extraction-webpack-plugin/package.json index c11ba4edd1aa99..52e33f7436fc50 100644 --- a/packages/dependency-extraction-webpack-plugin/package.json +++ b/packages/dependency-extraction-webpack-plugin/package.json @@ -27,9 +27,11 @@ "types": "build-types", "dependencies": { "json2php": "^0.0.4", - "webpack": "^4.8.3", "webpack-sources": "^1.3.0" }, + "peerDependencies": { + "webpack": "^4.8.3" + }, "publishConfig": { "access": "public" } diff --git a/packages/deprecated/package.json b/packages/deprecated/package.json index b6c895c48ebaae..b0bd3fcfe35cbb 100644 --- a/packages/deprecated/package.json +++ b/packages/deprecated/package.json @@ -23,8 +23,10 @@ "react-native": "src/index", "sideEffects": false, "dependencies": { - "@babel/runtime": "^7.11.2", - "@wordpress/hooks": "file:../hooks" + "@babel/runtime": "^7.11.2" + }, + "peerDependencies": { + "@wordpress/hooks": "^2.10.0" }, "publishConfig": { "access": "public" diff --git a/packages/edit-navigation/package.json b/packages/edit-navigation/package.json index 9ae48fcf31a722..500e02e5920431 100644 --- a/packages/edit-navigation/package.json +++ b/packages/edit-navigation/package.json @@ -26,29 +26,31 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", "@wordpress/block-library": "file:../block-library", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", "@wordpress/data-controls": "file:../data-controls", "@wordpress/dom-ready": "file:../dom-ready", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", "@wordpress/html-entities": "file:../html-entities", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts", "@wordpress/media-utils": "file:../media-utils", - "@wordpress/notices": "file:../notices", "@wordpress/url": "file:../url", "classnames": "^2.2.5", "lodash": "^4.17.19", "rememo": "^3.0.0", "uuid": "^8.3.0" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/keyboard-shortcuts": "^1.12.0", + "@wordpress/notices": "^2.11.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/edit-post/package.json b/packages/edit-post/package.json index 0b6da85948a958..a3347751758a3d 100644 --- a/packages/edit-post/package.json +++ b/packages/edit-post/package.json @@ -26,28 +26,15 @@ "@babel/runtime": "^7.11.2", "@wordpress/a11y": "file:../a11y", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", "@wordpress/block-library": "file:../block-library", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", - "@wordpress/editor": "file:../editor", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/interface": "file:../interface", - "@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts", "@wordpress/keycodes": "file:../keycodes", "@wordpress/media-utils": "file:../media-utils", - "@wordpress/notices": "file:../notices", - "@wordpress/plugins": "file:../plugins", "@wordpress/primitives": "file:../primitives", - "@wordpress/reusable-blocks": "file:../reusable-blocks", "@wordpress/url": "file:../url", - "@wordpress/viewport": "file:../viewport", "@wordpress/warning": "file:../warning", "classnames": "^2.2.5", "lodash": "^4.17.19", @@ -55,6 +42,21 @@ "refx": "^3.0.0", "rememo": "^3.0.0" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/editor": "^9.24.2", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/interface": "^0.10.2", + "@wordpress/keyboard-shortcuts": "^1.12.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/plugins": "^2.23.0", + "@wordpress/reusable-blocks": "^1.0.2", + "@wordpress/viewport": "^2.24.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/edit-site/package.json b/packages/edit-site/package.json index ae6511351f0562..cfb7e8b22d7176 100644 --- a/packages/edit-site/package.json +++ b/packages/edit-site/package.json @@ -26,25 +26,14 @@ "@babel/runtime": "^7.11.2", "@wordpress/a11y": "file:../a11y", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", "@wordpress/block-library": "file:../block-library", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", "@wordpress/data-controls": "file:../data-controls", - "@wordpress/editor": "file:../editor", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/interface": "file:../interface", - "@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts", "@wordpress/keycodes": "file:../keycodes", "@wordpress/media-utils": "file:../media-utils", - "@wordpress/notices": "file:../notices", - "@wordpress/plugins": "file:../plugins", "@wordpress/primitives": "file:../primitives", "@wordpress/url": "file:../url", "classnames": "^2.2.5", @@ -54,6 +43,19 @@ "lodash": "^4.17.19", "rememo": "^3.0.0" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/editor": "^9.24.2", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/interface": "^0.10.2", + "@wordpress/keyboard-shortcuts": "^1.12.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/plugins": "^2.23.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/edit-widgets/package.json b/packages/edit-widgets/package.json index 63686ea6bbfb06..56091be5bbd9a5 100644 --- a/packages/edit-widgets/package.json +++ b/packages/edit-widgets/package.json @@ -25,25 +25,14 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", "@wordpress/block-library": "file:../block-library", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", "@wordpress/data-controls": "file:../data-controls", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/interface": "file:../interface", - "@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts", "@wordpress/keycodes": "file:../keycodes", "@wordpress/media-utils": "file:../media-utils", - "@wordpress/notices": "file:../notices", - "@wordpress/plugins": "file:../plugins", - "@wordpress/reusable-blocks": "file:../reusable-blocks", "@wordpress/server-side-render": "file:../server-side-render", "@wordpress/url": "file:../url", "classnames": "^2.2.5", @@ -52,6 +41,19 @@ "rememo": "^3.0.0", "uuid": "^8.3.0" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/interface": "^0.10.2", + "@wordpress/keyboard-shortcuts": "^1.12.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/plugins": "^2.23.0", + "@wordpress/reusable-blocks": "^1.0.2" + }, "publishConfig": { "access": "public" } diff --git a/packages/editor/package.json b/packages/editor/package.json index e57318ca515d00..852708006b134e 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -31,30 +31,19 @@ "@wordpress/api-fetch": "file:../api-fetch", "@wordpress/autop": "file:../autop", "@wordpress/blob": "file:../blob", - "@wordpress/block-editor": "file:../block-editor", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", "@wordpress/data-controls": "file:../data-controls", "@wordpress/date": "file:../date", "@wordpress/deprecated": "file:../deprecated", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", "@wordpress/html-entities": "file:../html-entities", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "@wordpress/is-shallow-equal": "file:../is-shallow-equal", - "@wordpress/keyboard-shortcuts": "file:../keyboard-shortcuts", "@wordpress/keycodes": "file:../keycodes", "@wordpress/media-utils": "file:../media-utils", - "@wordpress/notices": "file:../notices", - "@wordpress/reusable-blocks": "file:../reusable-blocks", - "@wordpress/rich-text": "file:../rich-text", "@wordpress/server-side-render": "file:../server-side-render", "@wordpress/url": "file:../url", - "@wordpress/viewport": "file:../viewport", "@wordpress/wordcount": "file:../wordcount", "classnames": "^2.2.5", "lodash": "^4.17.19", @@ -64,6 +53,19 @@ "refx": "^3.0.0", "rememo": "^3.0.0" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/keyboard-shortcuts": "^1.12.0", + "@wordpress/notices": "^2.11.0", + "@wordpress/reusable-blocks": "^1.0.2", + "@wordpress/rich-text": "^3.23.0", + "@wordpress/viewport": "^2.24.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/format-library/package.json b/packages/format-library/package.json index 75572c2c1860d7..4365b4d4349aa8 100644 --- a/packages/format-library/package.json +++ b/packages/format-library/package.json @@ -24,20 +24,22 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/a11y": "file:../a11y", - "@wordpress/block-editor": "file:../block-editor", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/dom": "file:../dom", "@wordpress/element": "file:../element", "@wordpress/html-entities": "file:../html-entities", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "@wordpress/keycodes": "file:../keycodes", - "@wordpress/rich-text": "file:../rich-text", "@wordpress/url": "file:../url", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/data": "^4.25.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/rich-text": "^3.23.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/interface/package.json b/packages/interface/package.json index bc0dea1b155c34..c55e186a868dd5 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -30,15 +30,17 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/components": "file:../components", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/plugins": "file:../plugins", "classnames": "^2.2.5", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/plugins": "^2.23.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/keyboard-shortcuts/package.json b/packages/keyboard-shortcuts/package.json index 644ab39c616701..9c67ff9e00ea16 100644 --- a/packages/keyboard-shortcuts/package.json +++ b/packages/keyboard-shortcuts/package.json @@ -24,12 +24,14 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/element": "file:../element", "@wordpress/keycodes": "file:../keycodes", "lodash": "^4.17.19", "rememo": "^3.0.0" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/keycodes/package.json b/packages/keycodes/package.json index 536e77bd6d92b4..570d41d0b9d422 100644 --- a/packages/keycodes/package.json +++ b/packages/keycodes/package.json @@ -24,9 +24,11 @@ "sideEffects": false, "dependencies": { "@babel/runtime": "^7.11.2", - "@wordpress/i18n": "file:../i18n", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/list-reusable-blocks/package.json b/packages/list-reusable-blocks/package.json index 7e61f085427c85..6500b9f3575951 100644 --- a/packages/list-reusable-blocks/package.json +++ b/packages/list-reusable-blocks/package.json @@ -27,9 +27,11 @@ "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/media-utils/package.json b/packages/media-utils/package.json index 9cab8621a76926..84068261364611 100644 --- a/packages/media-utils/package.json +++ b/packages/media-utils/package.json @@ -26,9 +26,11 @@ "@wordpress/api-fetch": "file:../api-fetch", "@wordpress/blob": "file:../blob", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/notices/package.json b/packages/notices/package.json index 1fc7c40f86fc4e..30961999b6f0cc 100644 --- a/packages/notices/package.json +++ b/packages/notices/package.json @@ -24,9 +24,11 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/a11y": "file:../a11y", - "@wordpress/data": "file:../data", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/nux/package.json b/packages/nux/package.json index 11131a75aef3f1..9f10bea7f2bb44 100644 --- a/packages/nux/package.json +++ b/packages/nux/package.json @@ -30,14 +30,16 @@ "@babel/runtime": "^7.11.2", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", "lodash": "^4.17.19", "rememo": "^3.0.0" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0", + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/plugins/package.json b/packages/plugins/package.json index 37c3ee207f4ce3..a6800c52ea06fd 100644 --- a/packages/plugins/package.json +++ b/packages/plugins/package.json @@ -25,10 +25,12 @@ "@babel/runtime": "^7.11.2", "@wordpress/compose": "file:../compose", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", "@wordpress/icons": "file:../icons", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/hooks": "^2.10.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index f98ff063cd7211..77f8d0987ca3b0 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -38,15 +38,10 @@ "@react-navigation/routers": "5.4.9", "@react-navigation/stack": "5.6.2", "@wordpress/api-fetch": "file:../api-fetch", - "@wordpress/block-editor": "file:../block-editor", "@wordpress/block-library": "file:../block-library", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", - "@wordpress/data": "file:../data", "@wordpress/edit-post": "file:../edit-post", "@wordpress/element": "file:../element", - "@wordpress/hooks": "file:../hooks", - "@wordpress/i18n": "file:../i18n", "@wordpress/react-native-aztec": "file:../react-native-aztec", "@wordpress/react-native-bridge": "file:../react-native-bridge", "fast-average-color": "^4.3.0", @@ -74,6 +69,13 @@ "react-native-url-polyfill": "^1.1.2", "react-native-video": "git+https://github.com/wordpress-mobile/react-native-video.git#1b964b107863351ed744fc104d7952bbec3e2d4f" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/hooks": "^2.10.0", + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" }, diff --git a/packages/reusable-blocks/package.json b/packages/reusable-blocks/package.json index 053f169e56128d..2a208ce22ab301 100644 --- a/packages/reusable-blocks/package.json +++ b/packages/reusable-blocks/package.json @@ -25,18 +25,20 @@ "{src,build,build-module}/{index.js,store/index.js}" ], "dependencies": { - "@wordpress/block-editor": "file:../block-editor", - "@wordpress/blocks": "file:../blocks", "@wordpress/components": "file:../components", "@wordpress/compose": "file:../compose", - "@wordpress/core-data": "file:../core-data", - "@wordpress/data": "file:../data", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "@wordpress/icons": "file:../icons", - "@wordpress/notices": "file:../notices", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/block-editor": "^5.1.2", + "@wordpress/blocks": "^6.24.1", + "@wordpress/core-data": "^2.24.1", + "@wordpress/data": "^4.25.0", + "@wordpress/i18n": "^3.16.0", + "@wordpress/notices": "^2.11.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/rich-text/package.json b/packages/rich-text/package.json index 219908bad0d01a..f09fcc03501d8f 100644 --- a/packages/rich-text/package.json +++ b/packages/rich-text/package.json @@ -28,7 +28,6 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated", "@wordpress/dom": "file:../dom", "@wordpress/element": "file:../element", @@ -40,6 +39,9 @@ "memize": "^1.1.0", "rememo": "^3.0.0" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/server-side-render/package.json b/packages/server-side-render/package.json index 80b45c5d2ff6e9..8262459d7a6fb8 100644 --- a/packages/server-side-render/package.json +++ b/packages/server-side-render/package.json @@ -26,13 +26,16 @@ "@babel/runtime": "^7.11.2", "@wordpress/api-fetch": "file:../api-fetch", "@wordpress/components": "file:../components", - "@wordpress/data": "file:../data", "@wordpress/deprecated": "file:../deprecated", "@wordpress/element": "file:../element", - "@wordpress/i18n": "file:../i18n", "@wordpress/url": "file:../url", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0", + "@wordpress/editor": "^9.24.2", + "@wordpress/i18n": "^3.16.0" + }, "publishConfig": { "access": "public" } diff --git a/packages/viewport/package.json b/packages/viewport/package.json index e428301295c934..3d608353df026f 100644 --- a/packages/viewport/package.json +++ b/packages/viewport/package.json @@ -24,9 +24,11 @@ "dependencies": { "@babel/runtime": "^7.11.2", "@wordpress/compose": "file:../compose", - "@wordpress/data": "file:../data", "lodash": "^4.17.19" }, + "peerDependencies": { + "@wordpress/data": "^4.25.0" + }, "publishConfig": { "access": "public" }