From 0c471988129ce3e54d0d183afd959d338ecde508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Thu, 9 Sep 2021 13:50:29 +0200 Subject: [PATCH] Chore: Move `react-native-url-polyfill` to dev dependencies (#34687) * Move react-native-url-polyfill to devDep in @wordpress/url No longer necessary as a runtime dependency after is-url.native.js was removed * Move react-native-url-polyfill to dev dependencies of the project Co-authored-by: Ben Lowery --- package-lock.json | 3 +-- package.json | 1 + packages/url/CHANGELOG.md | 4 ++++ packages/url/package.json | 3 +-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 98cb8029eb2116..dfcabf32654145 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19050,8 +19050,7 @@ "version": "file:packages/url", "requires": { "@babel/runtime": "^7.13.10", - "lodash": "^4.17.21", - "react-native-url-polyfill": "^1.1.2" + "lodash": "^4.17.21" } }, "@wordpress/viewport": { diff --git a/package.json b/package.json index d17df424be1b8f..99c59eea7a15a1 100644 --- a/package.json +++ b/package.json @@ -196,6 +196,7 @@ "react": "17.0.1", "react-dom": "17.0.1", "react-native": "0.64.0", + "react-native-url-polyfill": "1.1.2", "react-test-renderer": "17.0.1", "rimraf": "3.0.2", "rtlcss": "2.6.2", diff --git a/packages/url/CHANGELOG.md b/packages/url/CHANGELOG.md index acdb4f471ee416..f11f5bbe74b3b9 100644 --- a/packages/url/CHANGELOG.md +++ b/packages/url/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Bug Fix + +- Removed unused `react-native-url-polyfill` dependency ([#34687](https://github.com/WordPress/gutenberg/pull/34687)). + ## 3.2.0 (2021-07-21) ## 3.1.0 (2021-05-20) diff --git a/packages/url/package.json b/packages/url/package.json index 7b1738b80a6331..0e0779fe14bf85 100644 --- a/packages/url/package.json +++ b/packages/url/package.json @@ -28,8 +28,7 @@ "sideEffects": false, "dependencies": { "@babel/runtime": "^7.13.10", - "lodash": "^4.17.21", - "react-native-url-polyfill": "^1.1.2" + "lodash": "^4.17.21" }, "publishConfig": { "access": "public"