Deprecate withApis in @backstage/frontend-plugin-api

Moved withApis to @backstage/core-compat-api and deprecated the export
in @backstage/frontend-plugin-api, pointing users to the new location.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-05 10:19:10 +01:00
parent d0b53e39fd
commit b15a685e52
7 changed files with 85 additions and 1 deletions
+1 -1
View File
@@ -2313,7 +2313,7 @@ export const vmwareCloudAuthApiRef: ApiRef<
SessionApi
>;
// @public
// @public @deprecated
export function withApis<T extends {}>(
apis: TypesToApiRefs<T>,
): <TProps extends T>(
@@ -57,6 +57,7 @@ export function useApi<T>(apiRef: ApiRef<T>): T {
* Wrapper for giving component an API context.
*
* @param apis - APIs for the context.
* @deprecated Use {@link withApis} from `@backstage/core-compat-api` instead.
* @public
*/
export function withApis<T extends {}>(apis: TypesToApiRefs<T>) {