Repository navigation
Description
Note
This issue is for plugin owners to plan the 1.57.0 upgrade of their own workspaces. It's not open for contributions at this time, so please don't open PRs against other people's workspaces based on it. Owners will handle their own plugins, and if you'd like to help with one, check with its owner first. Questions and comments from owners are very welcome below!
Hi folks 👋
Backstage 1.57.0 goes out next week and it's a big one. We went through the pending changesets upstream and there's a lot in there: the New Frontend System (NFS) going 1.0, breaking changes, a bunch of NFS cleanup, new Node and TypeScript minimums, and a long list of deprecations. Some of this is going to turn the version:bump PRs red, and some of it is migration work we'll be chipping away at for a few releases. We'd rather see it coming than get surprised, so here's our rundown.
The good news is we've got a bit of runway. For workspaces that have opted into automated version bumps (autoVersionBump in bcp.json), those PRs don't get triggered until the week after the release. That gives us time to plan, and for the maintainers to actually follow up on any questions or comments from plugin owners here before the bump PRs start rolling in.
Who does what: most of this is for plugin owners, since it's about changes in your own workspace. A few things are repo-wide, like CI and contributor docs, and the maintainers will take care of those. We've marked those spots with (Maintainers) so it's clear they're not on you.
Upstream has good 1.57 migration notes for the frontend side, worth a read. They'll show up on backstage.io once 1.57 is out.
The short version
- The New Frontend System is going 1.0 🎉 Time to start dropping legacy frontend support from our plugins, and to go
1.0.0while we're at it - Node 24 or 26 only. Node 26 doesn't bundle Corepack and its Docker images don't ship Yarn. The maintainers will handle CI, but you may need to install Corepack locally
- TypeScript 5.9 is now the minimum
- React 17 support is gone, peer ranges are
^18.0.0 - A lot of deprecated NFS APIs were removed (only two workspaces are affected,
announcementsandmanage) - Routing got reworked. Nothing breaks for us, but we'd like to move to the framework routing and away from React Router over time
@backstage/frontend-test-utilsgot a lot stricter, so expect some tests that passed before to fail- A big batch of
core-componentsdeprecations in favor of@backstage/ui. These will triplistDeprecationsin about 48 workspaces, so plan to handle them in your bump PR
Breaking changes
These are in order of how much we expect them to hurt.
Tooling and runtime
Breaking. Hits almost every workspace.
TypeScript 5.9 is the floor now. The CLI compiles to ES2024 and @backstage/cli/config/tsconfig.json sets target and lib to ES2024, so any workspace below 5.9 will need to bump TypeScript along with the version bump. Do it in the bump PR, not before. 1.57 also fixes a "Type instantiation is excessively deep" error from createFrontendPlugin on TypeScript 5.9, so the two really need to go together.
Node needs to be 24 (24.15.0+) or 26 (26.13.0+). Our CI builds its Node test matrix straight from engines.node and runs each version listed there, so in this repo set it to 24 || 26 (plain majors, like today) rather than the ^24.15.0 || ^26.13.0 range upstream uses for new apps. CI turns 24 into 24.x and grabs the latest release, so it's always above those minimums.
Locally it's a different story. 24.15.0 is the lowest version all the dependencies support and 26.13.0 is the first Node 26 LTS, and nothing in our setup stops you from running something older. If you're on 24 or 26, make sure you're at least on those.
Two dependency gotchas to watch for:
- If
avscresolves below 5.7.8, runyarn up -R avsc. Older versions crash on Node 25+ and break Jest tests that import the api-docs AsyncAPI widget. - If
node-gypresolves to 12.3.0, runyarn up -R node-gyp.
React 17 was dropped across the frontend packages, and the repo-tools peer dependency check now expects React 18. If a plugin still has ^17 in its React peer range, drop it. On the plus side, that same check no longer forces everyone onto one shared react-router-dom version.
listDeprecations and the new deprecations
Breaking for most workspaces that have listDeprecations on. The check runs backstage-cli repo list-deprecations, which fails CI on any deprecated API usage. 1.57 deprecates a big batch of core-components (Page, Header, Content, Link, and lots more, see the next section), plus the individual core API refs in @backstage/frontend-plugin-api in favor of the new coreApis namespace.
We did a rough scan: of the 67 workspaces with listDeprecations on, about 48 import at least one of these, so their bump PRs will go red on this check.
That's by design, and it's how we've always handled it. The check makes us deal with deprecations in the bump PR, while they're fresh, instead of putting them off and forgetting about them until they become breaking changes. It's exactly why the NFS cleanup below barely touches us. So if your workspace is one of the 48, plan for the bump PR to include moving off these deprecated APIs. It's a bigger chunk than usual this time, which is the main reason we wanted to give everyone a heads up early. Please don't turn listDeprecations off to get the bump through.
core-components deprecations
Breaking via listDeprecations for 43 workspaces. A heads up for 34 more that don't have the check on. This is the biggest batch of core-components deprecations we've seen, and it's the clearest sign yet that core-components (and MUI with it) is on its way out in favor of @backstage/ui. Nothing is removed in 1.57, though. Everything still works and MUI is still there under the hood, it's just all deprecated now.
What's deprecated:
- Page shells and layout:
Page,PageWithHeader,Header,Content,ContentHeader,TabbedLayout(andTabbedLayout.Route),RoutedTabs,HeaderTabs,HeaderLabel,HeaderActionMenu,HeaderIconLinkRow,AlertDisplay,AppIcon, and the named icon wrappers. - Everything else:
Link,LinkButton,Avatar,Select,BottomLink,CreateButton,FavoriteToggle,FavoriteToggleIcon,ItemCardGrid,ItemCardHeader,TabbedCard,CardTab,SubvalueCell,IconLinkVertical, andOverflowTooltip.
Where to go instead:
- For pages in the NFS, use page and sub-page extensions with
PageLayoutfrom@backstage/frontend-plugin-api, and let the framework own the header, tabs, and breadcrumbs. - For everything else, use the
@backstage/uireplacement named in each component's deprecation notice. Your editor will show it. Heads up that these aren't drop-in swaps. Upstream calls out that props and composition need adapting, especially around external links, selection callbacks, document titles, and error boundaries. - For app-customizable icons, use
useApi(coreApis.icons).icon(key).
The heavy hitters in our repo are Link, Content, Page, and Header, which show up in dozens of files each. Here's who's using them:
listDeprecationson, so this is part of your bump PR (43):acr,airbrake,allure,analytics,apollo-explorer,argocd,bazaar,cicd-statistics,cloudbuild,code-climate,codescene,dynatrace,entity-validation,gcalendar,github,gitops-profiles,grafana,graphql-voyager,ilert,jaeger,jenkins,jfrog-artifactory,linkerd,mcp-chat,microsoft-calendar,multi-source-security-viewer,newrelic,nexus-repository-manager,npm,ocm,opencost,puppetdb,quay,rbac,sentry,stack-overflow,stackstorm,tech-insights,tech-radar,tekton,todo,topology, andxcmetrics.listDeprecationsoff, so CI won't flag it, but you're using them too (34):adr,akeyless,announcements,apiiro,azure-devops,azure-sites,azure-storage-explorer,bitbucket-pull-requests,bitrise,blackduck,code-coverage,confluence,copilot,cost-insights,entity-feedback,explore,feedback,flux,fossa,git-release-manager,kafka,kiali,manage,mend,mta,octopus-deploy,playlist,report-portal,rollbar,servicenow,shortcuts,sonarqube,vault, andwheel-of-names.
If you're in the second group, nothing forces you to act now, but these will become breaking changes in a future release, and turning on listDeprecations is the easiest way to stay on top of that.
Now's the time to prioritize the MUI to BUI migration. It's the same work. Moving to @backstage/ui is how you get off both MUI and these deprecated core-components in one pass, rather than touching the same files twice. One gotcha: "migrated" needs to include core-components too, not just MUI. Our MUI to BUI tracker only counts @material-ui and @mui imports, so a workspace can show as fully migrated there and still use these deprecated components. In fact 10 of the 15 workspaces we found with no MUI left still do. So when you migrate, swap out Page, Header, Content, Link, and friends at the same time.
Tests (@backstage/frontend-test-utils)
Breaking. Could hit any of the 33 workspaces that use it.
Honestly, we expect this to be where most of the red CI comes from. A search can't tell us which tests will fail, we'll only know once the bump PRs run.
renderInTestApp,renderTestApp, andcreateExtensionTesternow throw on every app or extension error, including ones that used to just be warnings, likeEXTENSION_IGNOREDandAPI_FACTORY_CONFLICT. If an error is expected, there's a newisExpectedErroroption.- The default test APIs changed. Toasts and errors are collected in memory, storage is in memory instead of
localStorage, and alerts don't replay anymore. Tests that check for a visible toast or poke atlocalStoragewill need some love. - The standalone
Mock*Apitypes are gone. UseReturnType<typeof mockApis.x>. - The dialog and icon test helpers lost
show,showModal, andgetIcon.
One more test gotcha that isn't from frontend-test-utils. MarkdownContent from core-components now loads its markdown renderer lazily the first time it renders. Tests that look for rendered markdown right after a synchronous render may need to switch to findBy* queries. 12 workspaces render MarkdownContent: adr, agent-forge, announcements, azure-devops, bitbucket-pull-requests, entity-validation, lighthouse, playlist, rbac, tech-insights, tech-radar, and topology.
NFS cleanup
Breaking. Hits announcements and manage only.
A bunch of long deprecated NFS APIs are gone now. The good news is this barely touches us. We checked the repo and only two workspaces will break:
announcementsandmanage: theirapp-nextsidebars still use the flatitemsprop on the nav, which was removed. Switch tonavItems.acr,github, andcopilotall have working examples in theirapp-nextsidebars, andrbac,tekton,topology, andjfrog-artifactoryhave them in theirdev/setups. This only affects the local dev apps, not the published plugins.workspaces/announcements/packages/app-next/src/modules/nav/Sidebar.tsxworkspaces/manage/packages/app-next/src/components/Sidebar.tsx
Everything else that was removed isn't used anywhere in the repo, so no action needed. For reference, that's the @backstage/frontend-plugin-api/alpha entry point, FrontendPlugin.id, withApis, ProgressProps, PageTab, PluginOptions, ExtensionFactoryMiddleware, the analytics implementation types, DialogApi.show/showModal, IconsApi.getIcon, and custom TranslationApi implementations. analytics and playlist were already on the new APIs 👍
The reason this is such a short list is that 67 of our workspaces have listDeprecations turned on in their bcp.json. That runs backstage-cli repo list-deprecations in CI and flags deprecated API usage, so owners have been cleaning these up while they were still just deprecations instead of breaking changes. It's paying off big time in this release! Not surprisingly, announcements and manage are two of the workspaces that don't have it on for potentially good reasons. If your workspace doesn't have it on yet, just add "listDeprecations": true to your bcp.json. It makes releases like this one a lot less painful.
Backend
Breaking upstream, but nothing in our repo is affected.
Pretty quiet for us on the backend side. We checked the repo and nothing here should break, but two things are worth knowing if you write backend plugins:
coreServicesandmockServicesare frozen objects now instead of namespaces. Using them works the same, but you can't patch them anymore, so something likejest.spyOn(mockServices.urlReader, 'mock')will fail. Nobody in the repo does this today.- If you hand-roll an
HttpRouterService(in tests, say), it has to implement the newaddWebSocketHandler. If you usemockServices.httpRouter.mock()likeservicenowdoes, you're fine.
Migrations
None of these will break the bumps. This is the work we'll be doing over the next few releases.
New Frontend System 1.0
Migration. This is the big one. 1.57 is set to promote the NFS framework packages to 1.0: @backstage/frontend-plugin-api, frontend-app-api, frontend-defaults, frontend-test-utils, and frontend-dev-utils. That means their public APIs are stable under the versioning policy from here on. It's tracked in backstage/backstage#36794, which is still open, so keep an eye on it. This caps off a long road: 1.49 was the release candidate, and new apps have been created on the NFS by default since then.
So our take is that it's time to start dropping legacy frontend support from our plugins. That's the direction for the repo once 1.57 ships. It'll take a while, and it doesn't belong in the bump PRs. Here's where we are across our 105 frontend plugins:
- 64 support both systems. These are the ones that can start dropping legacy.
- 38 are still legacy only. These need NFS support added first, and that's the bigger lift.
- 2 are already NFS only 🎉
What dropping legacy looks like for a plugin:
- Remove the old
createPlugin,createRoutableExtension, andcreateComponentExtensionexports. - Make the NFS plugin the default export from the main entry point instead of
/alpha. - Drop
@backstage/core-plugin-apiand@backstage/core-compat-apiwhere they're no longer needed.react-router-domcan usually come out too, see Routing below. - Update the README so the install steps only cover the NFS.
This is also a great time to go 1.0 yourself. Dropping legacy support is a breaking change for anyone still on the old frontend system, so it needs a major bump anyway. 66 of our 105 frontend plugins are still on 0.x. If yours is one of them, go to 1.0.0 when you drop legacy support. It tells adopters "this is stable and NFS only" in one go, and it gives us proper semver from then on. Just make sure the changeset spells out that legacy support was removed and points folks at the last version that still supports it.
When and how you drop legacy support is up to you as the plugin owner. You know your adopters best. The maintainers may share some guidance along the way, and for the workspaces we own, we'll follow a consistent pattern based on the upstream guidance, so feel free to use those as a reference. Thoughts and questions very welcome!
Routing
Migration, not breaking for us. This is the biggest technical change in the release, but for us it's opt in. Nothing in our repo uses the APIs that were removed or changed, so existing plugins keep working as is.
The app owns history now, and each page can pick its own routing library. There are new page router adapters for React Router v6 and v7 and for TanStack Router, plus new router-agnostic helpers from @backstage/frontend-plugin-api: RouterLink, useAppNavigate, useAppHref, useAppLocation, and useAppSearchParams.
Pages without an adapter keep working through a built-in React Router v6 compatibility layer, which just logs a dev warning once per extension.
What we'd like to do: use the framework routing and skip the adapters. We keep getting Renovate PRs for React Router, and the upstream page router guide literally opens with "Most pages need no router at all." Here's what that looks like:
useNavigate→useAppNavigate(app-absolute paths or route refs)useLocation/useSearchParams→useAppLocation/useAppSearchParamsuseParams→useRouteRefParamswith a route ref- Building links →
useRouteRef/useAppHrefinstead of hardcoded paths - Nested
<Routes>inside a page →SubPageBlueprintsub-pages on the NFS side. The page shell (header, tabs, breadcrumbs) is owned by the framework, so it doesn't need a routing library at all. - Adapters only as a last resort, for pages that really need something library-specific like relative links (
details,../edit), which framework navigation doesn't support.
One big caveat. All 25 of our NFS plugins that use React Router today also still support the legacy frontend system. That means you can't just rip out react-router-dom yet, because the legacy export still needs it, especially for nested <Routes> trees. What does help is that useAppLocation and useAppSearchParams fall back to React Router in the old frontend system, so shared components can move to them now without forking code. We haven't confirmed the same for useAppNavigate, useRouteRef, and useAppHref, so test those in both systems before relying on them.
Once a plugin drops legacy support (see NFS 1.0 above), react-router-dom can actually come out of package.json and those Renovate PRs go away for good. Moving to framework routing now makes that last step a lot smaller.
The plugins that use React Router APIs in their NFS code today: adr, announcements, argo-workflows, argocd, cloudbuild, copilot, cost-insights, explore, git-release-manager, github-actions, jenkins, kafka, lighthouse, manage, mend, multi-source-security-viewer, playlist, quay, rbac, sentry, servicenow, tech-insights-maturity, tekton, todo, and topology. If you only use navigation or query hooks (like adr, git-release-manager, manage, and servicenow), you're probably the easiest place to start.
For reference, here's what did break upstream. None of it is used in our repo:
RouterBlueprintand therouterinput onapp/rootwere removed, andconvertLegacyAppOptionsnow rejectscomponents.Router.useRouteRefParamsfromfrontend-plugin-apionly returns the params declared on the route ref, and it doesn't include the splat*anymore.announcements,cloudbuild,github,jenkins,multi-source-security-viewer, androllbaruseuseRouteRefParams, but they all get it fromcore-plugin-api, so they're not affected.@backstage/uidoesn't hook into React Router automatically anymore. If you use it standalone you'll needBUIProviderwith auseNavigationhook. Inside a Backstage app this is handled for you.
Corepack and Yarn on Node 26
Not breaking yet, but something we need to think about. Node stopped bundling Corepack as of v25, and the Node 26 Docker images don't ship Yarn anymore. Now that 1.57 supports Node 26, we can't assume either one is just there. Upstream is tracking this in backstage/backstage#35008. The plan there is to always install Corepack from npm first, following Yarn's install guide:
npm install -g corepack
corepack enableThis works on Node 24 too, where it just replaces the bundled Corepack.
We haven't done anything about it yet, but here's where we think it hits:
- CI (Maintainers). Our workflows run
yarn installright afteractions/setup-nodeand don't install Yarn or Corepack anywhere. That works today because the GitHub runner image happens to have a global Yarn, which then hands off to our checked-in Yarn viayarnPathin.yarnrc.yml. We're not confident that still holds once the matrix runs Node 26, so the maintainers will add an explicit Corepack step to the workflows before the first24 || 26bump PRs land, rather than find out from a wall of red. Nothing for plugin owners to do here. - Local dev (plugin owners). If you switch to Node 26 locally,
yarnmay simply not be there. Run the two commands above once and you're set.CONTRIBUTING.mddoesn't mention any of this today, so the maintainers will get that updated too. - Dockerfiles. We don't have any in the repo, so nothing to do there.
Deprecations
Migration, unless you have listDeprecations on. If you do, these are part of your bump PR (see above). If you don't, they won't break anything yet, but we should all start chipping away at them. The core-components deprecations have their own section above. Here are the rest:
withApisincore-plugin-apiis deprecated. Wrap the class component in a function component that usesuseApi.- The individual core API refs are deprecated in favor of the new
coreApisnamespace. The Alert API isn't in it, since Toast replaces it.
Where we stand
We ran a quick scan across all 112 workspaces on main. The good news first: the NFS cleanup only hits the announcements and manage dev app sidebars (see above), and none of the backend changes hit us.
The not so great news is that the version updates hit almost everyone:
- Almost every workspace is below TypeScript 5.9. Most are on
~5.8, a handful are on~5.7, and these are still back on~5.3/~5.4:agent-forge,amplication,announcements,azure-sites,bitbucket-pull-requests,blackduck,confluence,mcp-chat,n8n, andwheel-of-names. - Node: 105 workspaces are on
22 || 24, so CI already tests them on 24, and moving to24 || 26should be easy. Six are still on20 || 22:agent-forge,amplication,azure-storage-explorer,bitbucket-pull-requests,feedback, andreport-portal. Node 20 has been end of life since April, and these have never been tested on 24, so they're jumping two majors at once. If you own one of these, it'd be great to move to22 || 24now so you're not dealing with that on top of everything else in the bump.noopis already on24. - 92 workspaces still have
^17in a React peer range. - 33 workspaces use
@backstage/frontend-test-utils, so those are the ones we'd watch for test failures.
What we suggest
Plugin owners
- If you have a few minutes before the release, drop the React
^17peer range in your workspace. If you're still on20 || 22, move to22 || 24too. Hold off on TypeScript though, and do the~5.9bump as part of the 1.57 bump PR. Backstage 1.56 was built against TypeScript 5.7/5.8, and 1.57 includes a fix for a "Type instantiation is excessively deep" error thatcreateFrontendPlugincan hit on 5.9. Bumping early could break things for no gain. - When the bump PR for your workspace shows up, expect TypeScript, test, and (if you have it on)
listDeprecationsfailures. Moving off the deprecated APIs is part of the bump. If you hit something and figure out the fix, please drop a comment here so others can benefit! - After that, make the MUI to BUI migration a priority, including the deprecated
core-components. The move to framework routing is ongoing work too, but less urgent. - Once 1.57 is out and NFS 1.0 lands, start planning when you'll drop legacy frontend support, and bump to
1.0.0when you do if you're still on0.x. The timing is your call.
Maintainers
- Add an explicit Corepack step to the CI workflows before the
24 || 26bump PRs land, and updateCONTRIBUTING.mdfor Node 26. - Collect the common fixes from the comments here as the bump PRs roll in.
- Drop legacy frontend support in the workspaces we own, following the upstream guidance, so other owners have examples to reference.
Let us know if we missed anything or got something wrong. Thanks all 🙏
Activity