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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user