code-coverage - Deprecated legacy backend (#2046)

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

View File

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

View File

@ -18,10 +18,10 @@ import { UrlReaderService } from '@backstage/backend-plugin-api';
const codeCoveragePlugin: BackendFeature;
export default codeCoveragePlugin;
// @public
// @public @deprecated (undocumented)
export function createRouter(options: RouterOptions): Promise<express.Router>;
// @public
// @public @deprecated (undocumented)
export interface RouterOptions {
// (undocumented)
auth?: AuthService;

View File

@ -38,6 +38,8 @@ import {
import { MiddlewareFactory } from '@backstage/backend-defaults/rootHttpRouter';
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* Options for {@link createRouter}.
*
* @public
@ -263,6 +265,8 @@ export const makeRouter = async (
};
/**
* @deprecated Please migrate to the new backend system as this will be removed in the future.
*
* Creates a code-coverage plugin backend router.
*
* @public