From 27c83cced1a693ca6b1529a044e134676c5d7a93 Mon Sep 17 00:00:00 2001 From: Ilya Medvedev Date: Mon, 26 Feb 2024 14:21:56 +0100 Subject: [PATCH] Updated `@emotion/is-valid-prop` Changed the way the `@emotion/is-valid-prop` dependency is defined. Optional peer dependency is less strict - it doesn't touch the lockfile signature and allows you to use any version in your project. NOTE: I chose the `*`` version and it's safe since the package API has never changed. Closes https://github.com/framer/motion/issues/2530 --- packages/framer-motion/package.json | 7 ++++--- yarn.lock | 7 +++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/framer-motion/package.json b/packages/framer-motion/package.json index 7c94267ed6..d67574bf06 100644 --- a/packages/framer-motion/package.json +++ b/packages/framer-motion/package.json @@ -68,10 +68,14 @@ "tslib": "^2.4.0" }, "peerDependencies": { + "@emotion/is-prop-valid": "*", "react": "^18.0.0", "react-dom": "^18.0.0" }, "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, "react": { "optional": true }, @@ -79,9 +83,6 @@ "optional": true } }, - "optionalDependencies": { - "@emotion/is-prop-valid": "^0.8.2" - }, "bundlesize": [ { "path": "./dist/size-rollup-motion.js", diff --git a/yarn.lock b/yarn.lock index 1953b147d4..4c5e8fbd3f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1499,7 +1499,7 @@ __metadata: languageName: node linkType: hard -"@emotion/is-prop-valid@npm:^0.8.1, @emotion/is-prop-valid@npm:^0.8.2": +"@emotion/is-prop-valid@npm:^0.8.1": version: 0.8.8 resolution: "@emotion/is-prop-valid@npm:0.8.8" dependencies: @@ -8101,15 +8101,14 @@ __metadata: version: 0.0.0-use.local resolution: "framer-motion@workspace:packages/framer-motion" dependencies: - "@emotion/is-prop-valid": ^0.8.2 tslib: ^2.4.0 peerDependencies: + "@emotion/is-prop-valid": "*" react: ^18.0.0 react-dom: ^18.0.0 - dependenciesMeta: + peerDependenciesMeta: "@emotion/is-prop-valid": optional: true - peerDependenciesMeta: react: optional: true react-dom: