@backstage/app-defaults 1.6.0-next.1 → 1.6.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 +42 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @backstage/app-defaults
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 12f8e01: **BREAKING**: The default `DiscoveryApi` implementation has been switched to use `FrontendHostDiscovery`, which adds support for the `discovery.endpoints` configuration.
|
|
8
|
+
|
|
9
|
+
This is marked as a breaking change because it will cause any existing `discovery.endpoints` configuration to be picked up and used, which may break existing setups.
|
|
10
|
+
|
|
11
|
+
For example, consider the following configuration:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
app:
|
|
15
|
+
baseUrl: https://backstage.acme.org
|
|
16
|
+
|
|
17
|
+
backend:
|
|
18
|
+
baseUrl: https://backstage.internal.acme.org
|
|
19
|
+
|
|
20
|
+
discovery:
|
|
21
|
+
endpoints:
|
|
22
|
+
- target: https://catalog.internal.acme.org/api/{{pluginId}}
|
|
23
|
+
plugins: [catalog]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This will now cause requests from the frontend towards the `catalog` plugin to be routed to `https://catalog.internal.acme.org/api/catalog`, but this might not be reachable from the frontend. To fix this, you should update the `discovery.endpoints` configuration to only override the internal URL of the plugin:
|
|
27
|
+
|
|
28
|
+
```yaml
|
|
29
|
+
discovery:
|
|
30
|
+
endpoints:
|
|
31
|
+
- target:
|
|
32
|
+
internal: https://catalog.internal.acme.org/api/{{pluginId}}
|
|
33
|
+
plugins: [catalog]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
- @backstage/core-components@0.17.0
|
|
40
|
+
- @backstage/core-plugin-api@1.10.5
|
|
41
|
+
- @backstage/core-app-api@1.16.0
|
|
42
|
+
- @backstage/plugin-permission-react@0.4.32
|
|
43
|
+
- @backstage/theme@0.6.4
|
|
44
|
+
|
|
3
45
|
## 1.6.0-next.1
|
|
4
46
|
|
|
5
47
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/app-defaults",
|
|
3
|
-
"version": "1.6.0
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Provides the default wiring of a Backstage App",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library"
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"test": "backstage-cli package test"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@backstage/core-app-api": "1.16.0
|
|
40
|
-
"@backstage/core-components": "0.
|
|
41
|
-
"@backstage/core-plugin-api": "1.10.
|
|
42
|
-
"@backstage/plugin-permission-react": "0.4.
|
|
43
|
-
"@backstage/theme": "0.6.4",
|
|
39
|
+
"@backstage/core-app-api": "^1.16.0",
|
|
40
|
+
"@backstage/core-components": "^0.17.0",
|
|
41
|
+
"@backstage/core-plugin-api": "^1.10.5",
|
|
42
|
+
"@backstage/plugin-permission-react": "^0.4.32",
|
|
43
|
+
"@backstage/theme": "^0.6.4",
|
|
44
44
|
"@material-ui/core": "^4.12.2",
|
|
45
45
|
"@material-ui/icons": "^4.9.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@backstage/cli": "0.31.0
|
|
49
|
-
"@backstage/test-utils": "1.7.6
|
|
48
|
+
"@backstage/cli": "^0.31.0",
|
|
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",
|