Version Packages

This commit is contained in:
github-actions[bot]
2021-06-03 10:04:56 +00:00
committed by Fredrik Adelöw
parent 0706a4b27b
commit fa92d70fba
105 changed files with 611 additions and 460 deletions
+40
View File
@@ -1,5 +1,45 @@
# @backstage/plugin-tech-radar
## 0.4.0
### Minor Changes
- 90a505a77: Migrating the Tech Radar to support using `ApiRefs` to load custom data.
If you had a `getData` function, you'll now need to encapsulate that logic in a class that can override the `techRadarApiRef`.
```ts
// app/src/lib/MyClient.ts
import {
TechRadarApi,
TechRadarLoaderResponse,
} from '@backstage/plugin-tech-radar';
class MyOwnClient implements TechRadarApi {
async load(): Promise<TechRadarLoaderResponse> {
// here's where you would put you logic to load the response that was previously passed into getData
}
}
// app/src/apis.ts
import { MyOwnClient } from './lib/MyClient';
import { techRadarApiRef } from '@backstage/plugin-tech-radar';
export const apis: AnyApiFactory[] = [
/*
...
*/
createApiFactory(techRadarApiRef, new MyOwnClient()),
];
```
### Patch Changes
- Updated dependencies [e7c5e4b30]
- Updated dependencies [1cf1d351f]
- @backstage/theme@0.2.8
- @backstage/core@0.7.12
## 0.3.11
### Patch Changes
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-tech-radar",
"version": "0.3.11",
"version": "0.4.0",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -30,8 +30,8 @@
"start": "backstage-cli plugin:serve"
},
"dependencies": {
"@backstage/core": "^0.7.11",
"@backstage/theme": "^0.2.7",
"@backstage/core": "^0.7.12",
"@backstage/theme": "^0.2.8",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.45",
@@ -43,9 +43,9 @@
"react-use": "^17.2.4"
},
"devDependencies": {
"@backstage/cli": "^0.6.13",
"@backstage/dev-utils": "^0.1.16",
"@backstage/test-utils": "^0.1.12",
"@backstage/cli": "^0.6.14",
"@backstage/dev-utils": "^0.1.17",
"@backstage/test-utils": "^0.1.13",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^13.1.8",