From c24bae00855e57bd56ba95d79f8428090da28fbb Mon Sep 17 00:00:00 2001 From: Colton Padden Date: Wed, 15 Dec 2021 08:57:02 -0500 Subject: [PATCH] release-2021-11-18 packages/core-plugin-api/src/apis/definitions/ErrorApi.ts:34,50 Signed-off-by: Colton Padden --- .changeset/nice-apricots-grow.md | 1 + packages/core-plugin-api/api-report.md | 7 ------- .../core-plugin-api/src/apis/definitions/ErrorApi.ts | 12 ------------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/.changeset/nice-apricots-grow.md b/.changeset/nice-apricots-grow.md index ed16036d74..3e2f890717 100644 --- a/.changeset/nice-apricots-grow.md +++ b/.changeset/nice-apricots-grow.md @@ -5,3 +5,4 @@ - Removed deprecated option `description` from `ApiRefConfig` - Removed descriptions from all plugin API refs - Removed deprecated parameters `path`, `icon`, and `title` in `createRouteRef` +- Removed deprecated types `Error` and `ErrorContext` from `ErrorApi` diff --git a/packages/core-plugin-api/api-report.md b/packages/core-plugin-api/api-report.md index ee7a0764b1..709e56c22d 100644 --- a/packages/core-plugin-api/api-report.md +++ b/packages/core-plugin-api/api-report.md @@ -395,10 +395,6 @@ export interface ElementCollection { }): ElementCollection; } -// @public @deprecated (undocumented) -type Error_2 = ErrorApiError; -export { Error_2 as Error }; - // @public export type ErrorApi = { post(error: ErrorApiError, context?: ErrorApiErrorContext): void; @@ -430,9 +426,6 @@ export type ErrorBoundaryFallbackProps = { resetError: () => void; }; -// @public @deprecated (undocumented) -export type ErrorContext = ErrorApiErrorContext; - // @public export type Extension = { expose(plugin: BackstagePlugin): T; diff --git a/packages/core-plugin-api/src/apis/definitions/ErrorApi.ts b/packages/core-plugin-api/src/apis/definitions/ErrorApi.ts index 364a7bd29a..9c73d94cac 100644 --- a/packages/core-plugin-api/src/apis/definitions/ErrorApi.ts +++ b/packages/core-plugin-api/src/apis/definitions/ErrorApi.ts @@ -29,12 +29,6 @@ export type ErrorApiError = { stack?: string; }; -/** - * @public - * @deprecated Use ErrorApiError instead - */ -export type Error = ErrorApiError; - /** * Provides additional information about an error that was posted to the application. * @@ -53,12 +47,6 @@ export type ErrorApiErrorContext = { hidden?: boolean; }; -/** - * @public - * @deprecated Use ErrorApiErrorContext instead - */ -export type ErrorContext = ErrorApiErrorContext; - /** * The error API is used to report errors to the app, and display them to the user. *