Update changesets

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2023-05-23 16:21:22 +02:00
parent 05169a796d
commit 1fd38bc414
6 changed files with 28 additions and 28 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs-addons-test-utils': patch
---
Avoiding re-running tests on cleanup.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/test-utils': minor
---
Test App Wrapper is now using `UnifiedThemeProvider` for supporting MUI v5 next to MUI v4 in tests.
+17
View File
@@ -0,0 +1,17 @@
---
'@backstage/app-defaults': minor
'@backstage/theme': minor
---
**MUI v5 Support:** Adding platform-wide support for MUI v5 allowing a transition phase for migrating central plugins & components over. We still support v4 instances & plugins by adding a
To allow the future support of plugins & components using MUI v5 you want to upgrade your `AppTheme`'s to using the `UnifiedThemeProvider`
```diff
Provider: ({ children }) => (
- <ThemeProvider theme={lightTheme}>
- <CssBaseline>{children}</CssBaseline>
- </ThemeProvider>
+ <UnifiedThemeProvider theme={builtinThemes.light} children={children} />
),
```
+1 -20
View File
@@ -1,24 +1,5 @@
---
'@backstage/app-defaults': minor
'@backstage/test-utils': minor
'@backstage/theme': minor
'@backstage/plugin-techdocs-addons-test-utils': patch
'@backstage/cli': patch
---
**MUI v5 Support:** Adding platform-wide support for MUI v5 allowing a transition phase for migrating central plugins & components over. We still support v4 instances & plugins by adding a
To allow the future support of plugins & components using MUI v5 you want to upgrade your `AppTheme`'s to using the `UnifiedThemeProvider`
```diff
Provider: ({ children }) => (
- <ThemeProvider theme={lightTheme}>
- <CssBaseline>{children}</CssBaseline>
- </ThemeProvider>
+ <UnifiedThemeProvider theme={builtinThemes.light} children={children} />
),
```
**'@backstage/test-utils':** Test App Wrapper is using `UnifiedThemeProvider` for tests now.
**'@backstage/plugin-techdocs-addons-test-utils':** Fix tests by avoiding re-running theme on cleanup.
**'@backstage/cli':** Enforcing MUI v5 specific linting to minimize bundle size.
Enforcing MUI v5 specific linting to minimize bundle size.
-5
View File
@@ -42,11 +42,6 @@
"react": "^16.13.1 || ^17.0.0",
"react-dom": "^16.13.1 || ^17.0.0"
},
"peerDependenciesMeta": {
"@material-ui/core": {
"optional": true
}
},
"devDependencies": {
"@backstage/cli": "workspace:^",
"@types/react": "^16.13.1 || ^17.0.0"
-3
View File
@@ -9636,9 +9636,6 @@ __metadata:
"@types/react": ^16.13.1 || ^17.0.0
react: ^16.13.1 || ^17.0.0
react-dom: ^16.13.1 || ^17.0.0
peerDependenciesMeta:
"@material-ui/core":
optional: true
languageName: unknown
linkType: soft