Skip to content

Commit

Permalink
[OPTIONAL] unrequire @emotion/cache as a peerDependency
Browse files Browse the repository at this point in the history
now that EuiProvider no longer needs it
  • Loading branch information
cee-chen committed Oct 4, 2022
1 parent 88ac73a commit d08a00b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const GettingStarted = {
<EuiSpacer />
<EuiCodeBlock language="bash" isCopyable fontSize="m">
{
'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'
}
</EuiCodeBlock>
<EuiSpacer />
Expand Down
1 change: 1 addition & 0 deletions upcoming_changelogs/6288.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion wiki/consuming.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d08a00b

Please sign in to comment.