From 2ef0ee18b29b3b8a6afee8263511479160f992da Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Thu, 15 Feb 2024 14:47:33 +0000 Subject: [PATCH] Build/Test Tools: Remove unnecessary direct dependencies. This removes the `@emotion/is-prop-valid`, `@emotion/memoize`, and `framer-motion` packages as direct dependencies. These were introduced in [56065], but do not appear to have been integrated into the build process. Instead, these are now installed as peer dependencies to the `@wordpress/block-editor` and `@wordpress/components` packages. Props gziolo, huzaifaalmesbah. See #59658. git-svn-id: https://develop.svn.wordpress.org/trunk@57634 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 11 ++++++----- package.json | 3 --- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 022830d862..6bbe5e71f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,6 @@ "version": "6.5.0", "license": "GPL-2.0-or-later", "dependencies": { - "@emotion/is-prop-valid": "0.8.8", - "@emotion/memoize": "0.7.4", "@wordpress/a11y": "3.51.0", "@wordpress/annotations": "2.51.1", "@wordpress/api-fetch": "6.48.0", @@ -83,7 +81,6 @@ "element-closest": "^3.0.2", "es-module-shims": "1.8.2", "formdata-polyfill": "4.0.10", - "framer-motion": "10.16.4", "hoverintent": "2.2.1", "imagesloaded": "5.0.0", "is-plain-object": "5.0.0", @@ -2245,6 +2242,7 @@ "version": "0.8.8", "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", + "optional": true, "dependencies": { "@emotion/memoize": "0.7.4" } @@ -2252,7 +2250,8 @@ "node_modules/@emotion/memoize": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", - "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==" + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", + "optional": true }, "node_modules/@emotion/react": { "version": "11.10.6", @@ -34854,6 +34853,7 @@ "version": "0.8.8", "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", + "optional": true, "requires": { "@emotion/memoize": "0.7.4" } @@ -34861,7 +34861,8 @@ "@emotion/memoize": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", - "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==" + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", + "optional": true }, "@emotion/react": { "version": "11.10.6", diff --git a/package.json b/package.json index 445bb25ecd..d28933eab6 100644 --- a/package.json +++ b/package.json @@ -78,8 +78,6 @@ "webpack-livereload-plugin": "3.0.2" }, "dependencies": { - "@emotion/is-prop-valid": "0.8.8", - "@emotion/memoize": "0.7.4", "@wordpress/a11y": "3.51.0", "@wordpress/annotations": "2.51.1", "@wordpress/api-fetch": "6.48.0", @@ -152,7 +150,6 @@ "element-closest": "^3.0.2", "es-module-shims": "1.8.2", "formdata-polyfill": "4.0.10", - "framer-motion": "10.16.4", "hoverintent": "2.2.1", "imagesloaded": "5.0.0", "is-plain-object": "5.0.0",