diff --git a/.changeset/purple-chicken-provide.md b/.changeset/purple-chicken-provide.md new file mode 100644 index 0000000000..ff983d591f --- /dev/null +++ b/.changeset/purple-chicken-provide.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-plugin-api': minor +--- + +**BREAKING**: Removed deprecated `AnyAnalyticsContext` type which is replaced by `AnalyticsContextValue` diff --git a/packages/core-plugin-api/api-report.md b/packages/core-plugin-api/api-report.md index 5ac07e195c..1647d1c2cb 100644 --- a/packages/core-plugin-api/api-report.md +++ b/packages/core-plugin-api/api-report.md @@ -76,11 +76,6 @@ export type AnalyticsTracker = { ) => void; }; -// @public @deprecated -export type AnyAnalyticsContext = { - [param in string]: string | boolean | number | undefined; -}; - // @public export type AnyApiFactory = ApiFactory< unknown, diff --git a/packages/core-plugin-api/src/analytics/index.ts b/packages/core-plugin-api/src/analytics/index.ts index 942df56ef8..651e8e105e 100644 --- a/packages/core-plugin-api/src/analytics/index.ts +++ b/packages/core-plugin-api/src/analytics/index.ts @@ -15,9 +15,5 @@ */ export { AnalyticsContext } from './AnalyticsContext'; -export type { - AnalyticsContextValue, - AnyAnalyticsContext, - CommonAnalyticsContext, -} from './types'; +export type { AnalyticsContextValue, CommonAnalyticsContext } from './types'; export { useAnalytics } from './useAnalytics'; diff --git a/packages/core-plugin-api/src/analytics/types.ts b/packages/core-plugin-api/src/analytics/types.ts index 431e453a61..1a60572082 100644 --- a/packages/core-plugin-api/src/analytics/types.ts +++ b/packages/core-plugin-api/src/analytics/types.ts @@ -36,16 +36,6 @@ export type CommonAnalyticsContext = { extension: string; }; -/** - * Allows arbitrary scalar values as context attributes too. - * - * @public - * @deprecated Will be removed, use `AnalyticsContextValue` instead - */ -export type AnyAnalyticsContext = { - [param in string]: string | boolean | number | undefined; -}; - /** * Analytics context envelope. *