@backstage/frontend-app-api 0.11.0-next.2 → 0.11.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 +28 -0
- package/dist/index.d.ts +5 -3
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @backstage/frontend-app-api
|
|
2
2
|
|
|
3
|
+
## 0.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- abcdf44: **BREAKING**: The returned object from `createSpecializedApp` no longer contains a `createRoot()` method, and it instead now contains `apis` and `tree`.
|
|
8
|
+
|
|
9
|
+
You can replace existing usage of `app.createRoot()` with the following:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
const root = tree.root.instance?.getData(coreExtensionData.reactElement);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- 8250ffe: **BREAKING**: Dropped support for the removed opaque `@backstage/ExtensionOverrides` and `@backstage/BackstagePlugin` types.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 4d18b55: It's now possible to provide a middleware that wraps all extension factories by passing an `extensionFactoryMiddleware` to either `createApp()` or `createSpecializedApp()`.
|
|
20
|
+
- 4823831: Introduced a `createFrontendFeatureLoader()` function, as well as a `FrontendFeatureLoader` interface, to gather several frontend plugins, modules or feature loaders in a single exported entrypoint and load them, possibly asynchronously. This new feature, very similar to the `createBackendFeatureLoader()` already available on the backend, supersedes the previous `CreateAppFeatureLoader` type which has been deprecated.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/core-plugin-api@1.10.5
|
|
23
|
+
- @backstage/frontend-defaults@0.2.0
|
|
24
|
+
- @backstage/frontend-plugin-api@0.10.0
|
|
25
|
+
- @backstage/core-app-api@1.16.0
|
|
26
|
+
- @backstage/config@1.3.2
|
|
27
|
+
- @backstage/errors@1.2.7
|
|
28
|
+
- @backstage/types@1.2.1
|
|
29
|
+
- @backstage/version-bridge@1.0.11
|
|
30
|
+
|
|
3
31
|
## 0.11.0-next.2
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExternalRouteRef, RouteRef, SubRouteRef,
|
|
1
|
+
import { ExternalRouteRef, RouteRef, SubRouteRef, FrontendFeature as FrontendFeature$1, ExtensionFactoryMiddleware, AppTree } from '@backstage/frontend-plugin-api';
|
|
2
2
|
import { ConfigApi, ApiHolder } from '@backstage/core-plugin-api';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -39,8 +39,10 @@ type CreateAppRouteBinder = <TExternalRoutes extends {
|
|
|
39
39
|
[name: string]: ExternalRouteRef;
|
|
40
40
|
}>(externalRoutes: TExternalRoutes, targetRoutes: PartialKeys<TargetRouteMap<TExternalRoutes>, KeysWithType<TExternalRoutes, ExternalRouteRef<any>>>) => void;
|
|
41
41
|
|
|
42
|
-
/** @public
|
|
43
|
-
|
|
42
|
+
/** @public
|
|
43
|
+
* @deprecated Use {@link @backstage/frontend-plugin-api#FrontendFeature} instead.
|
|
44
|
+
*/
|
|
45
|
+
type FrontendFeature = FrontendFeature$1;
|
|
44
46
|
|
|
45
47
|
/**
|
|
46
48
|
* Creates an empty app without any default features. This is a low-level API is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/frontend-app-api",
|
|
3
|
-
"version": "0.11.0
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "web-library"
|
|
6
6
|
},
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
"test": "backstage-cli package test"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/config": "1.3.2",
|
|
36
|
-
"@backstage/core-app-api": "1.16.0
|
|
37
|
-
"@backstage/core-plugin-api": "1.10.
|
|
38
|
-
"@backstage/errors": "1.2.7",
|
|
39
|
-
"@backstage/frontend-defaults": "0.2.0
|
|
40
|
-
"@backstage/frontend-plugin-api": "0.10.0
|
|
41
|
-
"@backstage/types": "1.2.1",
|
|
42
|
-
"@backstage/version-bridge": "1.0.11",
|
|
35
|
+
"@backstage/config": "^1.3.2",
|
|
36
|
+
"@backstage/core-app-api": "^1.16.0",
|
|
37
|
+
"@backstage/core-plugin-api": "^1.10.5",
|
|
38
|
+
"@backstage/errors": "^1.2.7",
|
|
39
|
+
"@backstage/frontend-defaults": "^0.2.0",
|
|
40
|
+
"@backstage/frontend-plugin-api": "^0.10.0",
|
|
41
|
+
"@backstage/types": "^1.2.1",
|
|
42
|
+
"@backstage/version-bridge": "^1.0.11",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"zod": "^3.22.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@backstage/cli": "0.31.0
|
|
48
|
-
"@backstage/plugin-app": "0.1.7
|
|
49
|
-
"@backstage/test-utils": "1.7.6
|
|
47
|
+
"@backstage/cli": "^0.31.0",
|
|
48
|
+
"@backstage/plugin-app": "^0.1.7",
|
|
49
|
+
"@backstage/test-utils": "^1.7.6",
|
|
50
50
|
"@testing-library/jest-dom": "^6.0.0",
|
|
51
51
|
"@testing-library/react": "^16.0.0",
|
|
52
52
|
"@types/react": "^18.0.0",
|