diff --git a/.changeset/brown-dryers-serve.md b/.changeset/brown-dryers-serve.md new file mode 100644 index 0000000000..40c02538b8 --- /dev/null +++ b/.changeset/brown-dryers-serve.md @@ -0,0 +1,10 @@ +--- +'@backstage/catalog-client': minor +--- + +**BREAKING**: Removed the old deprecated request/response types: + +- `CatalogEntitiesRequest` - please use `GetEntitiesRequest` instead +- `CatalogEntityAncestorsRequest` - please use `GetEntityAncestorsRequest` instead +- `CatalogEntityAncestorsResponse` - please use `GetEntityAncestorsResponse` instead +- `CatalogListResponse` - please use `GetEntitiesResponse` instead diff --git a/packages/catalog-client/api-report.md b/packages/catalog-client/api-report.md index ce6397f51e..ef19effe90 100644 --- a/packages/catalog-client/api-report.md +++ b/packages/catalog-client/api-report.md @@ -130,18 +130,6 @@ export class CatalogClient implements CatalogApi { ): Promise; } -// @public @deprecated (undocumented) -export type CatalogEntitiesRequest = GetEntitiesRequest; - -// @public @deprecated (undocumented) -export type CatalogEntityAncestorsRequest = GetEntityAncestorsRequest; - -// @public @deprecated (undocumented) -export type CatalogEntityAncestorsResponse = GetEntityAncestorsResponse; - -// @public @deprecated (undocumented) -export type CatalogListResponse<_Entity> = GetEntitiesResponse; - // @public export interface CatalogRequestOptions { // (undocumented) diff --git a/packages/catalog-client/src/types/deprecated.ts b/packages/catalog-client/src/types/deprecated.ts deleted file mode 100644 index 0b145f3024..0000000000 --- a/packages/catalog-client/src/types/deprecated.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 The Backstage Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - GetEntitiesRequest, - GetEntitiesResponse, - GetEntityAncestorsRequest, - GetEntityAncestorsResponse, -} from './api'; - -/** - * @public - * @deprecated use GetEntitiesRequest instead - */ -export type CatalogEntitiesRequest = GetEntitiesRequest; -/** - * @public - * @deprecated use GetEntitiesResponse instead - */ -export type CatalogListResponse<_Entity> = GetEntitiesResponse; -/** - * @public - * @deprecated use GetEntityAncestorsRequest instead - */ -export type CatalogEntityAncestorsRequest = GetEntityAncestorsRequest; -/** - * @public - * @deprecated use GetEntityAncestorsResponse instead - */ -export type CatalogEntityAncestorsResponse = GetEntityAncestorsResponse; diff --git a/packages/catalog-client/src/types/index.ts b/packages/catalog-client/src/types/index.ts index 39c8962b68..8bf4e34da2 100644 --- a/packages/catalog-client/src/types/index.ts +++ b/packages/catalog-client/src/types/index.ts @@ -28,5 +28,4 @@ export type { GetEntityFacetsRequest, GetEntityFacetsResponse, } from './api'; -export * from './deprecated'; export { ENTITY_STATUS_CATALOG_PROCESSING_TYPE } from './status';