core-plugin-api: Remove deprecated AnyAnalyticsContext type

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-02-24 11:32:42 +01:00
parent 97682d25ed
commit 33cd215b11
4 changed files with 6 additions and 20 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-plugin-api': minor
---
**BREAKING**: Removed deprecated `AnyAnalyticsContext` type which is replaced by `AnalyticsContextValue`
-5
View File
@@ -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,
@@ -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';
@@ -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.
*