backend-defaults: deprecate createLifecycleMiddleware

Reduce API surface by deprecating export with no external usage. Fixes #26359

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2024-09-02 15:12:21 +02:00
parent 61e1632dda
commit da5dd93618
2 changed files with 3 additions and 1 deletions
@@ -9,7 +9,7 @@ import { LifecycleService } from '@backstage/backend-plugin-api';
import { RequestHandler } from 'express';
import { ServiceFactory } from '@backstage/backend-plugin-api';
// @public
// @public @deprecated
export function createLifecycleMiddleware(
options: LifecycleMiddlewareOptions,
): RequestHandler;
@@ -48,6 +48,8 @@ export interface LifecycleMiddlewareOptions {
* {@link @backstage/errors#ServiceUnavailableError}.
*
* @public
* @deprecated This function export will be removed in a future release.
* If rely on this function then please reach out to the Backstage maintainers.
*/
export function createLifecycleMiddleware(
options: LifecycleMiddlewareOptions,