changesets: updated changesets to use withDefaults

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-10-26 19:45:52 +02:00
parent 44976c138c
commit 2db9923496
4 changed files with 16 additions and 28 deletions
+7 -8
View File
@@ -2,15 +2,14 @@
'@backstage/core-app-api': patch
---
Deprecated the defaulting of the `components` options of `createApp`, meaning it will become required in the future. When not passing the required components options a deprecation warning is currently logged, and it will become required in a future release.
Deprecated the defaulting of the `components`, `icons` and `themes` options of `createApp`, meaning it will become required in the future. When not passing the required options a deprecation warning is currently logged, and they will become required in a future release.
The keep the existing components intact, migrate to using `defaultAppComponents` from `@backstage/core-components`:
The keep using the default set of options, migrate to using `withDefaults` from `@backstage/core-components`:
```ts
const app = createApp({
components: {
...defaultAppComponents(),
// Place any custom components here
},
});
const app = createApp(
withDefaults({
// ...
}),
);
```