diff --git a/changelogs/upcoming/7602.md b/changelogs/upcoming/7602.md new file mode 100644 index 00000000000..75265d858cc --- /dev/null +++ b/changelogs/upcoming/7602.md @@ -0,0 +1,4 @@ +**Dependency updates** + +- Updated `prop-types` to v15.18.1 +- Removed `prop-types` as a peer depedency, per package recommendation diff --git a/package.json b/package.json index 275a2a85fcd..e18bdc05f67 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "lodash": "^4.17.21", "mdast-util-to-hast": "^10.2.0", "numeral": "^2.0.6", - "prop-types": "^15.6.0", + "prop-types": "^15.8.1", "react-dropzone": "^11.7.1", "react-element-to-jsx-string": "^15.0.0", "react-focus-on": "^3.9.1", @@ -212,7 +212,6 @@ "pre-push": "^0.1.4", "prettier": "^2.8.8", "process": "^0.11.10", - "prop-types": "^15.6.0", "raw-loader": "^4.0.1", "react": "^18.2.0", "react-16": "npm:react@^16.14.0", @@ -257,7 +256,6 @@ "@types/react": "^16.9 || ^17.0 || ^18.0", "@types/react-dom": "^16.9 || ^17.0 || ^18.0", "moment": "^2.13.0", - "prop-types": "^15.5.0", "react": "^16.12 || ^17.0 || ^18.0", "react-dom": "^16.12 || ^17.0 || ^18.0", "typescript": "~4.5.3" 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 24610fd6717..88c48d5e53f 100644 --- a/src-docs/src/views/guidelines/getting_started/getting_started.js +++ b/src-docs/src/views/guidelines/getting_started/getting_started.js @@ -44,7 +44,7 @@ export const GettingStarted = { { - 'yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/css moment prop-types' + 'yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/css moment' } diff --git a/wiki/consuming-eui/README.md b/wiki/consuming-eui/README.md index b2687a2c747..9e0e275a97d 100644 --- a/wiki/consuming-eui/README.md +++ b/wiki/consuming-eui/README.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/css moment prop-types +yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/css moment ``` ## Requirements and dependencies diff --git a/yarn.lock b/yarn.lock index 4cadf74f40c..e7e50d2b68c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17823,7 +17823,7 @@ prop-types-exact@^1.2.0: object.assign "^4.1.0" reflect.ownkeys "^0.2.0" -prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.0, prop-types@^15.7.2, prop-types@^15.8.1: +prop-types@^15.6.2, prop-types@^15.7.0, prop-types@^15.7.2, prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==