backend-*-api: remove unused express dependencies

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-11-23 00:59:54 +01:00
parent 2c0c7ce888
commit eef3ef1785
8 changed files with 12 additions and 12 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/backend-plugin-api': patch
'@backstage/backend-app-api': patch
---
Removed unused `express` dependencies.
-2
View File
@@ -62,8 +62,6 @@
"compression": "^1.7.4",
"cookie": "^0.7.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"helmet": "^6.0.0",
"jose": "^5.0.0",
"knex": "^3.0.0",
-1
View File
@@ -61,7 +61,6 @@
"@backstage/types": "workspace:^",
"@types/express": "^4.17.6",
"@types/luxon": "^3.0.0",
"express": "^4.17.1",
"knex": "^3.0.0",
"luxon": "^3.0.0"
},
+3 -3
View File
@@ -10,7 +10,7 @@ import { AuthorizePermissionResponse } from '@backstage/plugin-permission-common
import { Config } from '@backstage/config';
import { Duration } from 'luxon';
import { EvaluatorRequestOptions } from '@backstage/plugin-permission-common';
import { Handler } from 'express';
import type { Handler } from 'express';
import { HumanDuration } from '@backstage/types';
import { isChildPath } from '@backstage/cli-common';
import { JsonObject } from '@backstage/types';
@@ -21,8 +21,8 @@ import { PermissionEvaluator } from '@backstage/plugin-permission-common';
import { QueryPermissionRequest } from '@backstage/plugin-permission-common';
import { QueryPermissionResponse } from '@backstage/plugin-permission-common';
import { Readable } from 'stream';
import { Request as Request_2 } from 'express';
import { Response as Response_2 } from 'express';
import type { Request as Request_2 } from 'express';
import type { Response as Response_2 } from 'express';
// @public
export interface AuthService {
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import { BackstageCredentials, BackstagePrincipalTypes } from './AuthService';
/**
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { Handler } from 'express';
import type { Handler } from 'express';
/**
* Options for {@link HttpRouterService.addAuthPolicy}.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { Handler } from 'express';
import type { Handler } from 'express';
/**
* HTTP route registration for root services.
-3
View File
@@ -3470,8 +3470,6 @@ __metadata:
compression: ^1.7.4
cookie: ^0.7.0
cors: ^2.8.5
express: ^4.17.1
express-promise-router: ^4.1.0
helmet: ^6.0.0
http-errors: ^2.0.0
jose: ^5.0.0
@@ -3754,7 +3752,6 @@ __metadata:
"@backstage/types": "workspace:^"
"@types/express": ^4.17.6
"@types/luxon": ^3.0.0
express: ^4.17.1
knex: ^3.0.0
luxon: ^3.0.0
languageName: unknown