tweak wording

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-08-16 11:20:25 +02:00
parent 9080f57970
commit a0211926ab
2 changed files with 21 additions and 16 deletions
+1 -1
View File
@@ -60,4 +60,4 @@
This may in particular affect tests; if you were effectively doing `createBackendModule({...})()` (note the parentheses), you can now remove those extra parentheses at the end. You may encounter cases of this in your `packages/backend/src/index.ts` too, where you add plugins, modules, and services. If you were using `createServiceFactory` with a function as its argument for the purpose of passing in options, this pattern has been deprecated for a while and is no longer supported. You may want to explore the new multiton patterns to achieve your goals, or moving settings to app-config.
As part of this change, the `IdentityFactoryOptions` and `RootConfigFactoryOptions` types were removed, and can no longer be used to tweak those services. The identity service was also deprecated some time ago, and you will want to [migrate to the new auth system](https://backstage.io/docs/tutorials/auth-service-migration) if you still rely on it.
As part of this change, the `IdentityFactoryOptions` type was removed, and can no longer be used to tweak that service. The identity service was also deprecated some time ago, and you will want to [migrate to the new auth system](https://backstage.io/docs/tutorials/auth-service-migration) if you still rely on it.
@@ -4,7 +4,6 @@
```ts
import { BackendFeature } from '@backstage/backend-plugin-api';
import { BackendFeatureCompat } from '@backstage/backend-plugin-api';
import { BackstagePackageJson } from '@backstage/cli-node';
import { CatalogBuilder } from '@backstage/plugin-catalog-backend';
import { Config } from '@backstage/config';
@@ -29,7 +28,7 @@ import { RootLoggerService } from '@backstage/backend-plugin-api';
import { Router } from 'express';
import { SchedulerService } from '@backstage/backend-plugin-api';
import { SchedulerServiceTaskRunner } from '@backstage/backend-plugin-api';
import { ServiceFactoryCompat } from '@backstage/backend-plugin-api';
import { ServiceFactory } from '@backstage/backend-plugin-api';
import { ServiceRef } from '@backstage/backend-plugin-api';
import { TemplateAction } from '@backstage/plugin-scaffolder-node';
import { TokenManager } from '@backstage/backend-common';
@@ -114,22 +113,20 @@ export interface DynamicPluginsFactoryOptions {
}
// @public (undocumented)
export const dynamicPluginsFeatureDiscoveryServiceFactory: ServiceFactoryCompat<
export const dynamicPluginsFeatureDiscoveryServiceFactory: ServiceFactory<
FeatureDiscoveryService,
'root',
'singleton',
undefined
'singleton'
>;
// @public (undocumented)
export const dynamicPluginsFrontendSchemas: BackendFeatureCompat;
export const dynamicPluginsFrontendSchemas: BackendFeature;
// @public (undocumented)
export const dynamicPluginsRootLoggerServiceFactory: ServiceFactoryCompat<
export const dynamicPluginsRootLoggerServiceFactory: ServiceFactory<
RootLoggerService,
'root',
'singleton',
undefined
'singleton'
>;
// @public (undocumented)
@@ -146,21 +143,29 @@ export interface DynamicPluginsSchemasService {
}
// @public (undocumented)
export const dynamicPluginsSchemasServiceFactory: ServiceFactoryCompat<
export const dynamicPluginsSchemasServiceFactory: ServiceFactory<
DynamicPluginsSchemasService,
'root',
'singleton',
DynamicPluginsSchemasOptions
'singleton'
>;
// @public (undocumented)
export const dynamicPluginsServiceFactory: ServiceFactoryCompat<
export const dynamicPluginsSchemasServiceFactoryWithOptions: (
options?: DynamicPluginsSchemasOptions,
) => ServiceFactory<DynamicPluginsSchemasService, 'root', 'singleton'>;
// @public (undocumented)
export const dynamicPluginsServiceFactory: ServiceFactory<
DynamicPluginProvider,
'root',
'singleton',
DynamicPluginsFactoryOptions
'singleton'
>;
// @public (undocumented)
export const dynamicPluginsServiceFactoryWithOptions: (
options?: DynamicPluginsFactoryOptions,
) => ServiceFactory<DynamicPluginProvider, 'root', 'singleton'>;
// @public (undocumented)
export const dynamicPluginsServiceRef: ServiceRef<
DynamicPluginProvider,