docs/releases/v1.46.0-next.1-changelog.md
Upgrade Helper: https://backstage.github.io/upgrade-helper/?to=1.46.0-next.1
8d6709e: BREAKING: TechDocsAddonTester.renderWithEffects() no longer returns a screen; this means that you can no longer grab assertions such as getByText from its return value.
Newer versions of @testing-library recommends using the screen export for assertions - and removing this from the addon tester contract allows us to more freely iterate on which underlying version of the testing library is being used.
One notable effect of this, however, is that the @testing-library screen does NOT support assertions on the shadow DOM, which techdocs relies on. You will therefore want to add a dependency on the shadow-dom-testing-library package in your tests, and using its screen and its dedicated *Shadow* methods. As an example, if you keep doing getByText you will not get matches inside the shadow DOM - switch to getByShadowText instead.
import { screen } from 'shadow-dom-testing-library';
// ... render the addon ...
await TechDocsAddonTester.buildAddonsInTechDocs([<AnAddon />])
.withDom(<body>TEST_CONTENT</body>)
.renderWithEffects();
expect(screen.getByShadowText('TEST_CONTENT')).toBeInTheDocument();
16543fa: Breaking change The Cell component has been refactored to be a generic wrapper component that accepts children for custom cell content. The text-specific functionality (previously part of Cell) has been moved to a new CellText component.
If you were using Cell with text-specific props (title, description, leadingIcon, href), you need to update your code to use CellText instead:
Before:
<Cell
title="My Title"
description="My description"
leadingIcon={<Icon />}
href="/path"
/>
After:
<CellText
title="My Title"
description="My description"
leadingIcon={<Icon />}
href="/path"
/>
For custom cell content, use the new generic Cell component:
<Cell></Cell>
50b7927: Fixed Checkbox indicator showing checkmark color when unchecked.
Affected components: Checkbox
5bacf55: Fixed ButtonIcon incorrectly applying className to inner elements instead of only the root element.
Affected components: ButtonIcon
a20d317: Added row selection support with visual state styling for hover, selected, and pressed states. Fixed checkbox rendering to only show for multi-select toggle mode.
Affected components: Table, TableHeader, Row, Column
@backstage/cli-common.run, runOutput, and runCheck utilities to help run child processes in a safe and portable way.@backstage/cli-common.@backstage/cli-common.9a942a4: Fixed bug in the LogViewer component where shift + click always opened a new window instead of just changing the selection.
In addition, improved the LogViewer component by a few usability enhancements:
207c3c8: long words like urls now breaks to new line on warning panels instead of overflowing the container
5d52dab: Add i18n support for LogViewer search control
@backstage/cli-common.generate-patch command@backstage/cli-common.ed5a7a3: Introduce new configuration option to exclude suspended users from GitHub Enterprise instances.
When it’s set to true, suspended users won’t be returned when querying the organization users for GitHub Enterprise instances. Note that this option should be used only against GitHub Enterprise instances, the property does not exist in the github.com GraphQL schema, setting it will cause a schema validation error and the syncing of users will fail.
ed5a7a3: Introduce new configuration option to exclude suspended users from GitHub Enterprise instances.
When it’s set to true, suspended users won’t be returned when querying the organization users for GitHub Enterprise instances. Note that this option should be used only against GitHub Enterprise instances, the property does not exist in the github.com GraphQL schema, setting it will cause a schema validation error and the syncing of users will fail.
Updated dependencies
EntityOwnerPicker failed to filter options when the input text contained uppercase characters.df4d646: Moved types, API and client to the common package, allowing both frontend and
backend plugins to use the CatalogUnprocessedEntitiesClient.
The following types, clients and interfaces have been deprecated and should be
imported from the @backstage/plugin-catalog-unprocessed-entities-common instead:
CatalogUnprocessedEntitiesApi, CatalogUnprocessedEntitiesApiResponse, UnprocessedEntity,
UnprocessedEntityCache, UnprocessedEntityError, CatalogUnprocessedEntitiesClient.
All those types, clients and interfaces are re-exported temporarily in the
@backstage/plugin-catalog-unprocessed-entities package until cleaned up.
Updated dependencies
df4d646: Moved types, API and client to the common package, allowing both frontend and
backend plugins to use the CatalogUnprocessedEntitiesClient.
The following types, clients and interfaces have been deprecated and should be
imported from the @backstage/plugin-catalog-unprocessed-entities-common instead:
CatalogUnprocessedEntitiesApi, CatalogUnprocessedEntitiesApiResponse, UnprocessedEntity,
UnprocessedEntityCache, UnprocessedEntityError, CatalogUnprocessedEntitiesClient.
All those types, clients and interfaces are re-exported temporarily in the
@backstage/plugin-catalog-unprocessed-entities package until cleaned up.
review.name values were incorrectly formatted by startCase, preserving them exactly as written.techdocs config is now marked as optional.techdocs config is now marked as optional.