Back to Backstage

Release v1.9.0-next.4

docs/releases/v1.9.0-next.4-changelog.md

1.51.0-next.268.3 KB
Original Source

Release v1.9.0-next.4

@backstage/[email protected]

Minor Changes

  • 736f893f72: The Jest configuration that was previously enabled with BACKSTAGE_NEXT_TESTS is now enabled by default. To revert to the old configuration you can now instead set BACKSTAGE_OLD_TESTS.

    This new configuration uses the babel coverage provider rather than v8. It used to be that v8 worked better when using Sucrase for transpilation, but now that we have switched to SWC, babel seems to work better. In addition, the new configuration also enables source maps by default, as they no longer have a negative impact on code coverage accuracy, and it also enables a modified Jest runtime with additional caching of script objects.

Patch Changes

  • dd721148b5: Updated Jest coverage configuration to only apply either in the root project or package configuration, depending on whether repo or package tests are run.
  • b05dcd5530: Move the zod dependency to a version that does not collide with other libraries
  • c27eabef6b: Adds new web-library package option when generating a new plugin
  • 309f2daca4: Updated dependency esbuild to ^0.16.0.
  • d9d9a7a134: Removed all copyright notices from package templates.
  • Updated dependencies

@backstage/[email protected]

Minor Changes

  • e0d9c9559a: Added a new AppRouter component and app.createRoot() method that replaces app.getRouter() and app.getProvider(), which are now deprecated. The new AppRouter component is a drop-in replacement for the old router component, while the new app.createRoot() method is used instead of the old provider component.

    An old app setup might look like this:

    tsx
    const app = createApp(/* ... */);
    
    const AppProvider = app.getProvider();
    const AppRouter = app.getRouter();
    
    const routes = ...;
    
    const App = () => (
      <AppProvider>
        <AlertDisplay />
        <OAuthRequestDialog />
        <AppRouter>
          <Root>{routes}</Root>
        </AppRouter>
      </AppProvider>
    );
    
    export default App;
    

    With these new APIs, the setup now looks like this:

    tsx
    import { AppRouter } from '@backstage/core-app-api';
    
    const app = createApp(/* ... */);
    
    const routes = ...;
    
    export default app.createRoot(
      <>
        <AlertDisplay />
        <OAuthRequestDialog />
        <AppRouter>
          <Root>{routes}</Root>
        </AppRouter>
      </>,
    );
    

    Note that app.createRoot() accepts a React element, rather than a component.

Patch Changes

@backstage/[email protected]

Minor Changes

  • 13278732f6: New package for AWS integration node library

Patch Changes

@backstage/[email protected]

Minor Changes

  • 34a48cdc4f: The RepoUrlPicker field extension now has an allowedProjects option for narrowing the selection of Bitbucket URLs.

Patch Changes

@backstage/[email protected]

Minor Changes

  • 0053d07bee: Update the github:publish action to allow passing wether to dismiss stale reviews on the protected default branch.

Patch Changes

@backstage/[email protected]

Minor Changes

  • d09485ea79: Added support for self hosted OpenSearch via new provider

Patch Changes

@backstage/[email protected]

Minor Changes

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

  • b05dcd5530: Move the zod dependency to a version that does not collide with other libraries
  • 2e701b3796: Internal refactor to use react-router-dom rather than react-router.
  • a5a2d12298: Added option to pass additional headers to <ProxiedSignInPage />, which are passed along with the request to the underlying provider
  • Updated dependencies

@backstage/[email protected]

Patch Changes

  • 935b66a646: Change step output template examples to use square bracket syntax.

  • dfb269fab2: Updated the template to have the '/test' proxy endpoint in app-config.yaml be commented out by default.

  • d9b3753f87: Updated the app template to use the new AppRouter component instead of app.getRouter(), as well as app.createRoot() instead of app.getProvider().

    To apply this change to an existing app, make the following change to packages/app/src/App.tsx:

    diff
    -import { FlatRoutes } from '@backstage/core-app-api';
    +import { AppRouter, FlatRoutes } from '@backstage/core-app-api';
    
     ...
    
    -const AppProvider = app.getProvider();
    -const AppRouter = app.getRouter();
    
     ...
    
    -const App = () => (
    +export default app.createRoot(
    -  <AppProvider>
    +  <>
         <AlertDisplay />
         <OAuthRequestDialog />
         <AppRouter>
           <Root>{routes}</Root>
         </AppRouter>
    -  </AppProvider>
    +  </>,
     );
    

    The final export step should end up looking something like this:

    tsx
    export default app.createRoot(
      <>
        <AlertDisplay />
        <OAuthRequestDialog />
        <AppRouter>
          <Root>{routes}</Root>
        </AppRouter>
      </>,
    );
    

    Note that app.createRoot() accepts a React element, rather than a component.

  • 71e75c0b70: Removed the react-router dependency from the app package, using only react-router-dom instead.

    This change is just a bit of cleanup and is optional. If you want to apply it to your app, remove the react-router dependency from packages/app/package.json, and replace any imports from react-router with react-router-dom instead.

  • Updated dependencies

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

  • a8611bcac4: Add new command options to the api-report

    • added --allow-warnings, -a to continue processing packages if selected packages have warnings
    • added --allow-all-warnings to continue processing packages any packages have warnings
    • added --omit-messages, -o to pass some warnings messages code to be omitted from the api-report.md files
    • The paths argument for this command now takes as default the value on workspaces.packages inside the root package.json
    • change the path resolution to use the @backstage/cli-common packages instead
  • Updated dependencies

@techdocs/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

@backstage/[email protected]

Patch Changes

[email protected]

Patch Changes

[email protected]

Patch Changes

[email protected]

Patch Changes

[email protected]

Patch Changes

@internal/[email protected]

Patch Changes

@internal/[email protected]

Patch Changes

@internal/[email protected]

Patch Changes

@internal/[email protected]

Patch Changes