Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update backstage monorepo #1908

Closed
wants to merge 1 commit into from

Conversation

backstage-goalie[bot]
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
@backstage/backend-common (source) dependencies minor ^0.21.6 -> ^0.25.0
@backstage/backend-common (source) dependencies minor ^0.23.3 -> ^0.25.0
@backstage/backend-common (source) dependencies minor ^0.21.7 -> ^0.25.0
@backstage/backend-common (source) dependencies minor ^0.24.0 -> ^0.25.0
@backstage/backend-common (source) dependencies minor ^0.24.0 -> ^0.25.0
@backstage/backend-defaults (source) dependencies minor ^0.3.3 -> ^0.5.0
@backstage/backend-defaults (source) dependencies minor ^0.4.1 -> ^0.5.0
@backstage/backend-dynamic-feature-service (source) dependencies minor ^0.2.15 -> ^0.4.0
@backstage/backend-plugin-api (source) dependencies minor ^0.6.17 -> ^0.8.0
@backstage/backend-plugin-api (source) dependencies minor ^0.6.18 -> ^0.8.0
@backstage/backend-plugin-api (source) dependencies minor ^0.7.0 -> ^0.8.0
@backstage/backend-tasks (source) dependencies minor ^0.5.22 -> ^0.6.0
@backstage/backend-test-utils (source) devDependencies minor ^0.3.6 -> ^0.5.0
@backstage/backend-test-utils (source) devDependencies minor ^0.4.4 -> ^0.5.0
@backstage/backend-test-utils (source) devDependencies patch 1.0.0 -> 1.0.2
@backstage/cli (source) devDependencies minor ^0.27.1 -> ^0.28.0
@backstage/cli (source) dependencies minor ^0.26.11 -> ^0.28.0
@backstage/cli (source) devDependencies minor ^0.26.11 -> ^0.28.0
@backstage/cli (source) devDependencies minor ^0.26.2 -> ^0.28.0
@backstage/cli (source) devDependencies minor 0.27.1 -> 0.28.2
@backstage/cli (source) devDependencies minor ^0.27.0 -> ^0.28.0
@backstage/cli (source) devDependencies minor ^0.27.0 -> ^0.28.0
@backstage/core-compat-api (source) dependencies minor ^0.2.8 -> ^0.3.0
@backstage/core-components (source) dependencies minor ^0.14.3 -> ^0.15.0
@backstage/core-components (source) dependencies minor ^0.14.4 -> ^0.15.0
@backstage/core-components (source) dependencies minor ^0.14.9 -> ^0.15.0
@backstage/core-components (source) dependencies minor ^0.14.10 -> ^0.15.0
@backstage/frontend-plugin-api (source) dependencies minor ^0.6.4 -> ^0.9.0
@backstage/frontend-plugin-api (source) dependencies minor ^0.7.0 -> ^0.9.0
@backstage/plugin-auth-backend (source) dependencies minor ^0.22.4 -> ^0.23.0
@backstage/plugin-auth-backend (source) devDependencies minor ^0.22.9 -> ^0.23.0
@backstage/plugin-auth-backend-module-github-provider (source) dependencies minor ^0.1.14 -> ^0.2.0
@backstage/plugin-auth-backend-module-guest-provider (source) dependencies minor ^0.1.3 -> ^0.2.0
@backstage/plugin-auth-backend-module-guest-provider (source) devDependencies minor ^0.1.8 -> ^0.2.0
@backstage/plugin-auth-node (source) dependencies minor ^0.4.17 -> ^0.5.0
@backstage/plugin-auth-node (source) dependencies minor ^0.4.12 -> ^0.5.0
@backstage/plugin-catalog-backend-module-scaffolder-entity-model (source) dependencies minor ^0.1.15 -> ^0.2.0
@backstage/plugin-catalog-import (source) dependencies minor ^0.10.10 -> ^0.12.0
@backstage/plugin-permission-backend-module-allow-all-policy (source) dependencies minor ^0.1.14 -> ^0.2.0
@backstage/plugin-permission-common (source) dependencies minor ^0.7.13 -> ^0.8.0
@backstage/plugin-permission-node (source) dependencies minor ^0.7.28 -> ^0.8.0
@backstage/plugin-proxy-backend (source) dependencies minor ^0.4.15 -> ^0.5.0
@backstage/plugin-scaffolder-node (source) dependencies minor ^0.4.2 -> ^0.5.0
@backstage/plugin-scaffolder-node (source) dependencies minor ^0.4.9 -> ^0.5.0
@backstage/plugin-scaffolder-node (source) dependencies minor ^0.4.8 -> ^0.5.0
@backstage/plugin-search-backend-module-catalog (source) dependencies minor ^0.1.22 -> ^0.2.0
@backstage/plugin-search-backend-module-techdocs (source) dependencies minor ^0.1.22 -> ^0.3.0
@backstage/repo-tools (source) dependencies minor ^0.9.4 -> ^0.10.0
@backstage/repo-tools (source) devDependencies minor ^0.9.5 -> ^0.10.0
@backstage/repo-tools (source) devDependencies minor ^0.8.0 -> ^0.10.0
@backstage/repo-tools (source) devDependencies minor ^0.9.5 -> ^0.10.0
@backstage/theme (source) dependencies minor ^0.5.2 -> ^0.6.0
@backstage/theme (source) dependencies minor ^0.5.3 -> ^0.6.0
@backstage/theme (source) dependencies minor ^0.5.6 -> ^0.6.0

