@backstage/core-app-api 1.1.0-next.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a448fea691: Updated the routing system to be compatible with React Router v6 stable.
8
+
9
+ ### Patch Changes
10
+
11
+ - 817f3196f6: Updated React Router dependencies to be peer dependencies.
12
+ - f9ec4e46e3: When using React Router v6 stable, it is now possible for components within the `Route` element tree to have `path` props, although they will be ignored.
13
+ - 7d47def9c4: Removed dependency on `@types/jest`.
14
+ - 744fea158b: Added `getSystemIcons()` function to the `AppContext` available through `useApp` that will pull a list of all the icons that have been registered in the App.
15
+ - 667d917488: Updated dependency `msw` to `^0.47.0`.
16
+ - 87ec2ba4d6: Updated dependency `msw` to `^0.46.0`.
17
+ - bf5e9030eb: Updated dependency `msw` to `^0.45.0`.
18
+ - 8448b53dd6: Clarify that the `WebStorage` observable returns `JsonValue` items.
19
+ - 70299c99d5: Updated `FlatRoutes` to be compatible with React Router v6 stable.
20
+ - e9d40ebf54: If you'd like to send analytics events to multiple implementations, you may now
21
+ do so using the `MultipleAnalyticsApi` implementation provided by this package.
22
+
23
+ ```tsx
24
+ import { MultipleAnalyticsApi } from '@backstage/core-app-api';
25
+ import {
26
+ analyticsApiRef,
27
+ configApiRef,
28
+ storageApiRef,
29
+ identityApiRef,
30
+ } from '@internal/backstage/core-plugin-api';
31
+ import { CustomAnalyticsApi } from '@internal/analytics';
32
+ import { VendorAnalyticsApi } from '@vendor/analytics';
33
+
34
+ createApiFactory({
35
+ api: analyticsApiRef,
36
+ deps: { configApi: configApiRef, identityApi: identityApiRef, storageApi: storageApiRef },
37
+ factory: ({ configApi, identityApi, storageApi }) =>
38
+ MultipleAnalyticsApi.fromApis([
39
+ VendorAnalyticsApi.fromConfig(configApi, { identityApi }),
40
+ CustomAnalyticsApi.fromConfig(configApi, { identityApi, storageApi }),
41
+ ]),
42
+ }),
43
+ ```
44
+
45
+ - Updated dependencies
46
+ - @backstage/core-plugin-api@1.0.6
47
+ - @backstage/config@1.0.2
48
+
3
49
  ## 1.1.0-next.3
4
50
 
5
51
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -544,7 +544,7 @@ declare class WebStorage implements StorageApi {
544
544
  forBucket(name: string): WebStorage;
545
545
  set<T>(key: string, data: T): Promise<void>;
546
546
  remove(key: string): Promise<void>;
547
- observe$<T>(key: string): Observable<StorageValueSnapshot<T>>;
547
+ observe$<T extends JsonValue>(key: string): Observable<StorageValueSnapshot<T>>;
548
548
  private getKeyName;
549
549
  private notifyChanges;
550
550
  private subscribers;