From c8e4548ad4886f59183f2537b0abbb8ef21bfa0d Mon Sep 17 00:00:00 2001 From: Adriel Diaz Date: Thu, 3 Dec 2020 22:14:30 -0600 Subject: [PATCH 1/3] chore: update react-icons to last version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9f6ed723..33551461 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "prop-types": "15.7.2", "react": "16.13.0", "react-dom": "16.13.0", - "react-icons": "3.9.0", + "react-icons": "4.1.0", "react-tooltip": "3.9.2", "styled-components": "4.4.1", "universal-authenticator-library": "0.3.0" From 4736fa88d28e902f9508be2ae167ccb1ac1a4191 Mon Sep 17 00:00:00 2001 From: Adriel Diaz Date: Thu, 3 Dec 2020 22:58:10 -0600 Subject: [PATCH 2/3] chore: use reac-icons/all-files to improve bundle size --- .babelrc | 10 +++++++--- package.json | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.babelrc b/.babelrc index 9d6efc06..1a449759 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,8 @@ { - presets: ["@babel/preset-env", "@babel/preset-react"], - plugins: ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-regenerator"] -} \ No newline at end of file + "presets": ["@babel/preset-env", "@babel/preset-react"], + "plugins": [ + "@babel/plugin-proposal-class-properties", + "@babel/plugin-transform-regenerator", + "babel-plugin-react-icons" + ] +} diff --git a/package.json b/package.json index 33551461..d957a735 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "docs": "jsdoc src -r -d docs" }, "dependencies": { + "@react-icons/all-files": "^4.1.0", "i18next": "14.0.1", "i18next-browser-languagedetector": "2.2.4", "prop-types": "15.7.2", @@ -42,6 +43,7 @@ "@types/jest": "^25.1.4", "@types/react": "15.0.4", "babel-jest": "^25.1.0", + "babel-plugin-react-icons": "^0.1.1", "babel-polyfill": "^6.26.0", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.2", From f4a1905e3e5f2a1e9dcc82e02d2cca2bbe2b3334 Mon Sep 17 00:00:00 2001 From: Adriel Diaz Date: Fri, 4 Dec 2020 01:55:42 -0600 Subject: [PATCH 3/3] chore: update yarn.lock --- yarn.lock | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index 263c12c4..3d49e149 100644 --- a/yarn.lock +++ b/yarn.lock @@ -184,6 +184,13 @@ dependencies: "@babel/types" "^7.10.3" +"@babel/helper-module-imports@^7.12.5": + version "7.12.5" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.5.tgz#1bfc0229f794988f76ed0a4d4e90860850b54dfb" + integrity sha512-SR713Ogqg6++uexFRORf/+nPXMmWIn80TALu0uaFb+iQIUoR7bOC7zBWyzBs5b3tBBJXuyD0cRu1F15GyzjOWA== + dependencies: + "@babel/types" "^7.12.5" + "@babel/helper-module-transforms@^7.10.1": version "7.10.1" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz#24e2f08ee6832c60b157bb0936c86bef7210c622" @@ -257,6 +264,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.3.tgz#60d9847f98c4cea1b279e005fdb7c28be5412d15" integrity sha512-bU8JvtlYpJSBPuj1VUmKpFGaDZuLxASky3LhaKj3bmpSTY6VWooSM8msk+Z0CZoErFye2tlABF6yDkT3FOPAXw== +"@babel/helper-validator-identifier@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2" + integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw== + "@babel/helper-wrap-function@^7.10.1": version "7.10.1" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.10.1.tgz#956d1310d6696257a7afd47e4c42dfda5dfcedc9" @@ -913,6 +925,15 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@babel/types@^7.12.5": + version "7.12.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.7.tgz#6039ff1e242640a29452c9ae572162ec9a8f5d13" + integrity sha512-MNyI92qZq6jrQkXvtIiykvl4WtoRrVV9MPn+ZfsoEENjiWcBQ3ZSHrkxnJWgWtLX3XXqX5hrSQ+X69wkmesXuQ== + dependencies: + "@babel/helper-validator-identifier" "^7.10.4" + lodash "^4.17.19" + to-fast-properties "^2.0.0" + "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" @@ -1216,6 +1237,11 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" +"@react-icons/all-files@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@react-icons/all-files/-/all-files-4.1.0.tgz#477284873a0821928224b6fc84c62d2534d6650b" + integrity sha512-hxBI2UOuVaI3O/BhQfhtb4kcGn9ft12RWAFVMUeNjqqhLsHvFtzIkFaptBJpFDANTKoDfdVoHTKZDlwKCACbMQ== + "@sinonjs/commons@^1.7.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.0.tgz#c8d68821a854c555bba172f3b06959a0039b236d" @@ -1683,6 +1709,13 @@ babel-plugin-jest-hoist@^25.5.0: "@babel/types" "^7.3.3" "@types/babel__traverse" "^7.0.6" +babel-plugin-react-icons@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/babel-plugin-react-icons/-/babel-plugin-react-icons-0.1.1.tgz#445f8ec710888c72d015f43a195a8018d5eb3740" + integrity sha512-eV7r9ZQEe+rvuW1kBFiKxXubjN57hsdICnZhJTRcdYsgegk5Gr9+f3uZULwTSfa+5IrkLqtYRS0p3lxknrn0cw== + dependencies: + "@babel/helper-module-imports" "^7.12.5" + "babel-plugin-styled-components@>= 1": version "1.10.7" resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.7.tgz#3494e77914e9989b33cc2d7b3b29527a949d635c" @@ -4341,6 +4374,11 @@ lodash@^4.15.0, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17. resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== +lodash@^4.17.19: + version "4.17.20" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" + integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== + lolex@^5.0.0: version "5.1.2" resolved "https://registry.yarnpkg.com/lolex/-/lolex-5.1.2.tgz#953694d098ce7c07bc5ed6d0e42bc6c0c6d5a367" @@ -5062,12 +5100,10 @@ react-dom@16.13.0: prop-types "^15.6.2" scheduler "^0.19.0" -react-icons@3.9.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.9.0.tgz#89a00f20a0e02e6bfd899977eaf46eb4624239d5" - integrity sha512-gKbYKR+4QsD3PmIHLAM9TDDpnaTsr3XZeK1NTAb6WQQ+gxEdJ0xuCgLq0pxXdS7Utg2AIpcVhM1ut/jlDhcyNg== - dependencies: - camelcase "^5.0.0" +react-icons@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.1.0.tgz#9ca9bcbf2e3aee8e86e378bb9d465842947bbfc3" + integrity sha512-FCXBg1JbbR0vWALXIxmFAfozHdVIJmmwCD81Jk0EKOt7Ax4AdBNcaRkWhR0NaKy9ugJgoY3fFvo0PHpte55pXg== react-is@^16.12.0, react-is@^16.6.0, react-is@^16.8.1, react-is@^16.8.6, react-is@^16.9.0: version "16.13.1"