Release Notes

backstage/backstage (@​backstage/backend-common)

v0.25.0

Compare Source

@​backstage/backend-common@​0.7.0
Minor Changes
  • e0bfd3d: Refactor the runDockerContainer(…) function to an interface-based api.
    This gives the option to replace the docker runtime in the future.

    Packages and plugins that previously used the dockerode as argument should be migrated to use the new ContainerRunner interface instead.

      import {
    -   runDockerContainer,
    +   ContainerRunner,
        PluginEndpointDiscovery,
      } from '@​backstage/backend-common';
    - import Docker from 'dockerode';
    
      type RouterOptions = {
        // ...
    -   dockerClient: Docker,
    +   containerRunner: ContainerRunner;
      };
    
      export async function createRouter({
        // ...
    -   dockerClient,
    +   containerRunner,
      }: RouterOptions): Promise<express.Router> {
        // ...
    
    +   await containerRunner.runContainer({
    -   await runDockerContainer({
          image: 'docker',
          // ...
    -     dockerClient,
        });
    
        // ...
      }

    To keep the dockerode based runtime, use the DockerContainerRunner implementation:

    + import {
    +   ContainerRunner,
    +   DockerContainerRunner
    + } from '@&#8203;backstage/backend-common';
    - import { runDockerContainer } from '@&#8203;backstage/backend-common';
    
    + const containerRunner: ContainerRunner = new DockerContainerRunner({dockerClient});
    + await containerRunner.runContainer({
    - await runDockerContainer({
        image: 'docker',
        // ...
    -   dockerClient,
      });
Patch Changes
@​backstage/techdocs-common@​0.6.0
Minor Changes
  • e0bfd3d: Migrate the package to use the ContainerRunner interface instead of runDockerContainer(…).
    It also no longer provides the ContainerRunner as an input to the GeneratorBase#run(…) function, but expects it as a constructor parameter instead.

    If you use the TechdocsGenerator you need to update the usage:

    + const containerRunner = new DockerContainerRunner({ dockerClient });
    
    - const generator = new TechdocsGenerator(logger, config);
    + const techdocsGenerator = new TechdocsGenerator({
    +   logger,
    +   containerRunner,
    +   config,
    + });
    
      await this.generator.run({
        inputDir: preparedDir,
        outputDir,
    -   dockerClient: this.dockerClient,
        parsedLocationAnnotation,
        etag: newEtag,
      });
Patch Changes
@​backstage/plugin-cost-insights@​0.9.0
Minor Changes
  • 6f1b82b: make change ratio optional
Patch Changes
@​backstage/plugin-scaffolder-backend@​0.11.0
Minor Changes
  • e0bfd3d: Migrate the plugin to use the ContainerRunner interface instead of runDockerContainer(…).
    It also provides the ContainerRunner to the individual templaters instead of to the createRouter function.

    To apply this change to an existing backend application, add the following to src/plugins/scaffolder.ts:

    - import { SingleHostDiscovery } from '@&#8203;backstage/backend-common';
    + import {
    +   DockerContainerRunner,
    +   SingleHostDiscovery,
    + } from '@&#8203;backstage/backend-common';

    export default async function createPlugin({
    logger,
    config,
    database,
    reader,
    }: PluginEnvironment): Promise {

  • const dockerClient = new Docker();

  • const containerRunner = new DockerContainerRunner({ dockerClient });

  • const cookiecutterTemplater = new CookieCutter({ containerRunner });

  • const cookiecutterTemplater = new CookieCutter();

  • const craTemplater = new CreateReactAppTemplater({ containerRunner });

  • const craTemplater = new CreateReactAppTemplater();
    const templaters = new Templaters();

    templaters.register('cookiecutter', cookiecutterTemplater);
    templaters.register('cra', craTemplater);

    const preparers = await Preparers.fromConfig(config, { logger });
    const publishers = await Publishers.fromConfig(config, { logger });

  • const dockerClient = new Docker();

    const discovery = SingleHostDiscovery.fromConfig(config);
    const catalogClient = new CatalogClient({ discoveryApi: discovery });

    return await createRouter({
    preparers,
    templaters,
    publishers,
    logger,
    config,

  •     dockerClient,
          database,
          catalogClient,
          reader,
        });
      }
    
Patch Changes
@​backstage/plugin-techdocs-backend@​0.8.0
Minor Changes
  • e0bfd3d: Migrate the plugin to use the ContainerRunner interface instead of runDockerContainer(…).
    It also provides the ContainerRunner to the generators instead of to the createRouter function.

    To apply this change to an existing backend application, add the following to src/plugins/techdocs.ts:

    + import { DockerContainerRunner } from '@&#8203;backstage/backend-common';
    
      // ...
    
      export default async function createPlugin({
        logger,
        config,
        discovery,
        reader,
      }: PluginEnvironment): Promise<Router> {
        // Preparers are responsible for fetching source files for documentation.
        const preparers = await Preparers.fromConfig(config, {
          logger,
          reader,
        });
    
    +   // Docker client (conditionally) used by the generators, based on techdocs.generators config.
    +   const dockerClient = new Docker();
    +   const containerRunner = new DockerContainerRunner({ dockerClient });
    
        // Generators are used for generating documentation sites.
        const generators = await Generators.fromConfig(config, {
          logger,
    +     containerRunner,
        });
    
        // Publisher is used for
        // 1. Publishing generated files to storage
        // 2. Fetching files from storage and passing them to TechDocs frontend.
        const publisher = await Publisher.fromConfig(config, {
          logger,
          discovery,
        });
    
        // checks if the publisher is working and logs the result
        await publisher.getReadiness();
    
    -   // Docker client (conditionally) used by the generators, based on techdocs.generators config.
    -   const dockerClient = new Docker();
    
        return await createRouter({
          preparers,
          generators,
          publisher,
    -     dockerClient,
          logger,
          config,
          discovery,
        });
      }
Patch Changes
@​backstage/catalog-client@​0.3.11
Patch Changes
@​backstage/catalog-model@​0.7.8
Patch Changes
@​backstage/cli@​0.6.10
Patch Changes
@​backstage/config@​0.1.5
Patch Changes
  • d8b81fd: Bump json-schema dependency from 0.2.5 to 0.3.0.
@​backstage/config-loader@​0.6.1
Patch Changes
@​backstage/core@​0.7.8
Patch Changes
@​backstage/create-app@​0.3.21
Patch Changes
  • 38ca051: The default @octokit/rest dependency was bumped to "^18.5.3".

  • e0bfd3d: The scaffolder-backend and techdocs-backend plugins have been updated.
    In order to update, you need to apply the following changes to your existing backend application:

    @backstage/plugin-techdocs-backend:

    // packages/backend/src/plugin/techdocs.ts
    
    + import { DockerContainerRunner } from '@&#8203;backstage/backend-common';
    
      // ...
    
      export default async function createPlugin({
        logger,
        config,
        discovery,
        reader,
      }: PluginEnvironment): Promise<Router> {
        // Preparers are responsible for fetching source files for documentation.
        const preparers = await Preparers.fromConfig(config, {
          logger,
          reader,
        });
    
    +   // Docker client (conditionally) used by the generators, based on techdocs.generators config.
    +   const dockerClient = new Docker();
    +   const containerRunner = new DockerContainerRunner({ dockerClient });
    
        // Generators are used for generating documentation sites.
        const generators = await Generators.fromConfig(config, {
          logger,
    +     containerRunner,
        });
    
        // Publisher is used for
        // 1. Publishing generated files to storage
        // 2. Fetching files from storage and passing them to TechDocs frontend.
        const publisher = await Publisher.fromConfig(config, {
          logger,
          discovery,
        });
    
        // checks if the publisher is working and logs the result
        await publisher.getReadiness();
    
    -   // Docker client (conditionally) used by the generators, based on techdocs.generators config.
    -   const dockerClient = new Docker();
    
        return await createRouter({
          preparers,
          generators,
          publisher,
    -     dockerClient,
          logger,
          config,
          discovery,
        });
      }

    @backstage/plugin-scaffolder-backend:

    // packages/backend/src/plugin/scaffolder.ts
    
    - import { SingleHostDiscovery } from '@&#8203;backstage/backend-common';
    + import {
    +   DockerContainerRunner,
    +   SingleHostDiscovery,
    + } from '@&#8203;backstage/backend-common';

    export default async function createPlugin({
    logger,
    config,
    database,
    reader,
    }: PluginEnvironment): Promise {

  • const dockerClient = new Docker();

  • const containerRunner = new DockerContainerRunner({ dockerClient });

  • const cookiecutterTemplater = new CookieCutter({ containerRunner });

  • const cookiecutterTemplater = new CookieCutter();

  • const craTemplater = new CreateReactAppTemplater({ containerRunner });

  • const craTemplater = new CreateReactAppTemplater();
    const templaters = new Templaters();

    templaters.register('cookiecutter', cookiecutterTemplater);
    templaters.register('cra', craTemplater);

    const preparers = await Preparers.fromConfig(config, { logger });
    const publishers = await Publishers.fromConfig(config, { logger });

  • const dockerClient = new Docker();

    const discovery = SingleHostDiscovery.fromConfig(config);
    const catalogClient = new CatalogClient({ discoveryApi: discovery });

    return await createRouter({
    preparers,
    templaters,
    publishers,
    logger,
    config,

  •     dockerClient,
          database,
          catalogClient,
          reader,
        });
      }
    
  • Updated dependencies [e0bfd3d]

  • Updated dependencies [e0bfd3d]

  • Updated dependencies [e0bfd3d]

  • Updated dependencies [38ca051]

  • Updated dependencies [f65adcd]

  • Updated dependencies [8088865]

  • Updated dependencies [b219821]

  • Updated dependencies [7b8272f]

  • Updated dependencies [8aedbb4]

  • Updated dependencies [fc79a6d]

  • Updated dependencies [69eefb5]

  • Updated dependencies [75c8cec]

  • Updated dependencies [b2e2ec7]

  • Updated dependencies [227439a]

  • Updated dependencies [9314a85]

  • Updated dependencies [2e05277]

  • Updated dependencies [4075c63]

  • Updated dependencies [cdb3426]

  • Updated dependencies [d8b81fd]

  • Updated dependencies [d1b1306]

@​backstage/integration@​0.5.2
Patch Changes
@​backstage/theme@​0.2.7
Patch Changes
  • 7b8272f: Remove extra bottom padding in InfoCard content
@​backstage/plugin-app-backend@​0.3.12
Patch Changes
@​backstage/plugin-auth-backend@​0.3.9
Patch Changes
@​backstage/plugin-badges-backend@​0.1.3
Patch Changes
@​backstage/plugin-catalog-backend@​0.8.2
Patch Changes
@​backstage/plugin-catalog-graphql@​0.2.8
Patch Changes
@​backstage/plugin-catalog-import@​0.5.5
Patch Changes
@​backstage/plugin-catalog-react@​0.1.5
Patch Changes
@​backstage/plugin-code-coverage-backend@​0.1.4
Patch Changes
@​backstage/plugin-github-actions@​0.4.5
Patch Changes
@​backstage/plugin-graphql-backend@​0.1.7
Patch Changes
@​backstage/plugin-kafka-backend@​0.2.4
Patch Changes
@​backstage/plugin-kubernetes@​0.4.3
Patch Changes
@​backstage/plugin-kubernetes-backend@​0.3.6
Patch Changes
@​backstage/plugin-proxy-backend@​0.2.7
Patch Changes
  • cdb3426: Prefix proxy routes with / if not present in configuration
  • Updated dependencies [e0bfd3d]
  • Updated dependencies [38ca051]
  • Updated dependenci

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@backstage-goalie backstage-goalie bot requested a review from a team as a code owner November 11, 2024 22:16
@backstage-goalie backstage-goalie bot added the dependencies Pull requests that update a dependency file label Nov 11, 2024
@backstage-goalie
Copy link
Contributor Author

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @backstage-community/plugin-scaffolder-backend-module-azure-devops
  • @backstage-community/plugin-graphiql
  • @backstage-community/plugin-scaffolder-backend-module-jenkins
  • @backstage-community/plugin-kiali-backend
  • @backstage-community/plugin-mend-backend
  • @backstage-community/plugin-mend
  • @backstage-community/backstage-plugin-catalog-backend-module-mta-entity-provider
  • @backstage-community/backstage-plugin-mta-backend
  • @backstage-community/backstage-plugin-mta-frontend
  • @backstage-community/backstage-plugin-scaffolder-backend-module-mta
  • @backstage-community/plugin-tech-radar-backend
  • @backstage-community/plugin-tech-radar-common

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-scaffolder-backend-module-azure-devops workspaces/azure-devops/plugins/scaffolder-backend-module-azure-devops none v0.1.2
backend workspaces/cicd-statistics/packages/backend none v0.0.0
@backstage-community/plugin-graphiql workspaces/graphiql/plugins/graphiql none v0.4.0
@backstage-community/plugin-scaffolder-backend-module-jenkins workspaces/jenkins/plugins/scaffolder-backend-module-jenkins none v0.2.0
@backstage-community/plugin-kiali-backend workspaces/kiali/plugins/kiali-backend none v1.19.1
@backstage-community/plugin-mend-backend workspaces/mend/plugins/mend-backend none v0.0.0
@backstage-community/plugin-mend workspaces/mend/plugins/mend none v0.0.0
app workspaces/mta/packages/app none v0.0.1
@backstage-community/backstage-plugin-catalog-backend-module-mta-entity-provider workspaces/mta/plugins/catalog-backend-module-mta-entity-provider none v0.1.2
@backstage-community/backstage-plugin-mta-backend workspaces/mta/plugins/mta-backend none v0.2.1
@backstage-community/backstage-plugin-mta-frontend workspaces/mta/plugins/mta-frontend none v0.1.2
@backstage-community/backstage-plugin-scaffolder-backend-module-mta workspaces/mta/plugins/scaffolder-backend-module-mta none v0.2.1
@backstage-community/cli workspaces/repo-tools/packages/cli none v0.0.3
@backstage-community/plugin-tech-radar-backend workspaces/tech-radar/plugins/tech-radar-backend none v1.0.0
@backstage-community/plugin-tech-radar-common workspaces/tech-radar/plugins/tech-radar-common none v1.0.0

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant