From d08a00b3e71741325eb212c3d8ee194d91bbbf6d Mon Sep 17 00:00:00 2001 From: Constance Chen Date: Tue, 4 Oct 2022 10:57:48 -0700 Subject: [PATCH] [OPTIONAL] unrequire `@emotion/cache` as a peerDependency now that EuiProvider no longer needs it --- package.json | 1 - .../src/views/guidelines/getting_started/getting_started.js | 2 +- upcoming_changelogs/6288.md | 1 + wiki/consuming.md | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6d92d57bcf9..ded6d329a92 100644 --- a/package.json +++ b/package.json @@ -254,7 +254,6 @@ }, "peerDependencies": { "@elastic/datemath": "^5.0.2", - "@emotion/cache": "11.x", "@emotion/react": "11.x", "@emotion/css": "11.x", "@types/react": "^16.9 || ^17.0", diff --git a/src-docs/src/views/guidelines/getting_started/getting_started.js b/src-docs/src/views/guidelines/getting_started/getting_started.js index 66bb34d5a61..1fe80c73a07 100644 --- a/src-docs/src/views/guidelines/getting_started/getting_started.js +++ b/src-docs/src/views/guidelines/getting_started/getting_started.js @@ -43,7 +43,7 @@ export const GettingStarted = { { - 'yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/cache @emotion/css moment prop-types' + 'yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/css moment prop-types' } diff --git a/upcoming_changelogs/6288.md b/upcoming_changelogs/6288.md index dfd4a51e36b..018e0a9b0ea 100644 --- a/upcoming_changelogs/6288.md +++ b/upcoming_changelogs/6288.md @@ -1,3 +1,4 @@ **Breaking changes** - `@emotion/css` is now a required peer dependency, alongside `@emotion/react` +- `@emotion/cache` is no longer required peer dependency, although your project must still use it if setting custom cache/injection locations diff --git a/wiki/consuming.md b/wiki/consuming.md index a0794578386..ce1d9525bca 100644 --- a/wiki/consuming.md +++ b/wiki/consuming.md @@ -11,7 +11,7 @@ yarn add @elastic/eui Note that EUI has [several `peerDependencies` requirements](package.json) that will also need to be installed if starting with a blank project. ```bash -yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/cache @emotion/css moment prop-types +yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/css moment prop-types ``` ## Requirements and dependencies