From d0069ef7582553701731cd56a6bb4283499820cc Mon Sep 17 00:00:00 2001 From: Coen Visser Date: Tue, 18 Jul 2023 22:41:35 +0200 Subject: [PATCH] Move react-native-svg from dependencies to peerDependencies (#578) * Move react-native-svg from dependencies to peerDependencies * Move react-native-svg from dependencies to peerDependencies --------- Co-authored-by: c_visser Co-authored-by: Tomi Olubeko <66456876+tomi-msft@users.noreply.github.com> --- README.md | 3 +++ package-lock.json | 15 ++++++++++++--- packages/react-native-icons/package.json | 4 ++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7173895541..7a4bba0482 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ Fluent UI System Icons are a collection of familiar, friendly and modern icons f ## Installation +### Requirements +This library requires react-native-svg at version 12.5.0 or higher. + ### Android The library is published via Maven Central, please ensure that the `mavenCentral()` repository has been added to the root `build.gradle` file: diff --git a/package-lock.json b/package-lock.json index c655f7fc0e..2a8fde561f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15068,7 +15068,6 @@ "dependencies": { "@griffel/react": "^1.0.0", "@types/react-native": "^0.68.0", - "react-native-svg": "^12.5.0", "tslib": "^2.1.0" }, "devDependencies": { @@ -15091,7 +15090,8 @@ "yargs": "^14.0.0" }, "peerDependencies": { - "react": ">=16.8.0 <19.0.0" + "react": ">=16.8.0 <19.0.0", + "react-native-svg": ">=12.5.0" } }, "packages/react-native-icons/node_modules/@svgr/babel-plugin-add-jsx-attribute": { @@ -15324,6 +15324,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "peer": true, "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -15337,6 +15338,7 @@ "version": "5.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "peer": true, "dependencies": { "domelementtype": "^2.3.0" }, @@ -15351,6 +15353,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", + "peer": true, "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -15414,6 +15417,7 @@ "version": "12.5.0", "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-12.5.0.tgz", "integrity": "sha512-xVMA6QjwU2E30DHLzjmewjHSmby4mMMlUaiKnFCYPWpsezsaB3zHS7eURwKNJLmcRYOPi3f6aBhxvFTNj/5j/A==", + "peer": true, "dependencies": { "css-select": "^5.1.0", "css-tree": "^1.1.3" @@ -15427,6 +15431,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "peer": true, "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.1.0", @@ -16941,7 +16946,6 @@ "mkdirp": "^1.0.4", "react": "^17.0.1", "react-native": "^0.68.0", - "react-native-svg": "^12.5.0", "renamer": "^2.0.1", "svgo": "^2.8.0", "tslib": "^2.1.0", @@ -17082,6 +17086,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "peer": true, "requires": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -17092,6 +17097,7 @@ "version": "5.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "peer": true, "requires": { "domelementtype": "^2.3.0" } @@ -17100,6 +17106,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", + "peer": true, "requires": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -17142,6 +17149,7 @@ "version": "12.5.0", "resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-12.5.0.tgz", "integrity": "sha512-xVMA6QjwU2E30DHLzjmewjHSmby4mMMlUaiKnFCYPWpsezsaB3zHS7eURwKNJLmcRYOPi3f6aBhxvFTNj/5j/A==", + "peer": true, "requires": { "css-select": "^5.1.0", "css-tree": "^1.1.3" @@ -17151,6 +17159,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "peer": true, "requires": { "boolbase": "^1.0.0", "css-what": "^6.1.0", diff --git a/packages/react-native-icons/package.json b/packages/react-native-icons/package.json index b6727aa2c5..38047d0590 100644 --- a/packages/react-native-icons/package.json +++ b/packages/react-native-icons/package.json @@ -45,11 +45,11 @@ "dependencies": { "@griffel/react": "^1.0.0", "@types/react-native": "^0.68.0", - "react-native-svg": "^12.5.0", "tslib": "^2.1.0" }, "peerDependencies": { - "react": ">=16.8.0 <19.0.0" + "react": ">=16.8.0 <19.0.0", + "react-native-svg": ">=12.5.0" }, "files": [ "lib/",