blackduck - Deprecated legacy backend (#2045)

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin 2024-12-01 12:03:25 -06:00 committed by GitHub
parent 37bd870128
commit ca201c4aef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
'@backstage-community/plugin-blackduck-backend': patch
---
Deprecated `createRouter` and its router options in favour of the new backend system.

View File

@ -34,10 +34,10 @@ export interface BlackDuckHostConfig {
const blackduckPlugin: BackendFeature;
export default blackduckPlugin;
// @public (undocumented)
// @public @deprecated (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// @public (undocumented)
// @public @deprecated (undocumented)
export interface RouterOptions {
// (undocumented)
blackDuckConfig: BlackDuckConfig;

View File

@ -35,7 +35,10 @@ import {
import { BlackDuckRestApi } from '../api/BlackDuckRestApi';
import { BlackDuckConfig } from './BlackDuckConfig';
/** @public */
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* @public */
export interface RouterOptions {
logger: LoggerService;
config: Config;
@ -45,7 +48,10 @@ export interface RouterOptions {
blackDuckConfig: BlackDuckConfig;
}
/** @public */
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {