From 52c951bd2cc17e55fc297a0ba823513e3793a9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 22 Apr 2025 11:38:19 +0200 Subject: [PATCH] remove alpha, and the creator options type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/old-crews-serve.md | 2 +- .../package.json | 4 ---- .../report-alpha.api.md | 13 ---------- .../report.api.md | 16 ------------- .../src/alpha.ts | 24 ------------------- .../src/index.ts | 1 - .../src/types.ts | 16 ------------- 7 files changed, 1 insertion(+), 75 deletions(-) delete mode 100644 plugins/catalog-backend-module-incremental-ingestion/report-alpha.api.md delete mode 100644 plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts diff --git a/.changeset/old-crews-serve.md b/.changeset/old-crews-serve.md index 8b588aeb50..db6bb4cf23 100644 --- a/.changeset/old-crews-serve.md +++ b/.changeset/old-crews-serve.md @@ -2,4 +2,4 @@ '@backstage/plugin-catalog-backend-module-incremental-ingestion': minor --- -**BREAKING** Removed support for the legacy backend, please [migrate to the new backend system](https://github.com/backstage/backstage/tree/v1.38.0/plugins/catalog-backend-module-incremental-ingestion#installation). +**BREAKING** Removed support for the legacy backend, please [migrate to the new backend system](https://github.com/backstage/backstage/tree/v1.38.0/plugins/catalog-backend-module-incremental-ingestion#installation). Also, if you were importing from the `/alpha` export of this package, you should remove the `/alpha` part. diff --git a/plugins/catalog-backend-module-incremental-ingestion/package.json b/plugins/catalog-backend-module-incremental-ingestion/package.json index 09f0fb37ea..ae6695188e 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/package.json +++ b/plugins/catalog-backend-module-incremental-ingestion/package.json @@ -22,16 +22,12 @@ "license": "Apache-2.0", "exports": { ".": "./src/index.ts", - "./alpha": "./src/alpha.ts", "./package.json": "./package.json" }, "main": "src/index.ts", "types": "src/index.ts", "typesVersions": { "*": { - "alpha": [ - "src/alpha.ts" - ], "package.json": [ "package.json" ] diff --git a/plugins/catalog-backend-module-incremental-ingestion/report-alpha.api.md b/plugins/catalog-backend-module-incremental-ingestion/report-alpha.api.md deleted file mode 100644 index 30717e8752..0000000000 --- a/plugins/catalog-backend-module-incremental-ingestion/report-alpha.api.md +++ /dev/null @@ -1,13 +0,0 @@ -## API Report File for "@backstage/plugin-catalog-backend-module-incremental-ingestion" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts -import { BackendFeature } from '@backstage/backend-plugin-api'; - -// @alpha @deprecated (undocumented) -const _feature: BackendFeature; -export default _feature; - -// (No @packageDocumentation comment for this package) -``` diff --git a/plugins/catalog-backend-module-incremental-ingestion/report.api.md b/plugins/catalog-backend-module-incremental-ingestion/report.api.md index 4c82b011b1..b1fac447b2 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/report.api.md +++ b/plugins/catalog-backend-module-incremental-ingestion/report.api.md @@ -4,18 +4,12 @@ ```ts import { BackendFeature } from '@backstage/backend-plugin-api'; -import { DatabaseService } from '@backstage/backend-plugin-api'; import type { DeferredEntity } from '@backstage/plugin-catalog-node'; import { EventParams } from '@backstage/plugin-events-node'; import { ExtensionPoint } from '@backstage/backend-plugin-api'; import { HumanDuration } from '@backstage/types'; import { IncrementalEntityProvider as IncrementalEntityProvider_2 } from '@backstage/plugin-catalog-backend-module-incremental-ingestion'; import { IncrementalEntityProviderOptions as IncrementalEntityProviderOptions_2 } from '@backstage/plugin-catalog-backend-module-incremental-ingestion'; -import { PermissionsService } from '@backstage/backend-plugin-api'; -import { RootConfigService } from '@backstage/backend-plugin-api'; -import { RootLoggerService } from '@backstage/backend-plugin-api'; -import { SchedulerService } from '@backstage/backend-plugin-api'; -import { UrlReaderService } from '@backstage/backend-plugin-api'; // @public const catalogModuleIncrementalIngestionEntityProvider: BackendFeature; @@ -81,14 +75,4 @@ export interface IncrementalIngestionProviderExtensionPoint { // @public export const incrementalIngestionProvidersExtensionPoint: ExtensionPoint; - -// @public (undocumented) -export type PluginEnvironment = { - logger: RootLoggerService; - database: DatabaseService; - scheduler: SchedulerService; - config: RootConfigService; - reader: UrlReaderService; - permissions: PermissionsService; -}; ``` diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts b/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts deleted file mode 100644 index 776dd937bf..0000000000 --- a/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 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 { default as feature } from './module'; - -/** - * @alpha - * @deprecated Please import from `@backstage/plugin-catalog-backend-module-incremental-ingestion` instead - */ -const _feature = feature; -export default _feature; diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/index.ts b/plugins/catalog-backend-module-incremental-ingestion/src/index.ts index 6ffd1c9ef0..2772da2041 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/src/index.ts +++ b/plugins/catalog-backend-module-incremental-ingestion/src/index.ts @@ -27,5 +27,4 @@ export { type IncrementalEntityEventResult, type IncrementalEntityProvider, type IncrementalEntityProviderOptions, - type PluginEnvironment, } from './types'; diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/types.ts b/plugins/catalog-backend-module-incremental-ingestion/src/types.ts index 2c951aea07..75aecf8fa5 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/src/types.ts +++ b/plugins/catalog-backend-module-incremental-ingestion/src/types.ts @@ -15,14 +15,8 @@ */ import { - DatabaseService, LoggerService, - PermissionsService, - RootConfigService, - RootLoggerService, - SchedulerService, SchedulerServiceTaskFunction, - UrlReaderService, } from '@backstage/backend-plugin-api'; import type { DeferredEntity, @@ -184,16 +178,6 @@ export interface IncrementalEntityProviderOptions { rejectEmptySourceCollections?: boolean; } -/** @public */ -export type PluginEnvironment = { - logger: RootLoggerService; - database: DatabaseService; - scheduler: SchedulerService; - config: RootConfigService; - reader: UrlReaderService; - permissions: PermissionsService; -}; - export interface IterationEngine { taskFn: SchedulerServiceTaskFunction; }