From 8699b79c769ae9cf491ca827fb3223933a462a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 29 Jan 2025 17:17:20 +0100 Subject: [PATCH] removed all knip-reported backend-common usages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/gold-cameras-battle.md | 8 ++++++++ plugins/auth-node/knip-report.md | 7 ------- plugins/auth-node/package.json | 2 -- plugins/example-todo-list-backend/knip-report.md | 8 -------- plugins/example-todo-list-backend/package.json | 5 +---- plugins/scaffolder/knip-report.md | 9 ++++++++- plugins/search-backend-module-catalog/knip-report.md | 7 ------- plugins/search-backend-module-catalog/package.json | 4 +--- plugins/search-backend-module-pg/knip-report.md | 6 ------ plugins/search-backend-module-pg/package.json | 1 - plugins/search-backend-node/knip-report.md | 6 ------ plugins/search-backend-node/package.json | 1 - yarn.lock | 9 --------- 13 files changed, 18 insertions(+), 55 deletions(-) create mode 100644 .changeset/gold-cameras-battle.md diff --git a/.changeset/gold-cameras-battle.md b/.changeset/gold-cameras-battle.md new file mode 100644 index 0000000000..6dddcd5143 --- /dev/null +++ b/.changeset/gold-cameras-battle.md @@ -0,0 +1,8 @@ +--- +'@backstage/plugin-search-backend-module-catalog': patch +'@backstage/plugin-search-backend-module-pg': patch +'@backstage/plugin-search-backend-node': patch +'@backstage/plugin-auth-node': patch +--- + +Removed unused dependencies diff --git a/plugins/auth-node/knip-report.md b/plugins/auth-node/knip-report.md index 51c7faf1d8..2661c35327 100644 --- a/plugins/auth-node/knip-report.md +++ b/plugins/auth-node/knip-report.md @@ -1,9 +1,2 @@ # Knip report -## Unused dependencies (2) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | -| winston | package.json | error | - diff --git a/plugins/auth-node/package.json b/plugins/auth-node/package.json index 6f9f71c2e7..7bdf4bed18 100644 --- a/plugins/auth-node/package.json +++ b/plugins/auth-node/package.json @@ -37,7 +37,6 @@ "test": "backstage-cli package test" }, "dependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-plugin-api": "workspace:^", "@backstage/catalog-client": "workspace:^", "@backstage/catalog-model": "workspace:^", @@ -50,7 +49,6 @@ "jose": "^5.0.0", "lodash": "^4.17.21", "passport": "^0.7.0", - "winston": "^3.2.1", "zod": "^3.22.4", "zod-to-json-schema": "^3.21.4", "zod-validation-error": "^3.4.0" diff --git a/plugins/example-todo-list-backend/knip-report.md b/plugins/example-todo-list-backend/knip-report.md index c84ed61781..2661c35327 100644 --- a/plugins/example-todo-list-backend/knip-report.md +++ b/plugins/example-todo-list-backend/knip-report.md @@ -1,10 +1,2 @@ # Knip report -## Unused dependencies (3) - -| Name | Location | Severity | -| :-------------------------- | :----------- | :------- | -| @backstage/plugin-auth-node | package.json | error | -| @backstage/backend-common | package.json | error | -| yn | package.json | error | - diff --git a/plugins/example-todo-list-backend/package.json b/plugins/example-todo-list-backend/package.json index 5421176db2..c3239ed825 100644 --- a/plugins/example-todo-list-backend/package.json +++ b/plugins/example-todo-list-backend/package.json @@ -38,15 +38,12 @@ "test": "backstage-cli package test" }, "dependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-plugin-api": "workspace:^", "@backstage/errors": "workspace:^", - "@backstage/plugin-auth-node": "workspace:^", "@types/express": "^4.17.6", "express": "^4.17.1", "express-promise-router": "^4.1.0", - "uuid": "^11.0.0", - "yn": "^4.0.0" + "uuid": "^11.0.0" }, "devDependencies": { "@backstage/backend-defaults": "workspace:^", diff --git a/plugins/scaffolder/knip-report.md b/plugins/scaffolder/knip-report.md index 02a697ddb0..7d1731eb0b 100644 --- a/plugins/scaffolder/knip-report.md +++ b/plugins/scaffolder/knip-report.md @@ -1,10 +1,17 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (4) | Name | Location | Severity | | :------------------ | :----------- | :------- | | json-schema-library | package.json | error | | @rjsf/material-ui | package.json | error | +| react-resizable | package.json | error | | git-url-parse | package.json | error | +## Unused devDependencies (1) + +| Name | Location | Severity | +| :--------------------- | :----------- | :------- | +| @types/react-resizable | package.json | error | + diff --git a/plugins/search-backend-module-catalog/knip-report.md b/plugins/search-backend-module-catalog/knip-report.md index 5a09f2cded..2661c35327 100644 --- a/plugins/search-backend-module-catalog/knip-report.md +++ b/plugins/search-backend-module-catalog/knip-report.md @@ -1,9 +1,2 @@ # Knip report -## Unused devDependencies (2) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | -| msw | package.json | error | - diff --git a/plugins/search-backend-module-catalog/package.json b/plugins/search-backend-module-catalog/package.json index ab00046d36..aa13dc01c4 100644 --- a/plugins/search-backend-module-catalog/package.json +++ b/plugins/search-backend-module-catalog/package.json @@ -47,10 +47,8 @@ "@backstage/plugin-search-common": "workspace:^" }, "devDependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-test-utils": "workspace:^", - "@backstage/cli": "workspace:^", - "msw": "^1.0.0" + "@backstage/cli": "workspace:^" }, "configSchema": "config.d.ts" } diff --git a/plugins/search-backend-module-pg/knip-report.md b/plugins/search-backend-module-pg/knip-report.md index 2fbb979fec..2661c35327 100644 --- a/plugins/search-backend-module-pg/knip-report.md +++ b/plugins/search-backend-module-pg/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | - diff --git a/plugins/search-backend-module-pg/package.json b/plugins/search-backend-module-pg/package.json index 8bbdb6e965..f7530637c2 100644 --- a/plugins/search-backend-module-pg/package.json +++ b/plugins/search-backend-module-pg/package.json @@ -49,7 +49,6 @@ "test": "backstage-cli package test" }, "dependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-plugin-api": "workspace:^", "@backstage/config": "workspace:^", "@backstage/plugin-search-backend-node": "workspace:^", diff --git a/plugins/search-backend-node/knip-report.md b/plugins/search-backend-node/knip-report.md index ec020eab9a..2661c35327 100644 --- a/plugins/search-backend-node/knip-report.md +++ b/plugins/search-backend-node/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused devDependencies (1) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | - diff --git a/plugins/search-backend-node/package.json b/plugins/search-backend-node/package.json index 409cdbbd9d..172e273092 100644 --- a/plugins/search-backend-node/package.json +++ b/plugins/search-backend-node/package.json @@ -65,7 +65,6 @@ "uuid": "^11.0.0" }, "devDependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-defaults": "workspace:^", "@backstage/backend-test-utils": "workspace:^", "@backstage/cli": "workspace:^", diff --git a/yarn.lock b/yarn.lock index d2f3bfbe85..c5f21afd7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5645,7 +5645,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-auth-node@workspace:plugins/auth-node" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-defaults": "workspace:^" "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" @@ -5666,7 +5665,6 @@ __metadata: passport: ^0.7.0 supertest: ^7.0.0 uuid: ^11.0.0 - winston: ^3.2.1 zod: ^3.22.4 zod-to-json-schema: ^3.21.4 zod-validation-error: ^3.4.0 @@ -7979,7 +7977,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-search-backend-module-catalog@workspace:plugins/search-backend-module-catalog" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" "@backstage/catalog-client": "workspace:^" @@ -7992,7 +7989,6 @@ __metadata: "@backstage/plugin-permission-common": "workspace:^" "@backstage/plugin-search-backend-node": "workspace:^" "@backstage/plugin-search-common": "workspace:^" - msw: ^1.0.0 languageName: unknown linkType: soft @@ -8038,7 +8034,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-search-backend-module-pg@workspace:plugins/search-backend-module-pg" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" "@backstage/cli": "workspace:^" @@ -8093,7 +8088,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-search-backend-node@workspace:plugins/search-backend-node" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-defaults": "workspace:^" "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" @@ -10873,20 +10867,17 @@ __metadata: version: 0.0.0-use.local resolution: "@internal/plugin-todo-list-backend@workspace:plugins/example-todo-list-backend" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-defaults": "workspace:^" "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" "@backstage/cli": "workspace:^" "@backstage/errors": "workspace:^" - "@backstage/plugin-auth-node": "workspace:^" "@types/express": ^4.17.6 "@types/supertest": ^2.0.8 express: ^4.17.1 express-promise-router: ^4.1.0 supertest: ^7.0.0 uuid: ^11.0.0 - yn: ^4.0.0 languageName: unknown linkType: soft