diff --git a/.changeset/afraid-horses-lick.md b/.changeset/afraid-horses-lick.md new file mode 100644 index 0000000000..f2dfcf4ed6 --- /dev/null +++ b/.changeset/afraid-horses-lick.md @@ -0,0 +1,54 @@ +--- +'@backstage/app-defaults': patch +'@backstage/core-app-api': patch +'@backstage/core-components': patch +'@backstage/core-plugin-api': patch +'@backstage/dev-utils': patch +'@backstage/test-utils': patch +'@backstage/plugin-adr': patch +'@backstage/plugin-airbrake': patch +'@backstage/plugin-allure': patch +'@backstage/plugin-api-docs': patch +'@backstage/plugin-azure-devops': patch +'@backstage/plugin-badges': patch +'@backstage/plugin-bazaar': patch +'@backstage/plugin-catalog-graph': patch +'@backstage/plugin-catalog-import': patch +'@backstage/plugin-catalog-react': patch +'@backstage/plugin-catalog': patch +'@backstage/plugin-circleci': patch +'@backstage/plugin-cloudbuild': patch +'@backstage/plugin-code-climate': patch +'@backstage/plugin-code-coverage': patch +'@backstage/plugin-codescene': patch +'@backstage/plugin-cost-insights': patch +'@backstage/plugin-explore': patch +'@backstage/plugin-gcp-projects': patch +'@backstage/plugin-git-release-manager': patch +'@backstage/plugin-github-actions': patch +'@backstage/plugin-gitops-profiles': patch +'@backstage/plugin-graphiql': patch +'@backstage/plugin-home': patch +'@backstage/plugin-jenkins': patch +'@backstage/plugin-kafka': patch +'@backstage/plugin-kubernetes': patch +'@backstage/plugin-lighthouse': patch +'@backstage/plugin-org': patch +'@backstage/plugin-pagerduty': patch +'@backstage/plugin-permission-react': patch +'@backstage/plugin-rollbar': patch +'@backstage/plugin-scaffolder': patch +'@backstage/plugin-search-react': patch +'@backstage/plugin-search': patch +'@backstage/plugin-sentry': patch +'@backstage/plugin-shortcuts': patch +'@backstage/plugin-splunk-on-call': patch +'@backstage/plugin-tech-insights': patch +'@backstage/plugin-techdocs-addons-test-utils': patch +'@backstage/plugin-techdocs-react': patch +'@backstage/plugin-techdocs': patch +'@backstage/plugin-todo': patch +'@backstage/plugin-user-settings': patch +--- + +Updated React Router dependencies to be peer dependencies. diff --git a/.changeset/big-teachers-tell.md b/.changeset/big-teachers-tell.md new file mode 100644 index 0000000000..180a974e5e --- /dev/null +++ b/.changeset/big-teachers-tell.md @@ -0,0 +1,5 @@ +--- +'@backstage/test-utils': minor +--- + +Elements rendered in a test app are no longer wrapped in a `Routes` and `Route` element, as this is not compatible with React Router v6 stable. diff --git a/.changeset/flat-walls-kiss.md b/.changeset/flat-walls-kiss.md index 3e7c42e838..ea2d2556ed 100644 --- a/.changeset/flat-walls-kiss.md +++ b/.changeset/flat-walls-kiss.md @@ -2,26 +2,4 @@ '@backstage/create-app': patch --- -Updated the entity page routes to use relative routes rather than absolute ones. This change is required to be able to upgrade to `react-router` v6 stable in the future. - -To apply this change to an existing app, update the path prop of `EntityLayout.Route`s to be relative. For example: - -```diff - -- -+ - {overviewContent} - - -- -+ - {cicdContent} - - -- -+ - {errorsContent} - -``` - -This change should also be applied to any other usage of `TabbedLayout`. +The Backstage packages and plugins have all been updated to support React Router v6 stable. The `create-app` template has not been migrated yet, but if you want to migrate your own app or plugins, check out the [migration guide](https://backstage.io/docs/tutorials/react-router-stable-migration). diff --git a/.changeset/good-avocados-grow.md b/.changeset/good-avocados-grow.md index daf161b399..dcc685c36d 100644 --- a/.changeset/good-avocados-grow.md +++ b/.changeset/good-avocados-grow.md @@ -2,4 +2,4 @@ '@backstage/core-app-api': minor --- -Updated the routing system to be compatible with `react-router` v6 stable. +Updated the routing system to be compatible with React Router v6 stable. diff --git a/.changeset/grumpy-kiwis-juggle.md b/.changeset/grumpy-kiwis-juggle.md new file mode 100644 index 0000000000..e303f8f674 --- /dev/null +++ b/.changeset/grumpy-kiwis-juggle.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Added a new `migrate react-router-deps` command to aid in the migration to React Router v6 stable. diff --git a/.changeset/itchy-owls-rescue.md b/.changeset/itchy-owls-rescue.md deleted file mode 100644 index 45e46e039d..0000000000 --- a/.changeset/itchy-owls-rescue.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@backstage/create-app': patch ---- - -Update the setup of the app routes in the template to wrap the `` redirect in a ``, as this will be required in `react-router` v6 stable. - -To apply this change to an existing app, make the following change to `packages/app/src/App.tsx`: - -```diff - -- -+ } /> -``` diff --git a/.changeset/mean-tomatoes-visit.md b/.changeset/mean-tomatoes-visit.md new file mode 100644 index 0000000000..111063d805 --- /dev/null +++ b/.changeset/mean-tomatoes-visit.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-techdocs': patch +--- + +Updated the `TechDocsReaderPage` to be compatible with React Router v6 stable. diff --git a/.changeset/old-lemons-switch.md b/.changeset/old-lemons-switch.md index 30c1b8040c..62f8d099b3 100644 --- a/.changeset/old-lemons-switch.md +++ b/.changeset/old-lemons-switch.md @@ -2,4 +2,4 @@ '@backstage/core-components': patch --- -The `RoutedTabs` component has been updated to be compatible with `react-router` v6 stable. +The `RoutedTabs` component has been updated to be compatible with React Router v6 stable. diff --git a/.changeset/popular-shirts-happen.md b/.changeset/popular-shirts-happen.md new file mode 100644 index 0000000000..9221301f82 --- /dev/null +++ b/.changeset/popular-shirts-happen.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-permission-react': patch +--- + +**DEPRECATION**: The `PermissionedRoute` component has been deprecated in favor of the new `RequirePermission` component. This is because the usage pattern of `PermissionedRoute` is not compatible with React Router v6 stable. diff --git a/.changeset/tall-trains-remain.md b/.changeset/tall-trains-remain.md index 9b3a44d037..9a94672656 100644 --- a/.changeset/tall-trains-remain.md +++ b/.changeset/tall-trains-remain.md @@ -1,5 +1,5 @@ --- -'@backstage/core-app-api': minor +'@backstage/core-app-api': patch --- -Updated `FlatRoutes` to be compatible with `react-router` v6 stable. +Updated `FlatRoutes` to be compatible with React Router v6 stable.