Merge pull request #31242 from hopehadfield/remove-more-unused

Remove unused dependencies from kubernetes, signals, and techdocs
This commit is contained in:
Fredrik Adelöw
2025-10-29 22:50:03 +01:00
committed by GitHub
13 changed files with 22 additions and 148 deletions
+10
View File
@@ -0,0 +1,10 @@
---
'@backstage/plugin-search-backend-module-elasticsearch': patch
'@backstage/plugin-kubernetes-backend': patch
'@backstage/plugin-techdocs-backend': patch
'@backstage/plugin-signals-backend': patch
'@backstage/plugin-techdocs': patch
'@backstage/plugin-signals': patch
---
Removed/moved unused dependencies
-19
View File
@@ -1,22 +1,3 @@
# Knip report
## Unused dependencies (8)
| Name | Location | Severity |
| :-------------------------- | :----------- | :------- |
| @backstage/plugin-auth-node | plugins/kubernetes-backend/package.json | error |
| stream-buffers | plugins/kubernetes-backend/package.json | error |
| compression | plugins/kubernetes-backend/package.json | error |
| winston | plugins/kubernetes-backend/package.json | error |
| helmet | plugins/kubernetes-backend/package.json | error |
| morgan | plugins/kubernetes-backend/package.json | error |
| cors | plugins/kubernetes-backend/package.json | error |
| yn | plugins/kubernetes-backend/package.json | error |
## Unused devDependencies (2)
| Name | Location | Severity |
| :------------------------- | :----------- | :------- |
| @backstage/backend-app-api | plugins/kubernetes-backend/package.json | error |
| @types/aws4 | plugins/kubernetes-backend/package.json | error |
+1 -11
View File
@@ -53,7 +53,6 @@
"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/integration-aws-node": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/plugin-catalog-node": "workspace:^",
"@backstage/plugin-kubernetes-common": "workspace:^",
"@backstage/plugin-kubernetes-node": "workspace:^",
@@ -64,29 +63,20 @@
"@jest-mock/express": "^2.0.1",
"@kubernetes/client-node": "1.1.2",
"@types/http-proxy-middleware": "^1.0.0",
"compression": "^1.7.4",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"fs-extra": "^11.2.0",
"helmet": "^6.0.0",
"http-proxy-middleware": "^2.0.6",
"lodash": "^4.17.21",
"luxon": "^3.0.0",
"morgan": "^1.10.0",
"node-fetch": "^2.7.0",
"stream-buffers": "^3.0.2",
"winston": "^3.2.1",
"yn": "^4.0.0"
"node-fetch": "^2.7.0"
},
"devDependencies": {
"@backstage/backend-app-api": "workspace:^",
"@backstage/backend-defaults": "workspace:^",
"@backstage/backend-test-utils": "workspace:^",
"@backstage/cli": "workspace:^",
"@backstage/plugin-permission-backend": "workspace:^",
"@backstage/plugin-permission-backend-module-allow-all-policy": "workspace:^",
"@types/aws4": "^1.5.1",
"@types/express": "^4.17.6",
"@types/luxon": "^3.0.0",
"msw": "^1.0.0",
@@ -64,7 +64,8 @@
"@backstage/backend-test-utils": "workspace:^",
"@backstage/cli": "workspace:^",
"@elastic/elasticsearch-mock": "^1.0.0",
"@short.io/opensearch-mock": "^0.4.0"
"@short.io/opensearch-mock": "^0.4.0",
"@types/aws4": "^1.5.1"
},
"configSchema": "config.d.ts"
}
-14
View File
@@ -1,17 +1,3 @@
# Knip report
## Unused dependencies (4)
| Name | Location | Severity |
| :-------------------------- | :----------- | :------- |
| @backstage/plugin-auth-node | plugins/signals-backend/package.json | error |
| http-proxy-middleware | plugins/signals-backend/package.json | error |
| winston | plugins/signals-backend/package.json | error |
| yn | plugins/signals-backend/package.json | error |
## Unused devDependencies (1)
| Name | Location | Severity |
| :-- | :----------- | :------- |
| msw | plugins/signals-backend/package.json | error |
+1 -6
View File
@@ -39,17 +39,13 @@
"dependencies": {
"@backstage/backend-plugin-api": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/plugin-events-node": "workspace:^",
"@backstage/plugin-signals-node": "workspace:^",
"@backstage/types": "workspace:^",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"http-proxy-middleware": "^2.0.0",
"uuid": "^11.0.0",
"winston": "^3.2.1",
"ws": "^8.18.0",
"yn": "^4.0.0"
"ws": "^8.18.0"
},
"devDependencies": {
"@backstage/backend-defaults": "workspace:^",
@@ -61,7 +57,6 @@
"@types/express": "^4.17.6",
"@types/supertest": "^2.0.8",
"@types/ws": "^8.5.10",
"msw": "^1.0.0",
"supertest": "^7.0.0"
}
}
-15
View File
@@ -1,18 +1,3 @@
# Knip report
## Unused dependencies (3)
| Name | Location | Severity |
| :----------------- | :----------- | :------- |
| @material-ui/icons | plugins/signals/package.json | error |
| @material-ui/lab | plugins/signals/package.json | error |
| react-use | plugins/signals/package.json | error |
## Unused devDependencies (3)
| Name | Location | Severity |
| :-------------------------- | :----------- | :------- |
| @testing-library/user-event | plugins/signals/package.json | error |
| @backstage/core-app-api | plugins/signals/package.json | error |
| msw | plugins/signals/package.json | error |
-6
View File
@@ -59,22 +59,16 @@
"@backstage/theme": "workspace:^",
"@backstage/types": "workspace:^",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.61",
"react-use": "^17.2.4",
"uuid": "^11.0.0"
},
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/dev-utils": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.0.0",
"@types/react": "^18.0.0",
"jest-websocket-mock": "^2.5.0",
"msw": "^1.0.0",
"react": "^18.0.2",
"react-dom": "^18.0.2",
"react-router-dom": "^6.3.0"
-9
View File
@@ -1,12 +1,3 @@
# Knip report
## Unused dependencies (5)
| Name | Location | Severity |
| :----------------------------------------------- | :----------- | :------- |
| @backstage/plugin-search-backend-module-techdocs | plugins/techdocs-backend/package.json | error |
| @backstage/plugin-permission-common | plugins/techdocs-backend/package.json | error |
| @backstage/plugin-techdocs-common | plugins/techdocs-backend/package.json | error |
| @backstage/plugin-catalog-common | plugins/techdocs-backend/package.json | error |
| lodash | plugins/techdocs-backend/package.json | error |
-5
View File
@@ -65,18 +65,13 @@
"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/integration": "workspace:^",
"@backstage/plugin-catalog-common": "workspace:^",
"@backstage/plugin-catalog-node": "workspace:^",
"@backstage/plugin-permission-common": "workspace:^",
"@backstage/plugin-search-backend-module-techdocs": "workspace:^",
"@backstage/plugin-techdocs-common": "workspace:^",
"@backstage/plugin-techdocs-node": "workspace:^",
"@backstage/types": "workspace:^",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"fs-extra": "^11.2.0",
"knex": "^3.0.0",
"lodash": "^4.17.21",
"p-limit": "^3.1.0",
"winston": "^3.2.1"
},
-5
View File
@@ -1,8 +1,3 @@
# Knip report
## Unused dependencies (1)
| Name | Location | Severity |
| :-- | :----------- | :------- |
| jss | plugins/techdocs/package.json | error |
-1
View File
@@ -83,7 +83,6 @@
"@microsoft/fetch-event-source": "^2.0.1",
"dompurify": "^3.2.4",
"git-url-parse": "^15.0.0",
"jss": "~10.10.0",
"lodash": "^4.17.21",
"react-helmet": "6.1.0",
"react-use": "^17.2.4"
+8 -56
View File
@@ -5876,7 +5876,6 @@ __metadata:
"@aws-sdk/credential-providers": "npm:^3.350.0"
"@aws-sdk/signature-v4": "npm:^3.347.0"
"@azure/identity": "npm:^4.0.0"
"@backstage/backend-app-api": "workspace:^"
"@backstage/backend-defaults": "workspace:^"
"@backstage/backend-plugin-api": "workspace:^"
"@backstage/backend-test-utils": "workspace:^"
@@ -5886,7 +5885,6 @@ __metadata:
"@backstage/config": "workspace:^"
"@backstage/errors": "workspace:^"
"@backstage/integration-aws-node": "workspace:^"
"@backstage/plugin-auth-node": "workspace:^"
"@backstage/plugin-catalog-node": "workspace:^"
"@backstage/plugin-kubernetes-common": "workspace:^"
"@backstage/plugin-kubernetes-node": "workspace:^"
@@ -5898,27 +5896,19 @@ __metadata:
"@google-cloud/container": "npm:^5.0.0"
"@jest-mock/express": "npm:^2.0.1"
"@kubernetes/client-node": "npm:1.1.2"
"@types/aws4": "npm:^1.5.1"
"@types/express": "npm:^4.17.6"
"@types/http-proxy-middleware": "npm:^1.0.0"
"@types/luxon": "npm:^3.0.0"
compression: "npm:^1.7.4"
cors: "npm:^2.8.5"
express: "npm:^4.17.1"
express-promise-router: "npm:^4.1.0"
fs-extra: "npm:^11.2.0"
helmet: "npm:^6.0.0"
http-proxy-middleware: "npm:^2.0.6"
lodash: "npm:^4.17.21"
luxon: "npm:^3.0.0"
morgan: "npm:^1.10.0"
msw: "npm:^1.0.0"
node-fetch: "npm:^2.7.0"
stream-buffers: "npm:^3.0.2"
supertest: "npm:^7.0.0"
winston: "npm:^3.2.1"
ws: "npm:^8.18.0"
yn: "npm:^4.0.0"
languageName: unknown
linkType: soft
@@ -7120,6 +7110,7 @@ __metadata:
"@elastic/elasticsearch-mock": "npm:^1.0.0"
"@opensearch-project/opensearch": "npm:^2.2.1"
"@short.io/opensearch-mock": "npm:^0.4.0"
"@types/aws4": "npm:^1.5.1"
aws4: "npm:^1.12.0"
elastic-builder: "npm:^2.16.0"
lodash: "npm:^4.17.21"
@@ -7350,7 +7341,6 @@ __metadata:
"@backstage/config": "workspace:^"
"@backstage/plugin-auth-backend": "workspace:^"
"@backstage/plugin-auth-backend-module-guest-provider": "workspace:^"
"@backstage/plugin-auth-node": "workspace:^"
"@backstage/plugin-events-backend": "workspace:^"
"@backstage/plugin-events-node": "workspace:^"
"@backstage/plugin-signals-node": "workspace:^"
@@ -7360,13 +7350,9 @@ __metadata:
"@types/ws": "npm:^8.5.10"
express: "npm:^4.17.1"
express-promise-router: "npm:^4.1.0"
http-proxy-middleware: "npm:^2.0.0"
msw: "npm:^1.0.0"
supertest: "npm:^7.0.0"
uuid: "npm:^11.0.0"
winston: "npm:^3.2.1"
ws: "npm:^8.18.0"
yn: "npm:^4.0.0"
languageName: unknown
linkType: soft
@@ -7418,7 +7404,6 @@ __metadata:
resolution: "@backstage/plugin-signals@workspace:plugins/signals"
dependencies:
"@backstage/cli": "workspace:^"
"@backstage/core-app-api": "workspace:^"
"@backstage/core-compat-api": "workspace:^"
"@backstage/core-components": "workspace:^"
"@backstage/core-plugin-api": "workspace:^"
@@ -7429,18 +7414,13 @@ __metadata:
"@backstage/theme": "workspace:^"
"@backstage/types": "workspace:^"
"@material-ui/core": "npm:^4.12.4"
"@material-ui/icons": "npm:^4.9.1"
"@material-ui/lab": "npm:^4.0.0-alpha.61"
"@testing-library/jest-dom": "npm:^6.0.0"
"@testing-library/react": "npm:^16.0.0"
"@testing-library/user-event": "npm:^14.0.0"
"@types/react": "npm:^18.0.0"
jest-websocket-mock: "npm:^2.5.0"
msw: "npm:^1.0.0"
react: "npm:^18.0.2"
react-dom: "npm:^18.0.2"
react-router-dom: "npm:^6.3.0"
react-use: "npm:^17.2.4"
uuid: "npm:^11.0.0"
peerDependencies:
"@types/react": ^17.0.0 || ^18.0.0
@@ -7499,11 +7479,7 @@ __metadata:
"@backstage/config": "workspace:^"
"@backstage/errors": "workspace:^"
"@backstage/integration": "workspace:^"
"@backstage/plugin-catalog-common": "workspace:^"
"@backstage/plugin-catalog-node": "workspace:^"
"@backstage/plugin-permission-common": "workspace:^"
"@backstage/plugin-search-backend-module-techdocs": "workspace:^"
"@backstage/plugin-techdocs-common": "workspace:^"
"@backstage/plugin-techdocs-node": "workspace:^"
"@backstage/types": "workspace:^"
"@types/express": "npm:^4.17.6"
@@ -7511,7 +7487,6 @@ __metadata:
express-promise-router: "npm:^4.1.0"
fs-extra: "npm:^11.2.0"
knex: "npm:^3.0.0"
lodash: "npm:^4.17.21"
msw: "npm:^2.0.0"
p-limit: "npm:^3.1.0"
supertest: "npm:^7.0.0"
@@ -7686,7 +7661,6 @@ __metadata:
"@types/react": "npm:^18.0.0"
dompurify: "npm:^3.2.4"
git-url-parse: "npm:^15.0.0"
jss: "npm:~10.10.0"
lodash: "npm:^4.17.21"
react: "npm:^18.0.2"
react-dom: "npm:^18.0.2"
@@ -25200,15 +25174,6 @@ __metadata:
languageName: node
linkType: hard
"basic-auth@npm:~2.0.1":
version: 2.0.1
resolution: "basic-auth@npm:2.0.1"
dependencies:
safe-buffer: "npm:5.1.2"
checksum: 10/3419b805d5dfc518f3a05dcf42aa53aa9ce820e50b6df5097f9e186322e1bc733c36722b624802cd37e791035aa73b828ed814d8362333d42d7f5cd04d7a5e48
languageName: node
linkType: hard
"basic-ftp@npm:^5.0.2":
version: 5.0.3
resolution: "basic-ftp@npm:5.0.3"
@@ -39053,19 +39018,6 @@ __metadata:
languageName: node
linkType: hard
"morgan@npm:^1.10.0":
version: 1.10.1
resolution: "morgan@npm:1.10.1"
dependencies:
basic-auth: "npm:~2.0.1"
debug: "npm:2.6.9"
depd: "npm:~2.0.0"
on-finished: "npm:~2.3.0"
on-headers: "npm:~1.1.0"
checksum: 10/f6a611bdcb9bebe8283381c49efedee81f50b75f6cbc52430cda1743ec35443c92d5e5d4384ce38b102d8c102162c92da563471def3cf840b4980160f278f8ba
languageName: node
linkType: hard
"mri@npm:1.1.4":
version: 1.1.4
resolution: "mri@npm:1.1.4"
@@ -45094,13 +45046,6 @@ __metadata:
languageName: node
linkType: hard
"safe-buffer@npm:5.1.2, safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1":
version: 5.1.2
resolution: "safe-buffer@npm:5.1.2"
checksum: 10/7eb5b48f2ed9a594a4795677d5a150faa7eb54483b2318b568dc0c4fc94092a6cce5be02c7288a0500a156282f5276d5688bce7259299568d1053b2150ef374a
languageName: node
linkType: hard
"safe-buffer@npm:5.2.1, safe-buffer@npm:>=5.1.0, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:^5.1.1, safe-buffer@npm:^5.1.2, safe-buffer@npm:^5.2.1, safe-buffer@npm:~5.2.0":
version: 5.2.1
resolution: "safe-buffer@npm:5.2.1"
@@ -45108,6 +45053,13 @@ __metadata:
languageName: node
linkType: hard
"safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1":
version: 5.1.2
resolution: "safe-buffer@npm:5.1.2"
checksum: 10/7eb5b48f2ed9a594a4795677d5a150faa7eb54483b2318b568dc0c4fc94092a6cce5be02c7288a0500a156282f5276d5688bce7259299568d1053b2150ef374a
languageName: node
linkType: hard
"safe-identifier@npm:^0.4.2":
version: 0.4.2
resolution: "safe-identifier@npm:0.4.2"