Merge pull request #33141 from backstage/rugvip/deprecate-withApis-frontend-plugin-api

Deprecate `withApis` in `@backstage/frontend-plugin-api`
This commit is contained in:
Patrik Oldsberg
2026-03-05 13:50:53 +01:00
committed by GitHub
10 changed files with 171 additions and 1 deletions
+1 -1
View File
@@ -2312,7 +2312,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 `withApis` from `@backstage/core-compat-api` instead.
* @public
*/
export function withApis<T extends {}>(apis: TypesToApiRefs<T>) {