From 2b3c86d201ddfbaf09137ca511d0b86246f4bb00 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Wed, 7 Dec 2022 10:10:59 +0000 Subject: [PATCH] Chore: Remove unused/deprecated @types definitions (#59888) * remove @types/rc-tree, @types/classnames * remove @types/rc-time-picker * remove @types/reselect * remove @types/testing-library__react-hooks * only include known package.json's --- .github/renovate.json5 | 1 + package.json | 5 -- packages/grafana-data/package.json | 1 - packages/grafana-ui/package.json | 2 - packages/jaeger-ui-components/package.json | 2 - yarn.lock | 97 ++-------------------- 6 files changed, 10 insertions(+), 98 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 235131251d8..a5396c0faa9 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -30,6 +30,7 @@ "react-dom", "react-test-renderer" ], + "includePaths": ["package.json", "packages/*"], "ignorePaths": ["packages/grafana-toolkit/package.json", "emails/**", "plugins-bundled/**", "**/mocks/**"], "labels": ["area/frontend", "dependencies", "no-backport", "no-changelog"], "packageRules": [ diff --git a/package.json b/package.json index d9a207d5128..f82549dbcb6 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,6 @@ "@testing-library/user-event": "14.4.3", "@types/angular": "1.8.4", "@types/angular-route": "1.7.2", - "@types/classnames": "2.3.0", "@types/common-tags": "^1.8.0", "@types/d3": "7.4.0", "@types/d3-force": "^2.1.0", @@ -137,7 +136,6 @@ "@types/papaparse": "5.3.5", "@types/pluralize": "^0.0.29", "@types/prismjs": "1.26.0", - "@types/rc-time-picker": "3.4.1", "@types/react": "17.0.42", "@types/react-beautiful-dnd": "13.1.2", "@types/react-dom": "17.0.14", @@ -152,13 +150,11 @@ "@types/react-window": "1.8.5", "@types/react-window-infinite-loader": "^1", "@types/redux-mock-store": "1.0.3", - "@types/reselect": "2.2.0", "@types/semver": "7.3.13", "@types/slate": "0.47.11", "@types/slate-plain-serializer": "0.7.2", "@types/slate-react": "0.22.9", "@types/testing-library__jest-dom": "5.14.5", - "@types/testing-library__react-hooks": "^3.2.0", "@types/tinycolor2": "1.4.3", "@types/uuid": "8.3.4", "@typescript-eslint/eslint-plugin": "5.42.0", @@ -283,7 +279,6 @@ "@sentry/browser": "6.19.7", "@sentry/types": "6.19.7", "@sentry/utils": "6.19.7", - "@types/rc-tree": "^3.0.0", "@types/react-resizable": "3.0.3", "@types/webpack-env": "1.18.0", "@visx/event": "2.6.0", diff --git a/packages/grafana-data/package.json b/packages/grafana-data/package.json index d3145ef5b35..6f0db335307 100644 --- a/packages/grafana-data/package.json +++ b/packages/grafana-data/package.json @@ -78,7 +78,6 @@ "@types/react-dom": "17.0.14", "@types/sinon": "10.0.13", "@types/testing-library__jest-dom": "5.14.5", - "@types/testing-library__react-hooks": "^3.2.0", "@types/tinycolor2": "1.4.3", "esbuild": "0.15.12", "react": "17.0.2", diff --git a/packages/grafana-ui/package.json b/packages/grafana-ui/package.json index dd46eaef2fa..352c70eb73e 100644 --- a/packages/grafana-ui/package.json +++ b/packages/grafana-ui/package.json @@ -140,7 +140,6 @@ "@testing-library/react": "12.1.4", "@testing-library/react-hooks": "8.0.1", "@testing-library/user-event": "14.4.3", - "@types/classnames": "2.3.0", "@types/common-tags": "^1.8.0", "@types/d3": "7.4.0", "@types/enzyme": "3.10.12", @@ -168,7 +167,6 @@ "@types/slate-plain-serializer": "0.7.2", "@types/slate-react": "0.22.9", "@types/testing-library__jest-dom": "5.14.5", - "@types/testing-library__react-hooks": "^3.2.0", "@types/tinycolor2": "1.4.3", "@types/uuid": "8.3.4", "@wojtekmaj/enzyme-adapter-react-17": "0.7.0", diff --git a/packages/jaeger-ui-components/package.json b/packages/jaeger-ui-components/package.json index fd0c72d3aa7..63438c1c2a8 100644 --- a/packages/jaeger-ui-components/package.json +++ b/packages/jaeger-ui-components/package.json @@ -13,7 +13,6 @@ "@testing-library/jest-dom": "5.16.5", "@testing-library/react": "12.1.4", "@testing-library/user-event": "14.4.3", - "@types/classnames": "^2.2.7", "@types/deep-freeze": "^0.1.1", "@types/enzyme": "3.10.12", "@types/hoist-non-react-statics": "^3.3.1", @@ -22,7 +21,6 @@ "@types/prop-types": "15.7.5", "@types/react": "17.0.42", "@types/react-icons": "2.2.7", - "@types/reselect": "2.2.0", "@types/slate-react": "0.22.9", "@types/testing-library__jest-dom": "5.14.5", "@types/tinycolor2": "1.4.3", diff --git a/yarn.lock b/yarn.lock index 28f495ade83..84ee48674ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4326,7 +4326,6 @@ __metadata: "@types/react-dom": 17.0.14 "@types/sinon": 10.0.13 "@types/testing-library__jest-dom": 5.14.5 - "@types/testing-library__react-hooks": ^3.2.0 "@types/tinycolor2": 1.4.3 d3-interpolate: 1.4.0 date-fns: 2.29.3 @@ -4719,7 +4718,6 @@ __metadata: "@testing-library/react": 12.1.4 "@testing-library/react-hooks": 8.0.1 "@testing-library/user-event": 14.4.3 - "@types/classnames": 2.3.0 "@types/common-tags": ^1.8.0 "@types/d3": 7.4.0 "@types/enzyme": 3.10.12 @@ -4747,7 +4745,6 @@ __metadata: "@types/slate-plain-serializer": 0.7.2 "@types/slate-react": 0.22.9 "@types/testing-library__jest-dom": 5.14.5 - "@types/testing-library__react-hooks": ^3.2.0 "@types/tinycolor2": 1.4.3 "@types/uuid": 8.3.4 "@wojtekmaj/enzyme-adapter-react-17": 0.7.0 @@ -4964,7 +4961,6 @@ __metadata: "@testing-library/jest-dom": 5.16.5 "@testing-library/react": 12.1.4 "@testing-library/user-event": 14.4.3 - "@types/classnames": ^2.2.7 "@types/deep-freeze": ^0.1.1 "@types/enzyme": 3.10.12 "@types/hoist-non-react-statics": ^3.3.1 @@ -4973,7 +4969,6 @@ __metadata: "@types/prop-types": 15.7.5 "@types/react": 17.0.42 "@types/react-icons": 2.2.7 - "@types/reselect": 2.2.0 "@types/slate-react": 0.22.9 "@types/testing-library__jest-dom": 5.14.5 "@types/tinycolor2": 1.4.3 @@ -10207,15 +10202,6 @@ __metadata: languageName: node linkType: hard -"@types/classnames@npm:2.3.0, @types/classnames@npm:^2.2.7": - version: 2.3.0 - resolution: "@types/classnames@npm:2.3.0" - dependencies: - classnames: "*" - checksum: e1bd6de60fc5e4ead601838078b10f378d6a66ad21112922856de59a1f450b1361f597aa3ca34f2cc33bc030f950112872fddfde43c5189bec89737a8b237f24 - languageName: node - linkType: hard - "@types/clean-css@npm:*": version: 4.2.5 resolution: "@types/clean-css@npm:4.2.5" @@ -11333,25 +11319,6 @@ __metadata: languageName: node linkType: hard -"@types/rc-time-picker@npm:3.4.1": - version: 3.4.1 - resolution: "@types/rc-time-picker@npm:3.4.1" - dependencies: - "@types/react": "*" - moment: ^2.19.4 - checksum: 26d43beb8c5fdbd1932996bee63d3f854ca8e931915463106cbb382d98efcc81a1140f7fda004b6652ca12e87b211b1b70302b854c5ce41e3f87e68537181c06 - languageName: node - linkType: hard - -"@types/rc-tree@npm:^3.0.0": - version: 3.0.0 - resolution: "@types/rc-tree@npm:3.0.0" - dependencies: - rc-tree: "*" - checksum: bf8e599c5a62c8f8d91fbecdc210119c4c2ad07bdfb8adecb4d1cce9cb967fd6856ad2940431b8fdc9993cd261f127c33588f2988bfc7bc6438993de1c6eeff3 - languageName: node - linkType: hard - "@types/react-beautiful-dnd@npm:13.1.2": version: 13.1.2 resolution: "@types/react-beautiful-dnd@npm:13.1.2" @@ -11511,7 +11478,7 @@ __metadata: languageName: node linkType: hard -"@types/react-test-renderer@npm:*, @types/react-test-renderer@npm:17.0.1": +"@types/react-test-renderer@npm:17.0.1": version: 17.0.1 resolution: "@types/react-test-renderer@npm:17.0.1" dependencies: @@ -11624,15 +11591,6 @@ __metadata: languageName: node linkType: hard -"@types/reselect@npm:2.2.0": - version: 2.2.0 - resolution: "@types/reselect@npm:2.2.0" - dependencies: - reselect: "*" - checksum: 034b5796c16316b60561fca01503111ecddde638178efc20c7293f07ef7d9cbc2bffce267899381f630fa9ffef3bfed54384fe87756e97132b4dc2881f585e19 - languageName: node - linkType: hard - "@types/resolve@npm:1.20.2": version: 1.20.2 resolution: "@types/resolve@npm:1.20.2" @@ -11821,15 +11779,6 @@ __metadata: languageName: node linkType: hard -"@types/testing-library__react-hooks@npm:^3.2.0": - version: 3.4.1 - resolution: "@types/testing-library__react-hooks@npm:3.4.1" - dependencies: - "@types/react-test-renderer": "*" - checksum: f32a5659330a7c2e555bffa74807f7331b1d2fcdd5fe4c08cc9130a0a12826f5f1c5bdf3210e7b2b4c9b774bddecc283171a347f78dc98d28836b0f773583a03 - languageName: node - linkType: hard - "@types/through@npm:*": version: 0.0.30 resolution: "@types/through@npm:0.0.30" @@ -15486,13 +15435,6 @@ __metadata: languageName: node linkType: hard -"classnames@npm:*, classnames@npm:2.x, classnames@npm:^2.2.1, classnames@npm:^2.2.5, classnames@npm:^2.2.6, classnames@npm:^2.3.1": - version: 2.3.1 - resolution: "classnames@npm:2.3.1" - checksum: 14db8889d56c267a591f08b0834989fe542d47fac659af5a539e110cc4266694e8de86e4e3bbd271157dbd831361310a8293e0167141e80b0f03a0f175c80960 - languageName: node - linkType: hard - "classnames@npm:2.3.2, classnames@npm:^2.3.2": version: 2.3.2 resolution: "classnames@npm:2.3.2" @@ -15500,6 +15442,13 @@ __metadata: languageName: node linkType: hard +"classnames@npm:2.x, classnames@npm:^2.2.1, classnames@npm:^2.2.5, classnames@npm:^2.2.6, classnames@npm:^2.3.1": + version: 2.3.1 + resolution: "classnames@npm:2.3.1" + checksum: 14db8889d56c267a591f08b0834989fe542d47fac659af5a539e110cc4266694e8de86e4e3bbd271157dbd831361310a8293e0167141e80b0f03a0f175c80960 + languageName: node + linkType: hard + "clean-css@npm:5.2.0": version: 5.2.0 resolution: "clean-css@npm:5.2.0" @@ -21560,7 +21509,6 @@ __metadata: "@testing-library/user-event": 14.4.3 "@types/angular": 1.8.4 "@types/angular-route": 1.7.2 - "@types/classnames": 2.3.0 "@types/common-tags": ^1.8.0 "@types/d3": 7.4.0 "@types/d3-force": ^2.1.0 @@ -21586,8 +21534,6 @@ __metadata: "@types/papaparse": 5.3.5 "@types/pluralize": ^0.0.29 "@types/prismjs": 1.26.0 - "@types/rc-time-picker": 3.4.1 - "@types/rc-tree": ^3.0.0 "@types/react": 17.0.42 "@types/react-beautiful-dnd": 13.1.2 "@types/react-dom": 17.0.14 @@ -21603,13 +21549,11 @@ __metadata: "@types/react-window": 1.8.5 "@types/react-window-infinite-loader": ^1 "@types/redux-mock-store": 1.0.3 - "@types/reselect": 2.2.0 "@types/semver": 7.3.13 "@types/slate": 0.47.11 "@types/slate-plain-serializer": 0.7.2 "@types/slate-react": 0.22.9 "@types/testing-library__jest-dom": 5.14.5 - "@types/testing-library__react-hooks": ^3.2.0 "@types/tinycolor2": 1.4.3 "@types/uuid": 8.3.4 "@types/webpack-env": 1.18.0 @@ -27864,7 +27808,7 @@ __metadata: languageName: node linkType: hard -"moment@npm:2.29.4, moment@npm:2.x, moment@npm:>= 2.9.0, moment@npm:^2.19.4, moment@npm:^2.20.1, moment@npm:^2.29.4": +"moment@npm:2.29.4, moment@npm:2.x, moment@npm:>= 2.9.0, moment@npm:^2.20.1, moment@npm:^2.29.4": version: 2.29.4 resolution: "moment@npm:2.29.4" checksum: 0ec3f9c2bcba38dc2451b1daed5daded747f17610b92427bebe1d08d48d8b7bdd8d9197500b072d14e326dd0ccf3e326b9e3d07c5895d3d49e39b6803b76e80e @@ -31814,22 +31758,6 @@ __metadata: languageName: node linkType: hard -"rc-tree@npm:*": - version: 5.6.5 - resolution: "rc-tree@npm:5.6.5" - dependencies: - "@babel/runtime": ^7.10.1 - classnames: 2.x - rc-motion: ^2.0.1 - rc-util: ^5.16.1 - rc-virtual-list: ^3.4.8 - peerDependencies: - react: "*" - react-dom: "*" - checksum: 107efb7dbf6d44faf11072c4c53277f234ecd8d0c5a5cb387d5d9ac18b96098fa9cef3312f52589930c5562fd708f4da50f3b7880b27b2405c6ac558dce9f037 - languageName: node - linkType: hard - "rc-tree@npm:5.7.0, rc-tree@npm:~5.7.0": version: 5.7.0 resolution: "rc-tree@npm:5.7.0" @@ -33660,13 +33588,6 @@ __metadata: languageName: node linkType: hard -"reselect@npm:*": - version: 4.1.0 - resolution: "reselect@npm:4.1.0" - checksum: ef150c3cccf8c43f7e5f9f35b0f826f82287e84fb5219928b1c7a4c8e99297f004ecd27e4888334115d35c82ab20bc2c95987244d12253480d256a1241495ad2 - languageName: node - linkType: hard - "reselect@npm:4.1.6": version: 4.1.6 resolution: "reselect@npm:4.1.6"