From 2b83812b9caa6c40d316646781e140feda6726fe Mon Sep 17 00:00:00 2001 From: Raz Ben Simon Date: Wed, 15 Jan 2025 13:28:55 +0200 Subject: [PATCH 01/64] Register env0 plugin Register env0 plugin Signed-off-by: Raz Ben Simon Signed-off-by: Raz Ben Simon --- microsite/data/plugins/env0.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 microsite/data/plugins/env0.yaml diff --git a/microsite/data/plugins/env0.yaml b/microsite/data/plugins/env0.yaml new file mode 100644 index 0000000000..28bf382502 --- /dev/null +++ b/microsite/data/plugins/env0.yaml @@ -0,0 +1,10 @@ +--- +title: env0 +author: env0 +authorUrl: https://www.env0.com/ +category: Infrastructure +description: Use env0 scaffolder actions to deploy and manage your infrastructure using env0 directly from Backstage +documentation: https://github.com/env0/env0-backstage-plugin +iconUrl: https://cdn.prod.website-files.com/63df9b273f861215467107c8/668fd303582961e81ef532fc_env0%20logo-dark.svg +npmPackageName: '@env0/backstage-plugin-env0' +addedDate: '2025-01-15' From 5576ecfb595cdd99839ebe4634cb528f2089ba07 Mon Sep 17 00:00:00 2001 From: Andre Wanlin Date: Wed, 15 Jan 2025 11:32:02 -0600 Subject: [PATCH 02/64] Updated Announcements location Signed-off-by: Andre Wanlin --- microsite/data/plugins/announcements.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microsite/data/plugins/announcements.yaml b/microsite/data/plugins/announcements.yaml index 4d53f4157a..a9c66d6203 100644 --- a/microsite/data/plugins/announcements.yaml +++ b/microsite/data/plugins/announcements.yaml @@ -4,7 +4,7 @@ author: procore-oss authorUrl: https://github.com/procore-oss category: Discovery description: Write and share announcements within Backstage. -documentation: https://github.com/procore-oss/backstage-plugin-announcements/ +documentation: https://github.com/backstage/community-plugins/tree/main/workspaces/announcements/ iconUrl: /img/plugin-announcements-logo.png -npmPackageName: '@procore-oss/backstage-plugin-announcements' +npmPackageName: '@backstage-community/plugin-announcements' addedDate: '2022-11-09' From 474b748a51947a44b83bb0aa07bc7a0f309aaf42 Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Wed, 15 Jan 2025 13:16:59 +0100 Subject: [PATCH 03/64] Improve knip reports by using a single config with workspaces Also move the dependency from the workspace into repo-tools. The run with a configured workspace is slower, so I had to bump the timeout. Signed-off-by: Axel Hecht --- .changeset/cool-pants-boil.md | 5 ++ package.json | 1 - packages/repo-tools/package.json | 1 + .../commands/knip-reports/knip-extractor.ts | 69 ++++++++++--------- packages/repo-tools/src/commands/util.ts | 3 +- yarn.lock | 10 +-- 6 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 .changeset/cool-pants-boil.md diff --git a/.changeset/cool-pants-boil.md b/.changeset/cool-pants-boil.md new file mode 100644 index 0000000000..792fb57195 --- /dev/null +++ b/.changeset/cool-pants-boil.md @@ -0,0 +1,5 @@ +--- +'@backstage/repo-tools': patch +--- + +Improve knip reports by using a single workspace-based config diff --git a/package.json b/package.json index 41b8529c70..0595e00b68 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,6 @@ "eslint-plugin-testing-library": "^6.0.0", "fs-extra": "^11.2.0", "husky": "^9.0.0", - "knip": "^5.0.0", "lint-staged": "^15.0.0", "minimist": "^1.2.5", "node-gyp": "^10.0.0", diff --git a/packages/repo-tools/package.json b/packages/repo-tools/package.json index f5c6a0c060..4ccad33712 100644 --- a/packages/repo-tools/package.json +++ b/packages/repo-tools/package.json @@ -74,6 +74,7 @@ "just-diff": "^6.0.2", "knex": "^3.0.0", "knex-pglite": "^0.11.0", + "knip": "^5.42.0", "lodash": "^4.17.21", "minimatch": "^9.0.0", "p-limit": "^3.0.2", diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index 50c429f986..645d084017 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -18,6 +18,7 @@ import pLimit from 'p-limit'; import os from 'os'; import { relative as relativePath, resolve as resolvePath } from 'path'; import fs from 'fs-extra'; +import type { KnipConfig } from 'knip'; import { createBinRunner } from '../util'; // Ignore this due to Knip error: Error: ENAMETOOLONG: name too long, scandir @@ -29,7 +30,7 @@ interface KnipExtractionOptions { } interface KnipConfigOptions { - packageDir: string; + knipConfigPath: string; } interface KnipPackageOptions { @@ -55,15 +56,20 @@ function logKnipReportInstructions() { console.log(''); } -async function generateKnipConfig({ packageDir }: KnipConfigOptions) { - const knipConfig = { - entry: [ - 'dev/index.{ts,tsx}', - 'src/index.{ts,tsx}', - 'src/alpha.{ts,tsx}', - 'src/routes.ts', - 'src/run.ts', - ], +async function generateKnipConfig({ knipConfigPath }: KnipConfigOptions) { + const knipConfig: KnipConfig = { + workspaces: { + '.': {}, + '{packages,plugins}/*': { + entry: [ + 'dev/index.{ts,tsx}', + 'src/index.{ts,tsx}', + 'src/alpha.{ts,tsx}', + 'src/routes.ts', + 'src/run.ts', + ], + }, + }, jest: { entry: ['src/setupTests.ts', '**/*.test.{ts,tsx}'], }, @@ -81,15 +87,12 @@ async function generateKnipConfig({ packageDir }: KnipConfigOptions) { '@backstage/theme', // this uses `declare module` in .d.ts so is implicitly used whenever extensions are needed ], }; - await fs.writeFile( - `${packageDir}/knip.json`, - JSON.stringify(knipConfig, null, 2), - ); + await fs.writeFile(knipConfigPath, JSON.stringify(knipConfig, null, 2)); } -function cleanKnipConfig({ packageDir }: KnipConfigOptions) { - if (fs.existsSync(`${packageDir}/knip.json`)) { - fs.rmSync(`${packageDir}/knip.json`); +function cleanKnipConfig({ knipConfigPath }: KnipConfigOptions) { + if (fs.existsSync(knipConfigPath)) { + fs.rmSync(knipConfigPath); } } @@ -105,13 +108,11 @@ async function handlePackage({ } const fullDir = cliPaths.resolveTargetRoot(packageDir); const reportPath = resolvePath(fullDir, 'knip-report.md'); - const run = createBinRunner(fullDir, ''); + const run = createBinRunner(cliPaths.targetRoot, ''); - await generateKnipConfig({ packageDir: fullDir }); - - const report = await run( + let report = await run( `${knipDir}/knip.js`, - `--directory ${fullDir}`, // Run in the package directory + `-W ${packageDir}`, // Run the desired workspace '--config knip.json', '--no-exit-code', // Removing this will end the process in case there are findings by knip '--no-progress', // Remove unnecessary debugging from output @@ -120,7 +121,17 @@ async function handlePackage({ '--reporter markdown', ); - cleanKnipConfig({ packageDir: fullDir }); + // Adjust report paths to be relative to workspace + report = report.replaceAll(`| ${packageDir}/`, '| '); + // Adjust table separators + report = report.replaceAll( + new RegExp(`(\\| :-+ \\| :)-{${packageDir.length + 1}}`, 'g'), + (_, p1) => p1, + ); + report = report.replaceAll( + new RegExp(` \\| Location {1,${packageDir.length + 2}}`, 'g'), + ' | Location ', + ); const existingReport = await fs.readFile(reportPath, 'utf8').catch(error => { if (error.code === 'ENOENT') { @@ -160,8 +171,10 @@ export async function runKnipReports({ isLocalBuild, }: KnipExtractionOptions) { const knipDir = cliPaths.resolveTargetRoot('./node_modules/knip/bin/'); + const knipConfigPath = cliPaths.resolveTargetRoot('./knip.json'); const limiter = pLimit(os.cpus().length); + await generateKnipConfig({ knipConfigPath }); try { await Promise.all( packageDirs.map(packageDir => @@ -170,15 +183,9 @@ export async function runKnipReports({ ), ), ); + await cleanKnipConfig({ knipConfigPath }); } catch (e) { - console.log( - `Error occurred during knip reporting: ${e}, cleaning knip configs`, - ); - packageDirs.map(packageDir => { - const fullDir = cliPaths.resolveTargetRoot(packageDir); - cleanKnipConfig({ packageDir: fullDir }); - }); - + console.log(`Error occurred during knip reporting: ${e}`); throw e; } } diff --git a/packages/repo-tools/src/commands/util.ts b/packages/repo-tools/src/commands/util.ts index e28aae6267..ff4cdad1b8 100644 --- a/packages/repo-tools/src/commands/util.ts +++ b/packages/repo-tools/src/commands/util.ts @@ -35,11 +35,12 @@ export function createBinRunner(cwd: string, path: string) { { cwd, shell: true, - timeout: 60000, + timeout: 3 * 60 * 1000, maxBuffer: 1024 * 1024, }, (err, stdout, stderr) => { if (err) { + console.log('err', err); reject(new Error(`${err.message}\n${stderr}`)); } else if (stderr) { reject(new Error(`Command printed error output: ${stderr}`)); diff --git a/yarn.lock b/yarn.lock index cf388516b3..3d19a0021b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8329,6 +8329,7 @@ __metadata: just-diff: ^6.0.2 knex: ^3.0.0 knex-pglite: ^0.11.0 + knip: ^5.42.0 lodash: ^4.17.21 minimatch: ^9.0.0 p-limit: ^3.0.2 @@ -34104,7 +34105,7 @@ __metadata: languageName: node linkType: hard -"knip@npm:^5.0.0": +"knip@npm:^5.42.0": version: 5.42.2 resolution: "knip@npm:5.42.2" dependencies: @@ -39801,11 +39802,11 @@ __metadata: linkType: hard "pretty-ms@npm:^9.0.0": - version: 9.0.0 - resolution: "pretty-ms@npm:9.0.0" + version: 9.2.0 + resolution: "pretty-ms@npm:9.2.0" dependencies: parse-ms: ^4.0.0 - checksum: 072b17547e09cb232e8e4c7be0281e256b6d8acd18dfb2fdd715d50330d1689fdaa877f53cf90c62ed419ef842f0f5fb94a2cd8ed1aa6d7608ad48834219435d + checksum: d3a5a5b1c8a3417f64a877dba5ee2bacee404b59bc12083466e5e6dce2745e4bd716e1f9860624c7dceb1b4a532e808e4f2a7a03903a132344b3818951e2d125 languageName: node linkType: hard @@ -42217,7 +42218,6 @@ __metadata: eslint-plugin-testing-library: ^6.0.0 fs-extra: ^11.2.0 husky: ^9.0.0 - knip: ^5.0.0 lint-staged: ^15.0.0 minimist: ^1.2.5 node-gyp: ^10.0.0 From a904b605aa5b0465db4819cbf0e713d23d62b453 Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Wed, 15 Jan 2025 14:37:24 +0100 Subject: [PATCH 04/64] Update existing knip-report files Also remove a stray one Signed-off-by: Axel Hecht --- packages/app-defaults/knip-report.md | 6 + .../app-next-example-plugin/knip-report.md | 6 + packages/app-next/knip-report.md | 56 ++------ packages/app/knip-report.md | 32 ++--- packages/backend-app-api/knip-report.md | 49 ++++++- packages/backend-defaults/knip-report.md | 23 +++- .../knip-report.md | 3 +- packages/backend-legacy/knip-report.md | 9 +- packages/backend-openapi-utils/knip-report.md | 3 +- packages/backend-plugin-api/knip-report.md | 6 + packages/backend-test-utils/knip-report.md | 16 ++- packages/backend/knip-report.md | 7 +- packages/cli/knip-report.md | 123 +++++++++--------- packages/core-app-api/knip-report.md | 10 +- packages/core-compat-api/knip-report.md | 21 +++ packages/core-components/knip-report.md | 19 +-- packages/core-plugin-api/knip-report.md | 9 +- packages/create-app/knip-report.md | 62 ++++++++- packages/dev-utils/knip-report.md | 8 +- packages/e2e-test/knip-report.md | 9 +- packages/eslint-plugin/knip-report.md | 7 - packages/frontend-app-api/knip-report.md | 22 ++++ packages/frontend-plugin-api/knip-report.md | 22 ++++ packages/frontend-test-utils/knip-report.md | 19 +++ packages/integration-react/knip-report.md | 6 + packages/repo-tools/knip-report.md | 2 +- packages/techdocs-cli/knip-report.md | 8 +- packages/test-utils/knip-report.md | 9 +- packages/theme/knip-report.md | 15 ++- packages/version-bridge/knip-report.md | 12 ++ .../knip-report.md | 13 ++ plugins/api-docs/knip-report.md | 15 ++- plugins/app-backend/knip-report.md | 9 +- plugins/app-visualizer/knip-report.md | 6 + .../knip-report.md | 3 +- .../knip-report.md | 12 -- .../knip-report.md | 9 +- .../knip-report.md | 6 - .../knip-report.md | 9 +- .../knip-report.md | 20 +-- .../knip-report.md | 12 ++ plugins/auth-backend/knip-report.md | 7 +- plugins/auth-node/knip-report.md | 8 +- .../catalog-backend-module-aws/knip-report.md | 9 +- .../knip-report.md | 6 + .../knip-report.md | 6 + .../knip-report.md | 6 + .../knip-report.md | 16 --- .../knip-report.md | 6 + .../knip-report.md | 6 + .../knip-report.md | 9 +- .../knip-report.md | 6 + .../knip-report.md | 6 + .../knip-report.md | 6 + .../knip-report.md | 6 + .../knip-report.md | 7 + plugins/catalog-backend/knip-report.md | 7 - plugins/catalog-graph/knip-report.md | 8 +- plugins/catalog-import/knip-report.md | 8 +- plugins/catalog-react/knip-report.md | 15 ++- .../knip-report.md | 6 + plugins/catalog/knip-report.md | 8 +- plugins/config-schema/knip-report.md | 8 +- plugins/devtools-backend/knip-report.md | 7 + plugins/devtools/knip-report.md | 6 + plugins/events-backend/knip-report.md | 6 + plugins/events-node/knip-report.md | 6 + .../example-todo-list-backend/knip-report.md | 8 ++ plugins/example-todo-list/knip-report.md | 6 + plugins/home-react/knip-report.md | 6 + plugins/home/knip-report.md | 8 +- plugins/kubernetes-backend/knip-report.md | 24 ++-- plugins/kubernetes-cluster/knip-report.md | 15 ++- plugins/kubernetes-node/knip-report.md | 6 + plugins/kubernetes-react/knip-report.md | 6 + plugins/kubernetes/knip-report.md | 8 +- plugins/notifications-backend/knip-report.md | 11 +- plugins/notifications-node/knip-report.md | 3 +- plugins/notifications/knip-report.md | 9 +- plugins/org-react/knip-report.md | 14 +- plugins/org/knip-report.md | 12 +- .../knip-report.md | 6 + plugins/permission-react/knip-report.md | 6 + plugins/proxy-backend/knip-report.md | 11 +- .../knip-report.md | 6 - .../knip-report.md | 6 - .../knip-report.md | 11 +- .../knip-report.md | 13 ++ .../knip-report.md | 6 - .../knip-report.md | 6 +- .../knip-report.md | 6 + .../knip-report.md | 6 - .../knip-report.md | 6 - plugins/scaffolder-backend/knip-report.md | 17 ++- .../scaffolder-node-test-utils/knip-report.md | 11 +- plugins/scaffolder-react/knip-report.md | 21 ++- plugins/scaffolder/knip-report.md | 14 +- .../knip-report.md | 7 + .../search-backend-module-pg/knip-report.md | 6 + plugins/search-backend-node/knip-report.md | 6 + plugins/search-backend/knip-report.md | 7 + plugins/search-react/knip-report.md | 9 +- plugins/search/knip-report.md | 8 +- plugins/signals-backend/knip-report.md | 13 +- plugins/signals-node/knip-report.md | 3 +- plugins/signals-react/knip-report.md | 6 + plugins/signals/knip-report.md | 10 +- .../techdocs-addons-test-utils/knip-report.md | 6 + .../knip-report.md | 8 +- plugins/techdocs-react/knip-report.md | 11 +- plugins/techdocs/knip-report.md | 9 +- plugins/user-settings-backend/knip-report.md | 7 + plugins/user-settings/knip-report.md | 8 +- 113 files changed, 894 insertions(+), 426 deletions(-) delete mode 100644 plugins/catalog-backend-module-bitbucket/knip-report.md diff --git a/packages/app-defaults/knip-report.md b/packages/app-defaults/knip-report.md index 2661c35327..27a145e95c 100644 --- a/packages/app-defaults/knip-report.md +++ b/packages/app-defaults/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/packages/app-next-example-plugin/knip-report.md b/packages/app-next-example-plugin/knip-report.md index e01cd18c93..54dc66d59e 100644 --- a/packages/app-next-example-plugin/knip-report.md +++ b/packages/app-next-example-plugin/knip-report.md @@ -7,3 +7,9 @@ | cross-fetch | package.json | error | | msw | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/packages/app-next/knip-report.md b/packages/app-next/knip-report.md index 78d11bdebd..c30e426318 100644 --- a/packages/app-next/knip-report.md +++ b/packages/app-next/knip-report.md @@ -1,79 +1,45 @@ # Knip report -## Unused dependencies (63) +## Unused dependencies (30) | Name | Location | Severity | | :----------------------------------------------- | :----------- | :------- | | @backstage/plugin-techdocs-module-addons-contrib | package.json | error | -| @roadiehq/backstage-plugin-github-pull-requests | package.json | error | | @backstage/plugin-catalog-unprocessed-entities | package.json | error | -| @roadiehq/backstage-plugin-github-insights | package.json | error | -| @oriflame/backstage-plugin-score-card | package.json | error | -| @backstage/plugin-newrelic-dashboard | package.json | error | -| @roadiehq/backstage-plugin-buildkite | package.json | error | -| @roadiehq/backstage-plugin-travis-ci | package.json | error | +| @backstage/plugin-kubernetes-cluster | package.json | error | | @backstage/plugin-permission-react | package.json | error | | @backstage/plugin-scaffolder-react | package.json | error | -| @backstage/plugin-entity-feedback | package.json | error | -| @backstage/plugin-linguist-common | package.json | error | -| @backstage/plugin-apache-airflow | package.json | error | | @backstage/plugin-catalog-common | package.json | error | -| @backstage/plugin-github-actions | package.json | error | -| @backstage/plugin-octopus-deploy | package.json | error | | @backstage/plugin-techdocs-react | package.json | error | | @backstage/plugin-catalog-graph | package.json | error | -| @backstage/plugin-catalog-react | package.json | error | -| @backstage/plugin-code-coverage | package.json | error | -| @backstage/plugin-cost-insights | package.json | error | +| @backstage/plugin-notifications | package.json | error | | @backstage/plugin-search-common | package.json | error | -| @backstage/plugin-tech-insights | package.json | error | -| @backstage/plugin-azure-devops | package.json | error | -| @backstage/plugin-gcp-projects | package.json | error | | @backstage/plugin-search-react | package.json | error | -| @backstage/plugin-azure-sites | package.json | error | -| @backstage/plugin-cloudbuild | package.json | error | -| @backstage/plugin-kubernetes | package.json | error | -| @backstage/plugin-lighthouse | package.json | error | +| @backstage/integration-react | package.json | error | +| @backstage/plugin-auth-react | package.json | error | | @backstage/plugin-scaffolder | package.json | error | -| @backstage/plugin-stackstorm | package.json | error | -| @backstage/plugin-dynatrace | package.json | error | -| @backstage/plugin-shortcuts | package.json | error | -| @backstage/plugin-airbrake | package.json | error | +| @backstage/frontend-app-api | package.json | error | +| @backstage/core-plugin-api | package.json | error | | @backstage/plugin-api-docs | package.json | error | -| @backstage/plugin-devtools | package.json | error | -| @backstage/plugin-linguist | package.json | error | -| @backstage/plugin-newrelic | package.json | error | -| @backstage/plugin-playlist | package.json | error | -| @backstage/plugin-puppetdb | package.json | error | -| @circleci/backstage-plugin | package.json | error | | @backstage/plugin-catalog | package.json | error | -| @backstage/plugin-explore | package.json | error | -| @backstage/plugin-jenkins | package.json | error | -| @backstage/plugin-rollbar | package.json | error | +| @backstage/plugin-signals | package.json | error | | @backstage/catalog-model | package.json | error | -| @backstage/plugin-badges | package.json | error | | @backstage/plugin-search | package.json | error | -| @backstage/plugin-sentry | package.json | error | | @backstage/app-defaults | package.json | error | -| @backstage/plugin-kafka | package.json | error | -| app-next-example-plugin | package.json | error | -| @backstage/plugin-gocd | package.json | error | -| @backstage/plugin-todo | package.json | error | -| @backstage/plugin-adr | package.json | error | +| @backstage/plugin-app | package.json | error | | @backstage/plugin-org | package.json | error | +| @backstage/config | package.json | error | | @material-ui/lab | package.json | error | | zen-observable | package.json | error | | @octokit/rest | package.json | error | | react-use | package.json | error | | history | package.json | error | -| lodash | package.json | error | -## Unused devDependencies (6) +## Unused devDependencies (5) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @testing-library/user-event | package.json | error | -| @testing-library/react | package.json | error | | @types/zen-observable | package.json | error | | @testing-library/dom | package.json | error | | @types/jquery | package.json | error | diff --git a/packages/app/knip-report.md b/packages/app/knip-report.md index 118f6f14e0..b05d232915 100644 --- a/packages/app/knip-report.md +++ b/packages/app/knip-report.md @@ -1,33 +1,25 @@ # Knip report -## Unused dependencies (14) +## Unused dependencies (8) -| Name | Location | Severity | -| :-------------------------------- | :----------- | :------- | -| @backstage/plugin-linguist-common | package.json | error | -| @backstage/plugin-search-common | package.json | error | -| @backstage/plugin-azure-sites | package.json | error | -| @backstage/frontend-app-api | package.json | error | -| @backstage/plugin-airbrake | package.json | error | -| vite-plugin-node-polyfills | package.json | error | -| @vitejs/plugin-react | package.json | error | -| @material-ui/lab | package.json | error | -| vite-plugin-html | package.json | error | -| zen-observable | package.json | error | -| @octokit/rest | package.json | error | -| react-router | package.json | error | -| history | package.json | error | -| vite | package.json | error | +| Name | Location | Severity | +| :------------------------------ | :----------- | :------- | +| @backstage/plugin-search-common | package.json | error | +| @backstage/plugin-auth-react | package.json | error | +| @backstage/frontend-app-api | package.json | error | +| @material-ui/lab | package.json | error | +| zen-observable | package.json | error | +| @octokit/rest | package.json | error | +| react-router | package.json | error | +| history | package.json | error | -## Unused devDependencies (5) +## Unused devDependencies (3) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @testing-library/user-event | package.json | error | | @types/zen-observable | package.json | error | -| @testing-library/dom | package.json | error | | @types/jquery | package.json | error | -| cross-env | package.json | error | ## Unlisted dependencies (1) diff --git a/packages/backend-app-api/knip-report.md b/packages/backend-app-api/knip-report.md index 8bf5c4c458..5180cb33c8 100644 --- a/packages/backend-app-api/knip-report.md +++ b/packages/backend-app-api/knip-report.md @@ -1,8 +1,49 @@ # Knip report -## Unused dependencies (1) +## Unused dependencies (27) -| Name | Location | Severity | -| :---------------- | :----------- | :------- | -| winston-transport | package.json | error | +| Name | Location | Severity | +| :-------------------------------- | :----------- | :------- | +| @backstage/plugin-permission-node | package.json | error | +| @backstage/plugin-auth-node | package.json | error | +| @backstage/config-loader | package.json | error | +| @backstage/cli-common | package.json | error | +| @manypkg/get-packages | package.json | error | +| @backstage/config | package.json | error | +| winston-transport | package.json | error | +| @backstage/types | package.json | error | +| path-to-regexp | package.json | error | +| compression | package.json | error | +| triple-beam | package.json | error | +| node-forge | package.json | error | +| selfsigned | package.json | error | +| minimatch | package.json | error | +| stoppable | package.json | error | +| minimist | package.json | error | +| logform | package.json | error | +| winston | package.json | error | +| cookie | package.json | error | +| helmet | package.json | error | +| lodash | package.json | error | +| morgan | package.json | error | +| luxon | package.json | error | +| cors | package.json | error | +| jose | package.json | error | +| knex | package.json | error | +| uuid | package.json | error | + +## Unused devDependencies (10) + +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/backend-defaults | package.json | error | +| @types/compression | package.json | error | +| @types/http-errors | package.json | error | +| @types/node-forge | package.json | error | +| @types/stoppable | package.json | error | +| @types/minimist | package.json | error | +| @types/morgan | package.json | error | +| http-errors | package.json | error | +| supertest | package.json | error | +| msw | package.json | error | diff --git a/packages/backend-defaults/knip-report.md b/packages/backend-defaults/knip-report.md index 14b2b4cc88..22105d3219 100644 --- a/packages/backend-defaults/knip-report.md +++ b/packages/backend-defaults/knip-report.md @@ -1,8 +1,25 @@ # Knip report +## Unused dependencies (6) + +| Name | Location | Severity | +| :-------------------- | :----------- | :------- | +| @backstage/cli-common | package.json | error | +| @azure/identity | package.json | error | +| better-sqlite3 | package.json | error | +| isomorphic-git | package.json | error | +| minimist | package.json | error | +| mysql2 | package.json | error | + ## Unused devDependencies (1) -| Name | Location | Severity | -| :---------------------------- | :----------- | :------- | -| @backstage/backend-test-utils | package.json | error | +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| @types/stoppable | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :-------------------------------- | :----------- | :------- | +| @google-cloud/cloud-sql-connector | package.json | error | diff --git a/packages/backend-dynamic-feature-service/knip-report.md b/packages/backend-dynamic-feature-service/knip-report.md index e738c4d931..79f2435433 100644 --- a/packages/backend-dynamic-feature-service/knip-report.md +++ b/packages/backend-dynamic-feature-service/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) | Name | Location | Severity | | :------------------------------ | :----------- | :------- | | @backstage/plugin-search-common | package.json | error | -| @backstage/errors | package.json | error | diff --git a/packages/backend-legacy/knip-report.md b/packages/backend-legacy/knip-report.md index f57bda79b7..8ec6203e20 100644 --- a/packages/backend-legacy/knip-report.md +++ b/packages/backend-legacy/knip-report.md @@ -6,22 +6,23 @@ | :------------------------------------------------- | :----------- | :------- | | @backstage/plugin-scaffolder-backend-module-gitlab | package.json | error | | @backstage/plugin-scaffolder-backend-module-rails | package.json | error | -| @backstage/plugin-azure-sites-common | package.json | error | -| @backstage/plugin-tech-insights-node | package.json | error | +| @backstage/plugin-search-backend-module-catalog | package.json | error | +| @backstage/plugin-signals-backend | package.json | error | | azure-devops-node-api | package.json | error | -| pg-connection-string | package.json | error | | @gitbeaker/node | package.json | error | | better-sqlite3 | package.json | error | | @octokit/rest | package.json | error | | example-app | package.json | error | +| dockerode | package.json | error | | mysql2 | package.json | error | | luxon | package.json | error | | pg | package.json | error | -## Unused devDependencies (2) +## Unused devDependencies (3) | Name | Location | Severity | | :------------------------------- | :----------- | :------- | | @types/express-serve-static-core | package.json | error | +| @types/dockerode | package.json | error | | @types/luxon | package.json | error | diff --git a/packages/backend-openapi-utils/knip-report.md b/packages/backend-openapi-utils/knip-report.md index 5d1536b3c1..cf540a8d1d 100644 --- a/packages/backend-openapi-utils/knip-report.md +++ b/packages/backend-openapi-utils/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) | Name | Location | Severity | | :---------------------------- | :----------- | :------- | | @backstage/backend-plugin-api | package.json | error | -| lodash | package.json | error | diff --git a/packages/backend-plugin-api/knip-report.md b/packages/backend-plugin-api/knip-report.md index 2661c35327..89988530e6 100644 --- a/packages/backend-plugin-api/knip-report.md +++ b/packages/backend-plugin-api/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/plugin-auth-node | package.json | error | + diff --git a/packages/backend-test-utils/knip-report.md b/packages/backend-test-utils/knip-report.md index 18741dce81..6ba3e32cd6 100644 --- a/packages/backend-test-utils/knip-report.md +++ b/packages/backend-test-utils/knip-report.md @@ -1,11 +1,13 @@ # Knip report -## Unused dependencies (4) +## Unused dependencies (6) -| Name | Location | Severity | -| :------------- | :----------- | :------- | -| better-sqlite3 | package.json | error | -| mysql2 | package.json | error | -| msw | package.json | error | -| pg | package.json | error | +| Name | Location | Severity | +| :------------------------------- | :----------- | :------- | +| @types/express-serve-static-core | package.json | error | +| @backstage/plugin-auth-node | package.json | error | +| better-sqlite3 | package.json | error | +| @types/qs | package.json | error | +| mysql2 | package.json | error | +| pg | package.json | error | diff --git a/packages/backend/knip-report.md b/packages/backend/knip-report.md index a26b412ee9..d24322fd2b 100644 --- a/packages/backend/knip-report.md +++ b/packages/backend/knip-report.md @@ -1,12 +1,15 @@ # Knip report -## Unused dependencies (5) +## Unused dependencies (8) | Name | Location | Severity | | :----------------------------------------------- | :----------- | :------- | | @backstage/plugin-catalog-backend-module-openapi | package.json | error | +| @opentelemetry/auto-instrumentations-node | package.json | error | | @backstage/plugin-search-backend-node | package.json | error | | @backstage/plugin-permission-common | package.json | error | +| @opentelemetry/exporter-prometheus | package.json | error | | @backstage/plugin-permission-node | package.json | error | -| @backstage/backend-tasks | package.json | error | +| @opentelemetry/sdk-node | package.json | error | +| example-app | package.json | error | diff --git a/packages/cli/knip-report.md b/packages/cli/knip-report.md index 16926bb87d..60ccba435c 100644 --- a/packages/cli/knip-report.md +++ b/packages/cli/knip-report.md @@ -1,68 +1,75 @@ # Knip report -## Unused dependencies (28) +## Unused dependencies (26) -| Name | Location | Severity | -| :------------------------------- | :----------- | :------- | -| @typescript-eslint/eslint-plugin | package.json | error | -| @spotify/eslint-config-react | package.json | error | -| eslint-formatter-friendly | package.json | error | -| eslint-plugin-deprecation | package.json | error | -| eslint-plugin-react-hooks | package.json | error | -| @sucrase/webpack-loader | package.json | error | -| eslint-plugin-jsx-a11y | package.json | error | -| jest-environment-jsdom | package.json | error | -| terser-webpack-plugin | package.json | error | -| eslint-plugin-react | package.json | error | -| @types/webpack-env | package.json | error | -| @svgr/plugin-svgo | package.json | error | -| @svgr/plugin-jsx | package.json | error | -| jest-css-modules | package.json | error | -| @swc/helpers | package.json | error | -| jest-runtime | package.json | error | -| cross-fetch | package.json | error | -| @svgr/core | package.json | error | -| @swc/core | package.json | error | -| @swc/jest | package.json | error | -| esbuild | package.json | error | -| pirates | package.json | error | -| postcss | package.json | error | -| process | package.json | error | -| sucrase | package.json | error | -| buffer | package.json | error | -| glob | package.json | error | -| util | package.json | error | +| Name | Location | Severity | +| :--------------------------- | :----------- | :------- | +| @spotify/eslint-config-react | package.json | error | +| eslint-formatter-friendly | package.json | error | +| eslint-plugin-react-hooks | package.json | error | +| @backstage/catalog-model | package.json | error | +| @octokit/graphql-schema | package.json | error | +| @sucrase/webpack-loader | package.json | error | +| @backstage/integration | package.json | error | +| eslint-plugin-jsx-a11y | package.json | error | +| jest-environment-jsdom | package.json | error | +| terser-webpack-plugin | package.json | error | +| eslint-plugin-react | package.json | error | +| @octokit/oauth-app | package.json | error | +| @svgr/plugin-svgo | package.json | error | +| @octokit/graphql | package.json | error | +| @svgr/plugin-jsx | package.json | error | +| jest-css-modules | package.json | error | +| git-url-parse | package.json | error | +| jest-runtime | package.json | error | +| cross-fetch | package.json | error | +| @svgr/core | package.json | error | +| @swc/jest | package.json | error | +| process | package.json | error | +| sucrase | package.json | error | +| buffer | package.json | error | +| glob | package.json | error | +| util | package.json | error | -## Unused devDependencies (11) +## Unused devDependencies (14) -| Name | Location | Severity | -| :-------------------------------------- | :----------- | :------- | -| @types/rollup-plugin-peer-deps-external | package.json | error | -| @backstage/backend-plugin-api | package.json | error | -| @types/terser-webpack-plugin | package.json | error | -| @backstage/core-components | package.json | error | -| @backstage/core-app-api | package.json | error | -| @backstage/dev-utils | package.json | error | -| @types/http-proxy | package.json | error | -| @types/svgo | package.json | error | -| @types/ejs | package.json | error | -| nodemon | package.json | error | -| del | package.json | error | +| Name | Location | Severity | +| :--------------------------------------------------- | :----------- | :------- | +| @backstage/plugin-auth-backend-module-guest-provider | package.json | error | +| @types/rollup-plugin-peer-deps-external | package.json | error | +| @backstage/plugin-auth-backend | package.json | error | +| @backstage/plugin-catalog-node | package.json | error | +| @types/terser-webpack-plugin | package.json | error | +| @backstage/core-components | package.json | error | +| @backstage/catalog-client | package.json | error | +| @backstage/core-app-api | package.json | error | +| @types/webpack-sources | package.json | error | +| @backstage/dev-utils | package.json | error | +| @types/http-proxy | package.json | error | +| @types/svgo | package.json | error | +| @types/ejs | package.json | error | +| del | package.json | error | -## Referenced optional peerDependencies (4) +## Referenced optional peerDependencies (3) -| Name | Location | Severity | -| :------------------------- | :----------- | :------- | -| vite-plugin-node-polyfills | package.json | error | -| @vitejs/plugin-react | package.json | error | -| vite-plugin-html | package.json | error | -| vite | package.json | error | +| Name | Location | Severity | +| :--------------------------- | :----------- | :------- | +| @rspack/plugin-react-refresh | package.json | error | +| @rspack/dev-server | package.json | error | +| @rspack/core | package.json | error | -## Unlisted dependencies (3) +## Unlisted dependencies (10) -| Name | Location | Severity | -| :----------------- | :----------------------------------------- | :------- | -| prettier | src/commands/migrate/packageLintConfigs.ts | error | -| react-dom/client | src/lib/bundler/hasReactDomClient.ts | error | -| react/package.json | src/lib/bundler/server.ts | error | +| Name | Location | Severity | +| :--------------------- | :----------------------------------------------------------------------------------------------- | :------- | +| @testing-library/react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx | error | +| react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx | error | +| @material-ui/core | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx | error | +| react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx | error | +| supertest | templates/default-backend-plugin/src/router.test.ts | error | +| express-promise-router | templates/default-backend-plugin/src/router.ts | error | +| react-dom | src/lib/bundler/hasReactDomClient.ts | error | +| react-dom | src/lib/bundler/config.ts | error | +| react | src/lib/bundler/config.ts | error | +| react | src/lib/bundler/server.ts | error | diff --git a/packages/core-app-api/knip-report.md b/packages/core-app-api/knip-report.md index 4d61a32f32..010afdd8b4 100644 --- a/packages/core-app-api/knip-report.md +++ b/packages/core-app-api/knip-report.md @@ -6,15 +6,19 @@ | :------ | :----------- | :------- | | history | package.json | error | -## Unused devDependencies (7) +## Unused devDependencies (5) | Name | Location | Severity | | :--------------------------- | :----------- | :------- | | @testing-library/react-hooks | package.json | error | -| @testing-library/user-event | package.json | error | | react-router-dom-stable | package.json | error | | react-router-dom-beta | package.json | error | -| @testing-library/dom | package.json | error | | react-router-stable | package.json | error | | react-router-beta | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/packages/core-compat-api/knip-report.md b/packages/core-compat-api/knip-report.md index 2661c35327..d6bf611772 100644 --- a/packages/core-compat-api/knip-report.md +++ b/packages/core-compat-api/knip-report.md @@ -1,2 +1,23 @@ # Knip report +## Unused devDependencies (3) + +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/frontend-app-api | package.json | error | +| @backstage/types | package.json | error | +| zod | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + +## Unlisted dependencies (2) + +| Name | Location | Severity | +| :----------------- | :------------------------------- | :------- | +| @internal/frontend | src/collectLegacyRoutes.test.tsx | error | +| @internal/frontend | src/convertLegacyPlugin.test.tsx | error | + diff --git a/packages/core-components/knip-report.md b/packages/core-components/knip-report.md index 655c324084..6d8a954385 100644 --- a/packages/core-components/knip-report.md +++ b/packages/core-components/knip-report.md @@ -1,22 +1,25 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (1) -| Name | Location | Severity | -| :------------ | :----------- | :------- | -| @date-io/core | package.json | error | -| linkifyjs | package.json | error | -| pluralize | package.json | error | +| Name | Location | Severity | +| :-------- | :----------- | :------- | +| pluralize | package.json | error | -## Unused devDependencies (4) +## Unused devDependencies (3) | Name | Location | Severity | | :---------------------- | :----------- | :------- | | @backstage/app-defaults | package.json | error | | @types/google-protobuf | package.json | error | -| @testing-library/dom | package.json | error | | cross-fetch | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + ## Unlisted dependencies (3) | Name | Location | Severity | diff --git a/packages/core-plugin-api/knip-report.md b/packages/core-plugin-api/knip-report.md index d0b97e0e68..20e35cfd7d 100644 --- a/packages/core-plugin-api/knip-report.md +++ b/packages/core-plugin-api/knip-report.md @@ -1,9 +1,14 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @testing-library/user-event | package.json | error | -| @testing-library/dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/packages/create-app/knip-report.md b/packages/create-app/knip-report.md index 65ef020fc3..0afa527ab0 100644 --- a/packages/create-app/knip-report.md +++ b/packages/create-app/knip-report.md @@ -1,9 +1,67 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) | Name | Location | Severity | | :-------------------- | :----------- | :------- | | @types/command-exists | package.json | error | -| nodemon | package.json | error | + +## Unlisted dependencies (54) + +| Name | Location | Severity | +| :----------------------------------------------- | :----------------------------------------------------------------------- | :------- | +| @backstage/plugin-techdocs-module-addons-contrib | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-techdocs-react | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-catalog-graph | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-kubernetes | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-api-docs | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-techdocs | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/core-components | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-catalog | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/catalog-model | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-org | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @material-ui/core | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| react | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | +| @backstage/plugin-catalog-react | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @backstage/plugin-search-react | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @backstage/plugin-techdocs | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @backstage/core-components | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @backstage/core-plugin-api | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @backstage/plugin-catalog | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @backstage/plugin-search | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @material-ui/core | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| react | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | +| @material-ui/core | templates/default-app/packages/app/src/components/Root/LogoFull.tsx | error | +| @material-ui/core | templates/default-app/packages/app/src/components/Root/LogoIcon.tsx | error | +| react | templates/default-app/packages/app/src/components/Root/LogoFull.tsx | error | +| react | templates/default-app/packages/app/src/components/Root/LogoIcon.tsx | error | +| @backstage/plugin-user-settings | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| @backstage/core-components | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| @backstage/plugin-search | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| @backstage/plugin-org | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| @material-ui/icons | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| @material-ui/core | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| react | templates/default-app/packages/app/src/components/Root/Root.tsx | error | +| @testing-library/react | templates/default-app/packages/app/src/App.test.tsx | error | +| react | templates/default-app/packages/app/src/App.test.tsx | error | +| @backstage/plugin-techdocs-module-addons-contrib | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-permission-react | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-catalog-import | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-techdocs-react | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-catalog-common | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-user-settings | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-catalog-graph | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-scaffolder | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/integration-react | templates/default-app/packages/app/src/apis.ts | error | +| @backstage/plugin-api-docs | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-techdocs | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/core-components | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/core-plugin-api | templates/default-app/packages/app/src/apis.ts | error | +| @backstage/plugin-catalog | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-search | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/app-defaults | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/core-app-api | templates/default-app/packages/app/src/App.tsx | error | +| @backstage/plugin-org | templates/default-app/packages/app/src/App.tsx | error | +| react-router-dom | templates/default-app/packages/app/src/App.tsx | error | +| react | templates/default-app/packages/app/src/App.tsx | error | diff --git a/packages/dev-utils/knip-report.md b/packages/dev-utils/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/packages/dev-utils/knip-report.md +++ b/packages/dev-utils/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/packages/e2e-test/knip-report.md b/packages/e2e-test/knip-report.md index baf9661c0a..33d38c8508 100644 --- a/packages/e2e-test/knip-report.md +++ b/packages/e2e-test/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused devDependencies (2) +## Unused dependencies (1) -| Name | Location | Severity | -| :--------------- | :----------- | :------- | -| @types/puppeteer | package.json | error | -| nodemon | package.json | error | +| Name | Location | Severity | +| :-------------------- | :----------- | :------- | +| @backstage/create-app | package.json | error | diff --git a/packages/eslint-plugin/knip-report.md b/packages/eslint-plugin/knip-report.md index d4c4be0549..2661c35327 100644 --- a/packages/eslint-plugin/knip-report.md +++ b/packages/eslint-plugin/knip-report.md @@ -1,9 +1,2 @@ # Knip report -## Unlisted dependencies (2) - -| Name | Location | Severity | -| :----- | :----------------------------- | :------- | -| estree | rules/no-undeclared-imports.js | error | -| estree | lib/visitImports.js | error | - diff --git a/packages/frontend-app-api/knip-report.md b/packages/frontend-app-api/knip-report.md index 2661c35327..517e88ce8a 100644 --- a/packages/frontend-app-api/knip-report.md +++ b/packages/frontend-app-api/knip-report.md @@ -1,2 +1,24 @@ # Knip report +## Unused dependencies (3) + +| Name | Location | Severity | +| :--------------------------- | :----------- | :------- | +| @backstage/frontend-defaults | package.json | error | +| @backstage/errors | package.json | error | +| zod | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + +## Unlisted dependencies (3) + +| Name | Location | Severity | +| :----------------- | :---------------------------------- | :------- | +| @internal/frontend | src/wiring/createSpecializedApp.tsx | error | +| @internal/frontend | src/tree/resolveAppNodeSpecs.ts | error | +| @internal/frontend | src/routing/collectRouteIds.ts | error | + diff --git a/packages/frontend-plugin-api/knip-report.md b/packages/frontend-plugin-api/knip-report.md index e571899442..43b78effd5 100644 --- a/packages/frontend-plugin-api/knip-report.md +++ b/packages/frontend-plugin-api/knip-report.md @@ -8,3 +8,25 @@ | @material-ui/core | package.json | error | | lodash | package.json | error | +## Unused devDependencies (1) + +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/frontend-app-api | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + +## Unlisted dependencies (5) + +| Name | Location | Severity | +| :----------------- | :------------------------------------------- | :------- | +| @internal/frontend | src/wiring/createExtensionBlueprint.test.tsx | error | +| @internal/frontend | src/wiring/resolveExtensionDefinition.ts | error | +| @internal/frontend | src/wiring/createFrontendModule.ts | error | +| @internal/frontend | src/wiring/createFrontendPlugin.ts | error | +| @internal/frontend | src/wiring/createExtension.ts | error | + diff --git a/packages/frontend-test-utils/knip-report.md b/packages/frontend-test-utils/knip-report.md index 2661c35327..5b35805816 100644 --- a/packages/frontend-test-utils/knip-report.md +++ b/packages/frontend-test-utils/knip-report.md @@ -1,2 +1,21 @@ # Knip report +## Unused dependencies (2) + +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/version-bridge | package.json | error | +| zod | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + +## Unlisted dependencies (1) + +| Name | Location | Severity | +| :----------------- | :-------------------------------- | :------- | +| @internal/frontend | src/app/createExtensionTester.tsx | error | + diff --git a/packages/integration-react/knip-report.md b/packages/integration-react/knip-report.md index 551f19ab2f..9ccde91b0c 100644 --- a/packages/integration-react/knip-report.md +++ b/packages/integration-react/knip-report.md @@ -7,3 +7,9 @@ | @testing-library/dom | package.json | error | | msw | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/packages/repo-tools/knip-report.md b/packages/repo-tools/knip-report.md index 32502b699c..4d8084d9da 100644 --- a/packages/repo-tools/knip-report.md +++ b/packages/repo-tools/knip-report.md @@ -5,8 +5,8 @@ | Name | Location | Severity | | :---------------------------------- | :----------- | :------- | | @openapitools/openapi-generator-cli | package.json | error | -| @stoplight/spectral-functions | package.json | error | | @stoplight/spectral-runtime | package.json | error | +| @electric-sql/pglite | package.json | error | | is-glob | package.json | error | | glob | package.json | error | diff --git a/packages/techdocs-cli/knip-report.md b/packages/techdocs-cli/knip-report.md index 7329783857..5948844a00 100644 --- a/packages/techdocs-cli/knip-report.md +++ b/packages/techdocs-cli/knip-report.md @@ -8,8 +8,8 @@ ## Unused devDependencies (2) -| Name | Location | Severity | -| :----------------- | :----------- | :------- | -| @types/webpack-env | package.json | error | -| nodemon | package.json | error | +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| techdocs-cli-embedded-app | package.json | error | +| @types/webpack-env | package.json | error | diff --git a/packages/test-utils/knip-report.md b/packages/test-utils/knip-report.md index 125cdef7fd..1b48f703a1 100644 --- a/packages/test-utils/knip-report.md +++ b/packages/test-utils/knip-report.md @@ -1,8 +1,9 @@ # Knip report -## Unused dependencies (1) +## Referenced optional peerDependencies (2) -| Name | Location | Severity | -| :---------------- | :----------- | :------- | -| @material-ui/core | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | +| @types/jest | package.json | error | diff --git a/packages/theme/knip-report.md b/packages/theme/knip-report.md index e19ce53e6f..c5f148fbd3 100644 --- a/packages/theme/knip-report.md +++ b/packages/theme/knip-report.md @@ -1,9 +1,14 @@ # Knip report -## Unused dependencies (2) +## Unused devDependencies (1) -| Name | Location | Severity | -| :-------------- | :----------- | :------- | -| @emotion/styled | package.json | error | -| @emotion/react | package.json | error | +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| react-router-dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/packages/version-bridge/knip-report.md b/packages/version-bridge/knip-report.md index 2661c35327..c5f148fbd3 100644 --- a/packages/version-bridge/knip-report.md +++ b/packages/version-bridge/knip-report.md @@ -1,2 +1,14 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| react-router-dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/api-docs-module-protoc-gen-doc/knip-report.md b/plugins/api-docs-module-protoc-gen-doc/knip-report.md index 2661c35327..9743763ca9 100644 --- a/plugins/api-docs-module-protoc-gen-doc/knip-report.md +++ b/plugins/api-docs-module-protoc-gen-doc/knip-report.md @@ -1,2 +1,15 @@ # Knip report +## Unused devDependencies (2) + +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| react-router-dom | package.json | error | +| react-dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/api-docs/knip-report.md b/plugins/api-docs/knip-report.md index 4bf9058b8d..27e141bb8c 100644 --- a/plugins/api-docs/knip-report.md +++ b/plugins/api-docs/knip-report.md @@ -8,9 +8,16 @@ | graphql-config | package.json | error | | graphql-ws | package.json | error | -## Unused devDependencies (1) +## Unused devDependencies (2) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :---------------------- | :----------- | :------- | +| @backstage/core-app-api | package.json | error | +| @types/highlightjs | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/app-backend/knip-report.md b/plugins/app-backend/knip-report.md index 06609425e8..588eca0213 100644 --- a/plugins/app-backend/knip-report.md +++ b/plugins/app-backend/knip-report.md @@ -1,10 +1,11 @@ # Knip report -## Unused dependencies (1) +## Unused dependencies (2) -| Name | Location | Severity | -| :- | :----------- | :------- | -| yn | package.json | error | +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/plugin-auth-node | package.json | error | +| yn | package.json | error | ## Unused devDependencies (1) diff --git a/plugins/app-visualizer/knip-report.md b/plugins/app-visualizer/knip-report.md index 2661c35327..27a145e95c 100644 --- a/plugins/app-visualizer/knip-report.md +++ b/plugins/app-visualizer/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/auth-backend-module-aws-alb-provider/knip-report.md b/plugins/auth-backend-module-aws-alb-provider/knip-report.md index 56eb028c3f..14abcfe083 100644 --- a/plugins/auth-backend-module-aws-alb-provider/knip-report.md +++ b/plugins/auth-backend-module-aws-alb-provider/knip-report.md @@ -1,9 +1,8 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) | Name | Location | Severity | | :----------------------------- | :----------- | :------- | | @backstage/plugin-auth-backend | package.json | error | -| @backstage/backend-common | package.json | error | diff --git a/plugins/auth-backend-module-cloudflare-access-provider/knip-report.md b/plugins/auth-backend-module-cloudflare-access-provider/knip-report.md index 1768e133a8..2661c35327 100644 --- a/plugins/auth-backend-module-cloudflare-access-provider/knip-report.md +++ b/plugins/auth-backend-module-cloudflare-access-provider/knip-report.md @@ -1,14 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :--------- | :----------- | :------- | -| node-fetch | package.json | error | - -## Unused devDependencies (1) - -| Name | Location | Severity | -| :--------------- | :----------- | :------- | -| @backstage/types | package.json | error | - diff --git a/plugins/auth-backend-module-guest-provider/knip-report.md b/plugins/auth-backend-module-guest-provider/knip-report.md index 4a3213a86c..d2b8db6f32 100644 --- a/plugins/auth-backend-module-guest-provider/knip-report.md +++ b/plugins/auth-backend-module-guest-provider/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | -| passport-oauth2 | package.json | error | +| Name | Location | Severity | +| :-------------- | :----------- | :------- | +| passport-oauth2 | package.json | error | ## Unused devDependencies (2) diff --git a/plugins/auth-backend-module-microsoft-provider/knip-report.md b/plugins/auth-backend-module-microsoft-provider/knip-report.md index 4386ad9c4a..2661c35327 100644 --- a/plugins/auth-backend-module-microsoft-provider/knip-report.md +++ b/plugins/auth-backend-module-microsoft-provider/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :------- | :----------- | :------- | -| passport | package.json | error | - diff --git a/plugins/auth-backend-module-oidc-provider/knip-report.md b/plugins/auth-backend-module-oidc-provider/knip-report.md index 448be9818e..0d36158781 100644 --- a/plugins/auth-backend-module-oidc-provider/knip-report.md +++ b/plugins/auth-backend-module-oidc-provider/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (1) -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | -| passport | package.json | error | +| Name | Location | Severity | +| :------- | :----------- | :------- | +| passport | package.json | error | ## Unused devDependencies (3) diff --git a/plugins/auth-backend-module-onelogin-provider/knip-report.md b/plugins/auth-backend-module-onelogin-provider/knip-report.md index a9ad7e156a..6624c86073 100644 --- a/plugins/auth-backend-module-onelogin-provider/knip-report.md +++ b/plugins/auth-backend-module-onelogin-provider/knip-report.md @@ -1,19 +1,9 @@ # Knip report -## Unused dependencies (4) +## Unused dependencies (2) -| Name | Location | Severity | -| :---------------------------- | :----------- | :------- | -| @backstage/backend-plugin-api | package.json | error | -| @backstage/plugin-auth-node | package.json | error | -| passport | package.json | error | -| express | package.json | error | - -## Unused devDependencies (3) - -| Name | Location | Severity | -| :----------------------------- | :----------- | :------- | -| @backstage/plugin-auth-backend | package.json | error | -| @backstage/backend-test-utils | package.json | error | -| @backstage/backend-defaults | package.json | error | +| Name | Location | Severity | +| :------- | :----------- | :------- | +| passport | package.json | error | +| express | package.json | error | diff --git a/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md b/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md index 2661c35327..9f46420ca0 100644 --- a/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md +++ b/plugins/auth-backend-module-vmware-cloud-provider/knip-report.md @@ -1,2 +1,14 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :----------------------- | :----------- | :------- | +| @backstage/catalog-model | package.json | error | + +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---------------- | :----------- | :------- | +| @backstage/errors | package.json | error | + diff --git a/plugins/auth-backend/knip-report.md b/plugins/auth-backend/knip-report.md index 37d0866820..fd6926afb9 100644 --- a/plugins/auth-backend/knip-report.md +++ b/plugins/auth-backend/knip-report.md @@ -1,13 +1,15 @@ # Knip report -## Unused dependencies (12) +## Unused dependencies (14) | Name | Location | Severity | | :---------------------- | :----------- | :------- | | passport-google-oauth20 | package.json | error | +| passport-onelogin-oauth | package.json | error | | google-auth-library | package.json | error | | passport-microsoft | package.json | error | | passport-github2 | package.json | error | +| passport-auth0 | package.json | error | | openid-client | package.json | error | | compression | package.json | error | | node-cache | package.json | error | @@ -17,7 +19,7 @@ | cors | package.json | error | | yn | package.json | error | -## Unused devDependencies (7) +## Unused devDependencies (8) | Name | Location | Severity | | :----------------------------- | :----------- | :------- | @@ -25,6 +27,7 @@ | @types/passport-microsoft | package.json | error | | @types/passport-strategy | package.json | error | | @types/passport-github2 | package.json | error | +| @types/passport-auth0 | package.json | error | | @types/passport-saml | package.json | error | | @types/body-parser | package.json | error | | @types/xml2js | package.json | error | diff --git a/plugins/auth-node/knip-report.md b/plugins/auth-node/knip-report.md index 2338f48dd7..51c7faf1d8 100644 --- a/plugins/auth-node/knip-report.md +++ b/plugins/auth-node/knip-report.md @@ -2,8 +2,8 @@ ## Unused dependencies (2) -| Name | Location | Severity | -| :--------- | :----------- | :------- | -| node-fetch | package.json | error | -| winston | package.json | error | +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/backend-common | package.json | error | +| winston | package.json | error | diff --git a/plugins/catalog-backend-module-aws/knip-report.md b/plugins/catalog-backend-module-aws/knip-report.md index d42770729d..c637c25d2f 100644 --- a/plugins/catalog-backend-module-aws/knip-report.md +++ b/plugins/catalog-backend-module-aws/knip-report.md @@ -1,8 +1,15 @@ # Knip report -## Unused dependencies (1) +## Unused dependencies (2) | Name | Location | Severity | | :---------------------------- | :----------- | :------- | | @aws-sdk/credential-providers | package.json | error | +| winston | package.json | error | + +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | diff --git a/plugins/catalog-backend-module-azure/knip-report.md b/plugins/catalog-backend-module-azure/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-azure/knip-report.md +++ b/plugins/catalog-backend-module-azure/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-bitbucket-cloud/knip-report.md b/plugins/catalog-backend-module-bitbucket-cloud/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-bitbucket-cloud/knip-report.md +++ b/plugins/catalog-backend-module-bitbucket-cloud/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-bitbucket-server/knip-report.md b/plugins/catalog-backend-module-bitbucket-server/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-bitbucket-server/knip-report.md +++ b/plugins/catalog-backend-module-bitbucket-server/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-bitbucket/knip-report.md b/plugins/catalog-backend-module-bitbucket/knip-report.md deleted file mode 100644 index 7f1069ffcc..0000000000 --- a/plugins/catalog-backend-module-bitbucket/knip-report.md +++ /dev/null @@ -1,16 +0,0 @@ -# Knip report - -## Unused dependencies (1) - -| Name | Location | -|:--------------------------|:-------------| -| @backstage/backend-common | package.json | - -## Unused devDependencies (3) - -| Name | Location | -|:------------------------------|:-------------| -| msw | package.json | -| @backstage/cli | package.json | -| @backstage/backend-test-utils | package.json | - diff --git a/plugins/catalog-backend-module-gerrit/knip-report.md b/plugins/catalog-backend-module-gerrit/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-gerrit/knip-report.md +++ b/plugins/catalog-backend-module-gerrit/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-github-org/knip-report.md b/plugins/catalog-backend-module-github-org/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-github-org/knip-report.md +++ b/plugins/catalog-backend-module-github-org/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-github/knip-report.md b/plugins/catalog-backend-module-github/knip-report.md index 922f5fbf1d..1768d98608 100644 --- a/plugins/catalog-backend-module-github/knip-report.md +++ b/plugins/catalog-backend-module-github/knip-report.md @@ -6,11 +6,18 @@ | :-------------------------------- | :----------- | :------- | | @backstage/plugin-catalog-backend | package.json | error | -## Unlisted dependencies (3) +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + +## Unlisted dependencies (4) | Name | Location | Severity | | :---------------------- | :-------------------------------------------- | :------- | | @octokit/webhooks-types | src/providers/GithubMultiOrgEntityProvider.ts | error | +| @octokit/webhooks-types | src/providers/GithubEntityProvider.test.ts | error | | @octokit/webhooks-types | src/providers/GithubOrgEntityProvider.ts | error | | @octokit/webhooks-types | src/providers/GithubEntityProvider.ts | error | diff --git a/plugins/catalog-backend-module-gitlab/knip-report.md b/plugins/catalog-backend-module-gitlab/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-gitlab/knip-report.md +++ b/plugins/catalog-backend-module-gitlab/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-incremental-ingestion/knip-report.md b/plugins/catalog-backend-module-incremental-ingestion/knip-report.md index 2661c35327..21e59cdcea 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/knip-report.md +++ b/plugins/catalog-backend-module-incremental-ingestion/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :---------------------------------- | :----------- | :------- | +| @backstage/plugin-permission-common | package.json | error | + diff --git a/plugins/catalog-backend-module-msgraph/knip-report.md b/plugins/catalog-backend-module-msgraph/knip-report.md index 2661c35327..cb5315967a 100644 --- a/plugins/catalog-backend-module-msgraph/knip-report.md +++ b/plugins/catalog-backend-module-msgraph/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-puppetdb/knip-report.md b/plugins/catalog-backend-module-puppetdb/knip-report.md index 2661c35327..acef584675 100644 --- a/plugins/catalog-backend-module-puppetdb/knip-report.md +++ b/plugins/catalog-backend-module-puppetdb/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-unprocessed/knip-report.md b/plugins/catalog-backend-module-unprocessed/knip-report.md index 2661c35327..fe81af1cb9 100644 --- a/plugins/catalog-backend-module-unprocessed/knip-report.md +++ b/plugins/catalog-backend-module-unprocessed/knip-report.md @@ -1,2 +1,9 @@ # Knip report +## Unused dependencies (2) + +| Name | Location | Severity | +| :----------------------------- | :----------- | :------- | +| @backstage/plugin-catalog-node | package.json | error | +| @backstage/plugin-auth-node | package.json | error | + diff --git a/plugins/catalog-backend/knip-report.md b/plugins/catalog-backend/knip-report.md index c7fec36b28..d547deea65 100644 --- a/plugins/catalog-backend/knip-report.md +++ b/plugins/catalog-backend/knip-report.md @@ -1,12 +1,5 @@ # Knip report -## Unused dependencies (2) - -| Name | Location | Severity | -| :-------------------- | :----------- | :------- | -| @backstage/repo-tools | package.json | error | -| node-fetch | package.json | error | - ## Unused devDependencies (1) | Name | Location | Severity | diff --git a/plugins/catalog-graph/knip-report.md b/plugins/catalog-graph/knip-report.md index bae463e7f2..118e62e2f9 100644 --- a/plugins/catalog-graph/knip-report.md +++ b/plugins/catalog-graph/knip-report.md @@ -6,9 +6,9 @@ | :------ | :----------- | :------- | | p-limit | package.json | error | -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/catalog-import/knip-report.md b/plugins/catalog-import/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/plugins/catalog-import/knip-report.md +++ b/plugins/catalog-import/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/catalog-react/knip-report.md b/plugins/catalog-react/knip-report.md index 2cfb7066e5..74674f0a9f 100644 --- a/plugins/catalog-react/knip-report.md +++ b/plugins/catalog-react/knip-report.md @@ -1,9 +1,14 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | -| react-test-renderer | package.json | error | +| Name | Location | Severity | +| :------------------ | :----------- | :------- | +| react-test-renderer | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/catalog-unprocessed-entities/knip-report.md b/plugins/catalog-unprocessed-entities/knip-report.md index ccda99cbfb..5fb4eceb90 100644 --- a/plugins/catalog-unprocessed-entities/knip-report.md +++ b/plugins/catalog-unprocessed-entities/knip-report.md @@ -6,3 +6,9 @@ | :--------------------- | :----------- | :------- | | @testing-library/react | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/catalog/knip-report.md b/plugins/catalog/knip-report.md index 6ca80a6843..466d6bf8bf 100644 --- a/plugins/catalog/knip-report.md +++ b/plugins/catalog/knip-report.md @@ -6,9 +6,9 @@ | :------ | :----------- | :------- | | history | package.json | error | -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/config-schema/knip-report.md b/plugins/config-schema/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/plugins/config-schema/knip-report.md +++ b/plugins/config-schema/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/devtools-backend/knip-report.md b/plugins/devtools-backend/knip-report.md index 2661c35327..0923e3006f 100644 --- a/plugins/devtools-backend/knip-report.md +++ b/plugins/devtools-backend/knip-report.md @@ -1,2 +1,9 @@ # Knip report +## Unused dependencies (2) + +| Name | Location | Severity | +| :----- | :----------- | :------- | +| semver | package.json | error | +| yn | package.json | error | + diff --git a/plugins/devtools/knip-report.md b/plugins/devtools/knip-report.md index 2661c35327..27a145e95c 100644 --- a/plugins/devtools/knip-report.md +++ b/plugins/devtools/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/events-backend/knip-report.md b/plugins/events-backend/knip-report.md index 2661c35327..7df8949921 100644 --- a/plugins/events-backend/knip-report.md +++ b/plugins/events-backend/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :------------------------- | :----------- | :------- | +| @backstage/backend-app-api | package.json | error | + diff --git a/plugins/events-node/knip-report.md b/plugins/events-node/knip-report.md index 2661c35327..3f80c71260 100644 --- a/plugins/events-node/knip-report.md +++ b/plugins/events-node/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| @backstage/types | package.json | error | + diff --git a/plugins/example-todo-list-backend/knip-report.md b/plugins/example-todo-list-backend/knip-report.md index 2661c35327..c84ed61781 100644 --- a/plugins/example-todo-list-backend/knip-report.md +++ b/plugins/example-todo-list-backend/knip-report.md @@ -1,2 +1,10 @@ # Knip report +## Unused dependencies (3) + +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/plugin-auth-node | package.json | error | +| @backstage/backend-common | package.json | error | +| yn | package.json | error | + diff --git a/plugins/example-todo-list/knip-report.md b/plugins/example-todo-list/knip-report.md index ba9c1dddc5..8265f7cba3 100644 --- a/plugins/example-todo-list/knip-report.md +++ b/plugins/example-todo-list/knip-report.md @@ -7,3 +7,9 @@ | @testing-library/react | package.json | error | | @testing-library/dom | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/home-react/knip-report.md b/plugins/home-react/knip-report.md index c9f34521a3..5eba7ba786 100644 --- a/plugins/home-react/knip-report.md +++ b/plugins/home-react/knip-report.md @@ -6,3 +6,9 @@ | :----------------------- | :----------- | :------- | | @types/react-grid-layout | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/home/knip-report.md b/plugins/home/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/plugins/home/knip-report.md +++ b/plugins/home/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/kubernetes-backend/knip-report.md b/plugins/kubernetes-backend/knip-report.md index 346cb90217..7804e0ecb8 100644 --- a/plugins/kubernetes-backend/knip-report.md +++ b/plugins/kubernetes-backend/knip-report.md @@ -1,15 +1,21 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (7) -| Name | Location | Severity | -| :------------- | :----------- | :------- | -| stream-buffers | package.json | error | -| morgan | package.json | error | +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/plugin-auth-node | package.json | error | +| stream-buffers | package.json | error | +| compression | package.json | error | +| helmet | package.json | error | +| morgan | package.json | error | +| cors | package.json | error | +| yn | package.json | error | -## Unused devDependencies (1) +## Unused devDependencies (2) -| Name | Location | Severity | -| :---------- | :----------- | :------- | -| @types/aws4 | package.json | error | +| Name | Location | Severity | +| :------------------------- | :----------- | :------- | +| @backstage/backend-app-api | package.json | error | +| @types/aws4 | package.json | error | diff --git a/plugins/kubernetes-cluster/knip-report.md b/plugins/kubernetes-cluster/knip-report.md index 1e57f8e9cb..4dfb36f550 100644 --- a/plugins/kubernetes-cluster/knip-report.md +++ b/plugins/kubernetes-cluster/knip-report.md @@ -10,10 +10,15 @@ | lodash | package.json | error | | luxon | package.json | error | -## Unused devDependencies (2) +## Unused devDependencies (1) -| Name | Location | Severity | -| :--------------------- | :----------- | :------- | -| @testing-library/react | package.json | error | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :------------------- | :----------- | :------- | +| @testing-library/dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/kubernetes-node/knip-report.md b/plugins/kubernetes-node/knip-report.md index 2661c35327..7df8949921 100644 --- a/plugins/kubernetes-node/knip-report.md +++ b/plugins/kubernetes-node/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :------------------------- | :----------- | :------- | +| @backstage/backend-app-api | package.json | error | + diff --git a/plugins/kubernetes-react/knip-report.md b/plugins/kubernetes-react/knip-report.md index 2661c35327..27a145e95c 100644 --- a/plugins/kubernetes-react/knip-report.md +++ b/plugins/kubernetes-react/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/kubernetes/knip-report.md b/plugins/kubernetes/knip-report.md index 1dcb32d0b6..3bbc096084 100644 --- a/plugins/kubernetes/knip-report.md +++ b/plugins/kubernetes/knip-report.md @@ -16,9 +16,9 @@ | luxon | package.json | error | | xterm | package.json | error | -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/notifications-backend/knip-report.md b/plugins/notifications-backend/knip-report.md index b1e6023b22..858e4d279e 100644 --- a/plugins/notifications-backend/knip-report.md +++ b/plugins/notifications-backend/knip-report.md @@ -1,10 +1,13 @@ # Knip report -## Unused dependencies (1) +## Unused dependencies (4) -| Name | Location | Severity | -| :--------- | :----------- | :------- | -| node-fetch | package.json | error | +| Name | Location | Severity | +| :---------------------------- | :----------- | :------- | +| @backstage/plugin-events-node | package.json | error | +| @backstage/plugin-auth-node | package.json | error | +| winston | package.json | error | +| yn | package.json | error | ## Unused devDependencies (1) diff --git a/plugins/notifications-node/knip-report.md b/plugins/notifications-node/knip-report.md index ab82a40e51..1206fc9c3b 100644 --- a/plugins/notifications-node/knip-report.md +++ b/plugins/notifications-node/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused dependencies (6) +## Unused dependencies (5) | Name | Location | Severity | | :----------------------------- | :----------- | :------- | | @backstage/plugin-signals-node | package.json | error | -| @backstage/backend-common | package.json | error | | @backstage/catalog-client | package.json | error | | @backstage/catalog-model | package.json | error | | knex | package.json | error | diff --git a/plugins/notifications/knip-report.md b/plugins/notifications/knip-report.md index 0dd3947f6a..07352d7523 100644 --- a/plugins/notifications/knip-report.md +++ b/plugins/notifications/knip-report.md @@ -7,11 +7,16 @@ | @backstage/types | package.json | error | | @material-ui/lab | package.json | error | -## Unused devDependencies (3) +## Unused devDependencies (2) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @testing-library/user-event | package.json | error | | @backstage/core-app-api | package.json | error | -| @testing-library/react | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/org-react/knip-report.md b/plugins/org-react/knip-report.md index 8d850953c7..61b4972034 100644 --- a/plugins/org-react/knip-report.md +++ b/plugins/org-react/knip-report.md @@ -1,8 +1,14 @@ # Knip report -## Unused devDependencies (1) +## Unused dependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/catalog-client | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/org/knip-report.md b/plugins/org/knip-report.md index 8d850953c7..7a38c994a2 100644 --- a/plugins/org/knip-report.md +++ b/plugins/org/knip-report.md @@ -2,7 +2,13 @@ ## Unused devDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :---------------------------------- | :----------- | :------- | +| @backstage/plugin-permission-common | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/permission-backend-module-policy-allow-all/knip-report.md b/plugins/permission-backend-module-policy-allow-all/knip-report.md index 14b2b4cc88..02ee898bec 100644 --- a/plugins/permission-backend-module-policy-allow-all/knip-report.md +++ b/plugins/permission-backend-module-policy-allow-all/knip-report.md @@ -1,5 +1,11 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/plugin-auth-node | package.json | error | + ## Unused devDependencies (1) | Name | Location | Severity | diff --git a/plugins/permission-react/knip-report.md b/plugins/permission-react/knip-report.md index 2661c35327..27a145e95c 100644 --- a/plugins/permission-react/knip-report.md +++ b/plugins/permission-react/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/proxy-backend/knip-report.md b/plugins/proxy-backend/knip-report.md index 90f5e90277..6f8dd76631 100644 --- a/plugins/proxy-backend/knip-report.md +++ b/plugins/proxy-backend/knip-report.md @@ -1,6 +1,6 @@ # Knip report -## Unused dependencies (4) +## Unused dependencies (5) | Name | Location | Severity | | :----- | :----------- | :------- | @@ -8,11 +8,12 @@ | uuid | package.json | error | | yaml | package.json | error | | yup | package.json | error | +| yn | package.json | error | ## Unused devDependencies (2) -| Name | Location | Severity | -| :---------- | :----------- | :------- | -| @types/uuid | package.json | error | -| @types/yup | package.json | error | +| Name | Location | Severity | +| :------------------------- | :----------- | :------- | +| @backstage/backend-app-api | package.json | error | +| @types/yup | package.json | error | diff --git a/plugins/scaffolder-backend-module-bitbucket-cloud/knip-report.md b/plugins/scaffolder-backend-module-bitbucket-cloud/knip-report.md index 8c142397d7..2661c35327 100644 --- a/plugins/scaffolder-backend-module-bitbucket-cloud/knip-report.md +++ b/plugins/scaffolder-backend-module-bitbucket-cloud/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :------- | :----------- | :------- | -| fs-extra | package.json | error | - diff --git a/plugins/scaffolder-backend-module-bitbucket-server/knip-report.md b/plugins/scaffolder-backend-module-bitbucket-server/knip-report.md index a99d743140..2661c35327 100644 --- a/plugins/scaffolder-backend-module-bitbucket-server/knip-report.md +++ b/plugins/scaffolder-backend-module-bitbucket-server/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :--- | :----------- | :------- | -| yaml | package.json | error | - diff --git a/plugins/scaffolder-backend-module-cookiecutter/knip-report.md b/plugins/scaffolder-backend-module-cookiecutter/knip-report.md index 30b061a5ef..0e8b43df56 100644 --- a/plugins/scaffolder-backend-module-cookiecutter/knip-report.md +++ b/plugins/scaffolder-backend-module-cookiecutter/knip-report.md @@ -1,9 +1,10 @@ # Knip report -## Unused dependencies (2) +## Unused dependencies (3) -| Name | Location | Severity | -| :------ | :----------- | :------- | -| winston | package.json | error | -| yn | package.json | error | +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/backend-defaults | package.json | error | +| winston | package.json | error | +| yn | package.json | error | diff --git a/plugins/scaffolder-backend-module-gcp/knip-report.md b/plugins/scaffolder-backend-module-gcp/knip-report.md index 2661c35327..5eace4cfc6 100644 --- a/plugins/scaffolder-backend-module-gcp/knip-report.md +++ b/plugins/scaffolder-backend-module-gcp/knip-report.md @@ -1,2 +1,15 @@ # Knip report +## Unused dependencies (2) + +| Name | Location | Severity | +| :--------------------- | :----------- | :------- | +| @backstage/integration | package.json | error | +| @backstage/errors | package.json | error | + +## Unused devDependencies (1) + +| Name | Location | Severity | +| :------------------------------------------- | :----------- | :------- | +| @backstage/plugin-scaffolder-node-test-utils | package.json | error | + diff --git a/plugins/scaffolder-backend-module-gitea/knip-report.md b/plugins/scaffolder-backend-module-gitea/knip-report.md index a5a6c0f115..2661c35327 100644 --- a/plugins/scaffolder-backend-module-gitea/knip-report.md +++ b/plugins/scaffolder-backend-module-gitea/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :--------- | :----------- | :------- | -| node-fetch | package.json | error | - diff --git a/plugins/scaffolder-backend-module-github/knip-report.md b/plugins/scaffolder-backend-module-github/knip-report.md index f6ffc37c84..d153d4dd55 100644 --- a/plugins/scaffolder-backend-module-github/knip-report.md +++ b/plugins/scaffolder-backend-module-github/knip-report.md @@ -2,7 +2,7 @@ ## Unlisted dependencies (1) -| Name | Location | Severity | -| :----------------------------- | :--------------------- | :------- | -| @octokit/core/dist-types/types | src/actions/helpers.ts | error | +| Name | Location | Severity | +| :------------ | :--------------------- | :------- | +| @octokit/core | src/actions/helpers.ts | error | diff --git a/plugins/scaffolder-backend-module-gitlab/knip-report.md b/plugins/scaffolder-backend-module-gitlab/knip-report.md index 2661c35327..c955ca23f0 100644 --- a/plugins/scaffolder-backend-module-gitlab/knip-report.md +++ b/plugins/scaffolder-backend-module-gitlab/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :------ | :----------- | :------- | +| winston | package.json | error | + diff --git a/plugins/scaffolder-backend-module-sentry/knip-report.md b/plugins/scaffolder-backend-module-sentry/knip-report.md index a99d743140..2661c35327 100644 --- a/plugins/scaffolder-backend-module-sentry/knip-report.md +++ b/plugins/scaffolder-backend-module-sentry/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :--- | :----------- | :------- | -| yaml | package.json | error | - diff --git a/plugins/scaffolder-backend-module-yeoman/knip-report.md b/plugins/scaffolder-backend-module-yeoman/knip-report.md index 7b2c9043ee..c955ca23f0 100644 --- a/plugins/scaffolder-backend-module-yeoman/knip-report.md +++ b/plugins/scaffolder-backend-module-yeoman/knip-report.md @@ -6,9 +6,3 @@ | :------ | :----------- | :------- | | winston | package.json | error | -## Unused devDependencies (1) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | - diff --git a/plugins/scaffolder-backend/knip-report.md b/plugins/scaffolder-backend/knip-report.md index 6b1996899f..51ea7441f5 100644 --- a/plugins/scaffolder-backend/knip-report.md +++ b/plugins/scaffolder-backend/knip-report.md @@ -1,8 +1,17 @@ # Knip report -## Unused dependencies (1) +## Unused dependencies (4) -| Name | Location | Severity | -| :------ | :----------- | :------- | -| p-limit | package.json | error | +| Name | Location | Severity | +| :--------------------------------------- | :----------- | :------- | +| @backstage/plugin-bitbucket-cloud-common | package.json | error | +| concat-stream | package.json | error | +| p-limit | package.json | error | +| tar | package.json | error | + +## Unused devDependencies (1) + +| Name | Location | Severity | +| :------------------------- | :----------- | :------- | +| @backstage/backend-app-api | package.json | error | diff --git a/plugins/scaffolder-node-test-utils/knip-report.md b/plugins/scaffolder-node-test-utils/knip-report.md index 11aea47050..0459ceb140 100644 --- a/plugins/scaffolder-node-test-utils/knip-report.md +++ b/plugins/scaffolder-node-test-utils/knip-report.md @@ -1,8 +1,11 @@ # Knip report -## Unused devDependencies (1) +## Unused devDependencies (4) -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| react-router-dom | package.json | error | +| @types/react | package.json | error | +| react-dom | package.json | error | +| react | package.json | error | diff --git a/plugins/scaffolder-react/knip-report.md b/plugins/scaffolder-react/knip-report.md index 3c2e8f3c3c..7893bde707 100644 --- a/plugins/scaffolder-react/knip-report.md +++ b/plugins/scaffolder-react/knip-report.md @@ -1,17 +1,28 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (1) | Name | Location | Severity | | :------------------------ | :----------- | :------- | | @backstage/catalog-client | package.json | error | -| zod-to-json-schema | package.json | error | -| zod | package.json | error | -## Unused devDependencies (2) +## Unused devDependencies (1) | Name | Location | Severity | | :------------------------------- | :----------- | :------- | | @backstage/plugin-catalog-common | package.json | error | -| @testing-library/dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + +## Unlisted dependencies (3) + +| Name | Location | Severity | +| :------------------- | :--------------------------------------------------- | :------- | +| @internal/scaffolder | src/next/extensions/createScaffolderFormDecorator.ts | error | +| @internal/scaffolder | src/next/blueprints/FormFieldBlueprint.tsx | error | +| @internal/scaffolder | src/next/api/FormFieldsApi.ts | error | diff --git a/plugins/scaffolder/knip-report.md b/plugins/scaffolder/knip-report.md index 6004665f89..7eff004077 100644 --- a/plugins/scaffolder/knip-report.md +++ b/plugins/scaffolder/knip-report.md @@ -8,9 +8,15 @@ | @rjsf/material-ui | package.json | error | | git-url-parse | package.json | error | -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + +## Unlisted dependencies (1) + +| Name | Location | Severity | +| :------------------- | :----------------------------------- | :------- | +| @internal/scaffolder | src/alpha/hooks/useFormDecorators.ts | error | diff --git a/plugins/search-backend-module-catalog/knip-report.md b/plugins/search-backend-module-catalog/knip-report.md index 2661c35327..5a09f2cded 100644 --- a/plugins/search-backend-module-catalog/knip-report.md +++ b/plugins/search-backend-module-catalog/knip-report.md @@ -1,2 +1,9 @@ # Knip report +## Unused devDependencies (2) + +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/backend-common | package.json | error | +| msw | package.json | error | + diff --git a/plugins/search-backend-module-pg/knip-report.md b/plugins/search-backend-module-pg/knip-report.md index 2661c35327..2fbb979fec 100644 --- a/plugins/search-backend-module-pg/knip-report.md +++ b/plugins/search-backend-module-pg/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused dependencies (1) + +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/backend-common | package.json | error | + diff --git a/plugins/search-backend-node/knip-report.md b/plugins/search-backend-node/knip-report.md index 2661c35327..ec020eab9a 100644 --- a/plugins/search-backend-node/knip-report.md +++ b/plugins/search-backend-node/knip-report.md @@ -1,2 +1,8 @@ # Knip report +## Unused devDependencies (1) + +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/backend-common | package.json | error | + diff --git a/plugins/search-backend/knip-report.md b/plugins/search-backend/knip-report.md index 2661c35327..90e0425294 100644 --- a/plugins/search-backend/knip-report.md +++ b/plugins/search-backend/knip-report.md @@ -1,2 +1,9 @@ # Knip report +## Unused dependencies (2) + +| Name | Location | Severity | +| :-------------------------------- | :----------- | :------- | +| @backstage/plugin-permission-node | package.json | error | +| yn | package.json | error | + diff --git a/plugins/search-react/knip-report.md b/plugins/search-react/knip-report.md index e4c2d5b55c..95b2395ba4 100644 --- a/plugins/search-react/knip-report.md +++ b/plugins/search-react/knip-report.md @@ -1,9 +1,14 @@ # Knip report -## Unused devDependencies (2) +## Unused devDependencies (1) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @backstage/frontend-app-api | package.json | error | -| @testing-library/dom | package.json | error | + +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/search/knip-report.md b/plugins/search/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/plugins/search/knip-report.md +++ b/plugins/search/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/signals-backend/knip-report.md b/plugins/signals-backend/knip-report.md index b809a13e13..8f8d01a437 100644 --- a/plugins/signals-backend/knip-report.md +++ b/plugins/signals-backend/knip-report.md @@ -1,12 +1,13 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (4) -| Name | Location | Severity | -| :-------------------- | :----------- | :------- | -| http-proxy-middleware | package.json | error | -| @backstage/config | package.json | error | -| node-fetch | package.json | error | +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @backstage/plugin-auth-node | package.json | error | +| http-proxy-middleware | package.json | error | +| winston | package.json | error | +| yn | package.json | error | ## Unused devDependencies (1) diff --git a/plugins/signals-node/knip-report.md b/plugins/signals-node/knip-report.md index 24da0710d8..34f37bfdb1 100644 --- a/plugins/signals-node/knip-report.md +++ b/plugins/signals-node/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused dependencies (6) +## Unused dependencies (5) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @backstage/plugin-auth-node | package.json | error | -| @backstage/backend-common | package.json | error | | @backstage/config | package.json | error | | express | package.json | error | | uuid | package.json | error | diff --git a/plugins/signals-react/knip-report.md b/plugins/signals-react/knip-report.md index 0d1d20d45b..55c2adfde5 100644 --- a/plugins/signals-react/knip-report.md +++ b/plugins/signals-react/knip-report.md @@ -13,3 +13,9 @@ | @testing-library/react | package.json | error | | @backstage/test-utils | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/signals/knip-report.md b/plugins/signals/knip-report.md index 31b0ba28ea..785af5a7c6 100644 --- a/plugins/signals/knip-report.md +++ b/plugins/signals/knip-report.md @@ -8,13 +8,17 @@ | @material-ui/lab | package.json | error | | react-use | package.json | error | -## Unused devDependencies (5) +## Unused devDependencies (3) | Name | Location | Severity | | :-------------------------- | :----------- | :------- | | @testing-library/user-event | package.json | error | | @backstage/core-app-api | package.json | error | -| @testing-library/react | package.json | error | -| @backstage/test-utils | package.json | error | | msw | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/techdocs-addons-test-utils/knip-report.md b/plugins/techdocs-addons-test-utils/knip-report.md index ca9b81ba38..97a4eafef0 100644 --- a/plugins/techdocs-addons-test-utils/knip-report.md +++ b/plugins/techdocs-addons-test-utils/knip-report.md @@ -12,3 +12,9 @@ | :------------------- | :----------- | :------- | | @testing-library/dom | package.json | error | +## Referenced optional peerDependencies (1) + +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | + diff --git a/plugins/techdocs-module-addons-contrib/knip-report.md b/plugins/techdocs-module-addons-contrib/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/plugins/techdocs-module-addons-contrib/knip-report.md +++ b/plugins/techdocs-module-addons-contrib/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/techdocs-react/knip-report.md b/plugins/techdocs-react/knip-report.md index 0f171c4d8f..8288639520 100644 --- a/plugins/techdocs-react/knip-report.md +++ b/plugins/techdocs-react/knip-report.md @@ -1,8 +1,15 @@ # Knip report -## Unused dependencies (1) +## Unused dependencies (2) + +| Name | Location | Severity | +| :------------------------- | :----------- | :------- | +| @backstage/core-components | package.json | error | +| react-helmet | package.json | error | + +## Referenced optional peerDependencies (1) | Name | Location | Severity | | :----------- | :----------- | :------- | -| react-helmet | package.json | error | +| @types/react | package.json | error | diff --git a/plugins/techdocs/knip-report.md b/plugins/techdocs/knip-report.md index a2b0f2bc7d..fb09d78e25 100644 --- a/plugins/techdocs/knip-report.md +++ b/plugins/techdocs/knip-report.md @@ -6,10 +6,9 @@ | :-- | :----------- | :------- | | jss | package.json | error | -## Unused devDependencies (2) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | -| canvas | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | diff --git a/plugins/user-settings-backend/knip-report.md b/plugins/user-settings-backend/knip-report.md index 2661c35327..9a27c5bad6 100644 --- a/plugins/user-settings-backend/knip-report.md +++ b/plugins/user-settings-backend/knip-report.md @@ -1,2 +1,9 @@ # Knip report +## Unused dependencies (2) + +| Name | Location | Severity | +| :---------------- | :----------- | :------- | +| @backstage/config | package.json | error | +| yn | package.json | error | + diff --git a/plugins/user-settings/knip-report.md b/plugins/user-settings/knip-report.md index 8d850953c7..27a145e95c 100644 --- a/plugins/user-settings/knip-report.md +++ b/plugins/user-settings/knip-report.md @@ -1,8 +1,8 @@ # Knip report -## Unused devDependencies (1) +## Referenced optional peerDependencies (1) -| Name | Location | Severity | -| :------------------- | :----------- | :------- | -| @testing-library/dom | package.json | error | +| Name | Location | Severity | +| :----------- | :----------- | :------- | +| @types/react | package.json | error | From 84fd95c76973f7daded3107fa57bbe728b5d9dc4 Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Wed, 15 Jan 2025 15:04:38 +0100 Subject: [PATCH 05/64] Ignore optional peerDependencies Let's figure out later what triggers those Signed-off-by: Axel Hecht --- packages/app-defaults/knip-report.md | 6 ------ packages/app-next-example-plugin/knip-report.md | 6 ------ packages/core-app-api/knip-report.md | 6 ------ packages/core-compat-api/knip-report.md | 6 ------ packages/core-components/knip-report.md | 6 ------ packages/core-plugin-api/knip-report.md | 6 ------ packages/dev-utils/knip-report.md | 6 ------ packages/frontend-app-api/knip-report.md | 6 ------ packages/frontend-plugin-api/knip-report.md | 6 ------ packages/frontend-test-utils/knip-report.md | 6 ------ packages/integration-react/knip-report.md | 6 ------ .../repo-tools/src/commands/knip-reports/knip-extractor.ts | 4 ++++ packages/test-utils/knip-report.md | 7 ------- packages/theme/knip-report.md | 6 ------ packages/version-bridge/knip-report.md | 6 ------ plugins/api-docs-module-protoc-gen-doc/knip-report.md | 6 ------ plugins/api-docs/knip-report.md | 6 ------ plugins/app-visualizer/knip-report.md | 6 ------ plugins/catalog-graph/knip-report.md | 6 ------ plugins/catalog-import/knip-report.md | 6 ------ plugins/catalog-react/knip-report.md | 6 ------ plugins/catalog-unprocessed-entities/knip-report.md | 6 ------ plugins/catalog/knip-report.md | 6 ------ plugins/config-schema/knip-report.md | 6 ------ plugins/devtools/knip-report.md | 6 ------ plugins/example-todo-list/knip-report.md | 6 ------ plugins/home-react/knip-report.md | 6 ------ plugins/home/knip-report.md | 6 ------ plugins/kubernetes-cluster/knip-report.md | 6 ------ plugins/kubernetes-react/knip-report.md | 6 ------ plugins/kubernetes/knip-report.md | 6 ------ plugins/notifications/knip-report.md | 6 ------ plugins/org-react/knip-report.md | 6 ------ plugins/org/knip-report.md | 6 ------ plugins/permission-react/knip-report.md | 6 ------ plugins/scaffolder-node-test-utils/knip-report.md | 3 +-- plugins/scaffolder-react/knip-report.md | 6 ------ plugins/scaffolder/knip-report.md | 6 ------ plugins/search-react/knip-report.md | 6 ------ plugins/search/knip-report.md | 6 ------ plugins/signals-react/knip-report.md | 6 ------ plugins/signals/knip-report.md | 6 ------ plugins/techdocs-addons-test-utils/knip-report.md | 6 ------ plugins/techdocs-module-addons-contrib/knip-report.md | 6 ------ plugins/techdocs-react/knip-report.md | 6 ------ plugins/techdocs/knip-report.md | 6 ------ plugins/user-settings/knip-report.md | 6 ------ 47 files changed, 5 insertions(+), 273 deletions(-) diff --git a/packages/app-defaults/knip-report.md b/packages/app-defaults/knip-report.md index 27a145e95c..2661c35327 100644 --- a/packages/app-defaults/knip-report.md +++ b/packages/app-defaults/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/app-next-example-plugin/knip-report.md b/packages/app-next-example-plugin/knip-report.md index 54dc66d59e..e01cd18c93 100644 --- a/packages/app-next-example-plugin/knip-report.md +++ b/packages/app-next-example-plugin/knip-report.md @@ -7,9 +7,3 @@ | cross-fetch | package.json | error | | msw | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/core-app-api/knip-report.md b/packages/core-app-api/knip-report.md index 010afdd8b4..76616b6d60 100644 --- a/packages/core-app-api/knip-report.md +++ b/packages/core-app-api/knip-report.md @@ -16,9 +16,3 @@ | react-router-stable | package.json | error | | react-router-beta | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/core-compat-api/knip-report.md b/packages/core-compat-api/knip-report.md index d6bf611772..7d3c3a7c03 100644 --- a/packages/core-compat-api/knip-report.md +++ b/packages/core-compat-api/knip-report.md @@ -8,12 +8,6 @@ | @backstage/types | package.json | error | | zod | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (2) | Name | Location | Severity | diff --git a/packages/core-components/knip-report.md b/packages/core-components/knip-report.md index 6d8a954385..69f3218a24 100644 --- a/packages/core-components/knip-report.md +++ b/packages/core-components/knip-report.md @@ -14,12 +14,6 @@ | @types/google-protobuf | package.json | error | | cross-fetch | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (3) | Name | Location | Severity | diff --git a/packages/core-plugin-api/knip-report.md b/packages/core-plugin-api/knip-report.md index 20e35cfd7d..169117772f 100644 --- a/packages/core-plugin-api/knip-report.md +++ b/packages/core-plugin-api/knip-report.md @@ -6,9 +6,3 @@ | :-------------------------- | :----------- | :------- | | @testing-library/user-event | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/dev-utils/knip-report.md b/packages/dev-utils/knip-report.md index 27a145e95c..2661c35327 100644 --- a/packages/dev-utils/knip-report.md +++ b/packages/dev-utils/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/frontend-app-api/knip-report.md b/packages/frontend-app-api/knip-report.md index 517e88ce8a..69cb2648b7 100644 --- a/packages/frontend-app-api/knip-report.md +++ b/packages/frontend-app-api/knip-report.md @@ -8,12 +8,6 @@ | @backstage/errors | package.json | error | | zod | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (3) | Name | Location | Severity | diff --git a/packages/frontend-plugin-api/knip-report.md b/packages/frontend-plugin-api/knip-report.md index 43b78effd5..462c1fd03b 100644 --- a/packages/frontend-plugin-api/knip-report.md +++ b/packages/frontend-plugin-api/knip-report.md @@ -14,12 +14,6 @@ | :-------------------------- | :----------- | :------- | | @backstage/frontend-app-api | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (5) | Name | Location | Severity | diff --git a/packages/frontend-test-utils/knip-report.md b/packages/frontend-test-utils/knip-report.md index 5b35805816..5d03d0a51c 100644 --- a/packages/frontend-test-utils/knip-report.md +++ b/packages/frontend-test-utils/knip-report.md @@ -7,12 +7,6 @@ | @backstage/version-bridge | package.json | error | | zod | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (1) | Name | Location | Severity | diff --git a/packages/integration-react/knip-report.md b/packages/integration-react/knip-report.md index 9ccde91b0c..551f19ab2f 100644 --- a/packages/integration-react/knip-report.md +++ b/packages/integration-react/knip-report.md @@ -7,9 +7,3 @@ | @testing-library/dom | package.json | error | | msw | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index 645d084017..5238a951c9 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -83,6 +83,10 @@ async function generateKnipConfig({ knipConfigPath }: KnipConfigOptions) { '{fixtures,migrations,templates}/**', ], ignoreDependencies: [ + // these is reported as a referenced optional peerDependencies + // TBD: investigate what triggers these + '@types/react', + '@types/jest', '@backstage/cli', // everything depends on this for its package.json commands '@backstage/theme', // this uses `declare module` in .d.ts so is implicitly used whenever extensions are needed ], diff --git a/packages/test-utils/knip-report.md b/packages/test-utils/knip-report.md index 1b48f703a1..2661c35327 100644 --- a/packages/test-utils/knip-report.md +++ b/packages/test-utils/knip-report.md @@ -1,9 +1,2 @@ # Knip report -## Referenced optional peerDependencies (2) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | -| @types/jest | package.json | error | - diff --git a/packages/theme/knip-report.md b/packages/theme/knip-report.md index c5f148fbd3..9aa0ae1d46 100644 --- a/packages/theme/knip-report.md +++ b/packages/theme/knip-report.md @@ -6,9 +6,3 @@ | :--------------- | :----------- | :------- | | react-router-dom | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/packages/version-bridge/knip-report.md b/packages/version-bridge/knip-report.md index c5f148fbd3..9aa0ae1d46 100644 --- a/packages/version-bridge/knip-report.md +++ b/packages/version-bridge/knip-report.md @@ -6,9 +6,3 @@ | :--------------- | :----------- | :------- | | react-router-dom | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/api-docs-module-protoc-gen-doc/knip-report.md b/plugins/api-docs-module-protoc-gen-doc/knip-report.md index 9743763ca9..63b63f2f9b 100644 --- a/plugins/api-docs-module-protoc-gen-doc/knip-report.md +++ b/plugins/api-docs-module-protoc-gen-doc/knip-report.md @@ -7,9 +7,3 @@ | react-router-dom | package.json | error | | react-dom | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/api-docs/knip-report.md b/plugins/api-docs/knip-report.md index 27e141bb8c..3c06f53535 100644 --- a/plugins/api-docs/knip-report.md +++ b/plugins/api-docs/knip-report.md @@ -15,9 +15,3 @@ | @backstage/core-app-api | package.json | error | | @types/highlightjs | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/app-visualizer/knip-report.md b/plugins/app-visualizer/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/app-visualizer/knip-report.md +++ b/plugins/app-visualizer/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/catalog-graph/knip-report.md b/plugins/catalog-graph/knip-report.md index 118e62e2f9..6b1996899f 100644 --- a/plugins/catalog-graph/knip-report.md +++ b/plugins/catalog-graph/knip-report.md @@ -6,9 +6,3 @@ | :------ | :----------- | :------- | | p-limit | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/catalog-import/knip-report.md b/plugins/catalog-import/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/catalog-import/knip-report.md +++ b/plugins/catalog-import/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/catalog-react/knip-report.md b/plugins/catalog-react/knip-report.md index 74674f0a9f..4b33c02956 100644 --- a/plugins/catalog-react/knip-report.md +++ b/plugins/catalog-react/knip-report.md @@ -6,9 +6,3 @@ | :------------------ | :----------- | :------- | | react-test-renderer | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/catalog-unprocessed-entities/knip-report.md b/plugins/catalog-unprocessed-entities/knip-report.md index 5fb4eceb90..ccda99cbfb 100644 --- a/plugins/catalog-unprocessed-entities/knip-report.md +++ b/plugins/catalog-unprocessed-entities/knip-report.md @@ -6,9 +6,3 @@ | :--------------------- | :----------- | :------- | | @testing-library/react | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/catalog/knip-report.md b/plugins/catalog/knip-report.md index 466d6bf8bf..7ceae94282 100644 --- a/plugins/catalog/knip-report.md +++ b/plugins/catalog/knip-report.md @@ -6,9 +6,3 @@ | :------ | :----------- | :------- | | history | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/config-schema/knip-report.md b/plugins/config-schema/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/config-schema/knip-report.md +++ b/plugins/config-schema/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/devtools/knip-report.md b/plugins/devtools/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/devtools/knip-report.md +++ b/plugins/devtools/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/example-todo-list/knip-report.md b/plugins/example-todo-list/knip-report.md index 8265f7cba3..ba9c1dddc5 100644 --- a/plugins/example-todo-list/knip-report.md +++ b/plugins/example-todo-list/knip-report.md @@ -7,9 +7,3 @@ | @testing-library/react | package.json | error | | @testing-library/dom | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/home-react/knip-report.md b/plugins/home-react/knip-report.md index 5eba7ba786..c9f34521a3 100644 --- a/plugins/home-react/knip-report.md +++ b/plugins/home-react/knip-report.md @@ -6,9 +6,3 @@ | :----------------------- | :----------- | :------- | | @types/react-grid-layout | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/home/knip-report.md b/plugins/home/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/home/knip-report.md +++ b/plugins/home/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/kubernetes-cluster/knip-report.md b/plugins/kubernetes-cluster/knip-report.md index 4dfb36f550..a5a618460d 100644 --- a/plugins/kubernetes-cluster/knip-report.md +++ b/plugins/kubernetes-cluster/knip-report.md @@ -16,9 +16,3 @@ | :------------------- | :----------- | :------- | | @testing-library/dom | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/kubernetes-react/knip-report.md b/plugins/kubernetes-react/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/kubernetes-react/knip-report.md +++ b/plugins/kubernetes-react/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/kubernetes/knip-report.md b/plugins/kubernetes/knip-report.md index 3bbc096084..a20fd463aa 100644 --- a/plugins/kubernetes/knip-report.md +++ b/plugins/kubernetes/knip-report.md @@ -16,9 +16,3 @@ | luxon | package.json | error | | xterm | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/notifications/knip-report.md b/plugins/notifications/knip-report.md index 07352d7523..da21340672 100644 --- a/plugins/notifications/knip-report.md +++ b/plugins/notifications/knip-report.md @@ -14,9 +14,3 @@ | @testing-library/user-event | package.json | error | | @backstage/core-app-api | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/org-react/knip-report.md b/plugins/org-react/knip-report.md index 61b4972034..b5cb1d8b22 100644 --- a/plugins/org-react/knip-report.md +++ b/plugins/org-react/knip-report.md @@ -6,9 +6,3 @@ | :------------------------ | :----------- | :------- | | @backstage/catalog-client | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/org/knip-report.md b/plugins/org/knip-report.md index 7a38c994a2..d1f8bacd53 100644 --- a/plugins/org/knip-report.md +++ b/plugins/org/knip-report.md @@ -6,9 +6,3 @@ | :---------------------------------- | :----------- | :------- | | @backstage/plugin-permission-common | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/permission-react/knip-report.md b/plugins/permission-react/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/permission-react/knip-report.md +++ b/plugins/permission-react/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/scaffolder-node-test-utils/knip-report.md b/plugins/scaffolder-node-test-utils/knip-report.md index 0459ceb140..beefceb792 100644 --- a/plugins/scaffolder-node-test-utils/knip-report.md +++ b/plugins/scaffolder-node-test-utils/knip-report.md @@ -1,11 +1,10 @@ # Knip report -## Unused devDependencies (4) +## Unused devDependencies (3) | Name | Location | Severity | | :--------------- | :----------- | :------- | | react-router-dom | package.json | error | -| @types/react | package.json | error | | react-dom | package.json | error | | react | package.json | error | diff --git a/plugins/scaffolder-react/knip-report.md b/plugins/scaffolder-react/knip-report.md index 7893bde707..982fa32d6f 100644 --- a/plugins/scaffolder-react/knip-report.md +++ b/plugins/scaffolder-react/knip-report.md @@ -12,12 +12,6 @@ | :------------------------------- | :----------- | :------- | | @backstage/plugin-catalog-common | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (3) | Name | Location | Severity | diff --git a/plugins/scaffolder/knip-report.md b/plugins/scaffolder/knip-report.md index 7eff004077..caf0b9001b 100644 --- a/plugins/scaffolder/knip-report.md +++ b/plugins/scaffolder/knip-report.md @@ -8,12 +8,6 @@ | @rjsf/material-ui | package.json | error | | git-url-parse | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - ## Unlisted dependencies (1) | Name | Location | Severity | diff --git a/plugins/search-react/knip-report.md b/plugins/search-react/knip-report.md index 95b2395ba4..7f6a4d4ccd 100644 --- a/plugins/search-react/knip-report.md +++ b/plugins/search-react/knip-report.md @@ -6,9 +6,3 @@ | :-------------------------- | :----------- | :------- | | @backstage/frontend-app-api | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/search/knip-report.md b/plugins/search/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/search/knip-report.md +++ b/plugins/search/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/signals-react/knip-report.md b/plugins/signals-react/knip-report.md index 55c2adfde5..0d1d20d45b 100644 --- a/plugins/signals-react/knip-report.md +++ b/plugins/signals-react/knip-report.md @@ -13,9 +13,3 @@ | @testing-library/react | package.json | error | | @backstage/test-utils | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/signals/knip-report.md b/plugins/signals/knip-report.md index 785af5a7c6..e9c2c167b1 100644 --- a/plugins/signals/knip-report.md +++ b/plugins/signals/knip-report.md @@ -16,9 +16,3 @@ | @backstage/core-app-api | package.json | error | | msw | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/techdocs-addons-test-utils/knip-report.md b/plugins/techdocs-addons-test-utils/knip-report.md index 97a4eafef0..ca9b81ba38 100644 --- a/plugins/techdocs-addons-test-utils/knip-report.md +++ b/plugins/techdocs-addons-test-utils/knip-report.md @@ -12,9 +12,3 @@ | :------------------- | :----------- | :------- | | @testing-library/dom | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/techdocs-module-addons-contrib/knip-report.md b/plugins/techdocs-module-addons-contrib/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/techdocs-module-addons-contrib/knip-report.md +++ b/plugins/techdocs-module-addons-contrib/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/techdocs-react/knip-report.md b/plugins/techdocs-react/knip-report.md index 8288639520..651079cda4 100644 --- a/plugins/techdocs-react/knip-report.md +++ b/plugins/techdocs-react/knip-report.md @@ -7,9 +7,3 @@ | @backstage/core-components | package.json | error | | react-helmet | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/techdocs/knip-report.md b/plugins/techdocs/knip-report.md index fb09d78e25..2b0b502c71 100644 --- a/plugins/techdocs/knip-report.md +++ b/plugins/techdocs/knip-report.md @@ -6,9 +6,3 @@ | :-- | :----------- | :------- | | jss | package.json | error | -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - diff --git a/plugins/user-settings/knip-report.md b/plugins/user-settings/knip-report.md index 27a145e95c..2661c35327 100644 --- a/plugins/user-settings/knip-report.md +++ b/plugins/user-settings/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Referenced optional peerDependencies (1) - -| Name | Location | Severity | -| :----------- | :----------- | :------- | -| @types/react | package.json | error | - From 5e66a252a6130038e0db5eb0f31ef53a3e02887f Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Wed, 15 Jan 2025 15:56:09 +0100 Subject: [PATCH 06/64] Move ignores into workspace to fix templates Signed-off-by: Axel Hecht --- packages/cli/knip-report.md | 20 +++---- packages/create-app/knip-report.md | 59 ------------------- .../commands/knip-reports/knip-extractor.ts | 18 +++--- 3 files changed, 16 insertions(+), 81 deletions(-) diff --git a/packages/cli/knip-report.md b/packages/cli/knip-report.md index 60ccba435c..bfb5537db1 100644 --- a/packages/cli/knip-report.md +++ b/packages/cli/knip-report.md @@ -58,18 +58,12 @@ | @rspack/dev-server | package.json | error | | @rspack/core | package.json | error | -## Unlisted dependencies (10) +## Unlisted dependencies (4) -| Name | Location | Severity | -| :--------------------- | :----------------------------------------------------------------------------------------------- | :------- | -| @testing-library/react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx | error | -| react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx | error | -| @material-ui/core | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx | error | -| react | templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx | error | -| supertest | templates/default-backend-plugin/src/router.test.ts | error | -| express-promise-router | templates/default-backend-plugin/src/router.ts | error | -| react-dom | src/lib/bundler/hasReactDomClient.ts | error | -| react-dom | src/lib/bundler/config.ts | error | -| react | src/lib/bundler/config.ts | error | -| react | src/lib/bundler/server.ts | error | +| Name | Location | Severity | +| :-------- | :----------------------------------- | :------- | +| react-dom | src/lib/bundler/hasReactDomClient.ts | error | +| react-dom | src/lib/bundler/config.ts | error | +| react | src/lib/bundler/config.ts | error | +| react | src/lib/bundler/server.ts | error | diff --git a/packages/create-app/knip-report.md b/packages/create-app/knip-report.md index 0afa527ab0..864a5956ef 100644 --- a/packages/create-app/knip-report.md +++ b/packages/create-app/knip-report.md @@ -6,62 +6,3 @@ | :-------------------- | :----------- | :------- | | @types/command-exists | package.json | error | -## Unlisted dependencies (54) - -| Name | Location | Severity | -| :----------------------------------------------- | :----------------------------------------------------------------------- | :------- | -| @backstage/plugin-techdocs-module-addons-contrib | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-techdocs-react | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-catalog-graph | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-kubernetes | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-api-docs | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-techdocs | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/core-components | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-catalog | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/catalog-model | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-org | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @material-ui/core | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| react | templates/default-app/packages/app/src/components/catalog/EntityPage.tsx | error | -| @backstage/plugin-catalog-react | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @backstage/plugin-search-react | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @backstage/plugin-techdocs | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @backstage/core-components | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @backstage/core-plugin-api | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @backstage/plugin-catalog | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @backstage/plugin-search | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @material-ui/core | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| react | templates/default-app/packages/app/src/components/search/SearchPage.tsx | error | -| @material-ui/core | templates/default-app/packages/app/src/components/Root/LogoFull.tsx | error | -| @material-ui/core | templates/default-app/packages/app/src/components/Root/LogoIcon.tsx | error | -| react | templates/default-app/packages/app/src/components/Root/LogoFull.tsx | error | -| react | templates/default-app/packages/app/src/components/Root/LogoIcon.tsx | error | -| @backstage/plugin-user-settings | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| @backstage/core-components | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| @backstage/plugin-search | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| @backstage/plugin-org | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| @material-ui/icons | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| @material-ui/core | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| react | templates/default-app/packages/app/src/components/Root/Root.tsx | error | -| @testing-library/react | templates/default-app/packages/app/src/App.test.tsx | error | -| react | templates/default-app/packages/app/src/App.test.tsx | error | -| @backstage/plugin-techdocs-module-addons-contrib | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-permission-react | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-catalog-import | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-techdocs-react | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-catalog-common | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-user-settings | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-catalog-graph | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-scaffolder | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/integration-react | templates/default-app/packages/app/src/apis.ts | error | -| @backstage/plugin-api-docs | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-techdocs | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/core-components | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/core-plugin-api | templates/default-app/packages/app/src/apis.ts | error | -| @backstage/plugin-catalog | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-search | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/app-defaults | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/core-app-api | templates/default-app/packages/app/src/App.tsx | error | -| @backstage/plugin-org | templates/default-app/packages/app/src/App.tsx | error | -| react-router-dom | templates/default-app/packages/app/src/App.tsx | error | -| react | templates/default-app/packages/app/src/App.tsx | error | - diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index 5238a951c9..019d6a7ebc 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -68,20 +68,20 @@ async function generateKnipConfig({ knipConfigPath }: KnipConfigOptions) { 'src/routes.ts', 'src/run.ts', ], + ignore: [ + '.eslintrc.js', + 'config.d.ts', + 'knexfile.js', + 'node_modules/**', + 'dist/**', + '{fixtures,migrations,templates}/**', + ], }, }, jest: { - entry: ['src/setupTests.ts', '**/*.test.{ts,tsx}'], + entry: ['src/setupTests.ts', 'src/**/*.test.{ts,tsx}'], }, storybook: { entry: 'src/components/**/*.stories.tsx' }, - ignore: [ - '.eslintrc.js', - 'config.d.ts', - 'knexfile.js', - 'node_modules/**', - 'dist/**', - '{fixtures,migrations,templates}/**', - ], ignoreDependencies: [ // these is reported as a referenced optional peerDependencies // TBD: investigate what triggers these From f4d0a921430a113ab571dfaf8c4c20525fdea0a0 Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Wed, 15 Jan 2025 21:29:19 +0100 Subject: [PATCH 07/64] Slim down entries, relying on package.json exports Signed-off-by: Axel Hecht --- .../src/commands/knip-reports/knip-extractor.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index 019d6a7ebc..d7110eec5b 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -61,13 +61,7 @@ async function generateKnipConfig({ knipConfigPath }: KnipConfigOptions) { workspaces: { '.': {}, '{packages,plugins}/*': { - entry: [ - 'dev/index.{ts,tsx}', - 'src/index.{ts,tsx}', - 'src/alpha.{ts,tsx}', - 'src/routes.ts', - 'src/run.ts', - ], + entry: ['dev/index.{ts,tsx}', 'src/index.{ts,tsx}'], ignore: [ '.eslintrc.js', 'config.d.ts', From 2815a4bb069b92f3689d7056c4168ea518e22fc8 Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Thu, 16 Jan 2025 11:12:40 +0100 Subject: [PATCH 08/64] Ignore internal non-published packages Using just the naming convention for now. Signed-off-by: Axel Hecht --- packages/core-compat-api/knip-report.md | 7 ------- packages/frontend-app-api/knip-report.md | 8 -------- packages/frontend-plugin-api/knip-report.md | 10 ---------- packages/frontend-test-utils/knip-report.md | 6 ------ .../src/commands/knip-reports/knip-extractor.ts | 1 + plugins/scaffolder-react/knip-report.md | 8 -------- plugins/scaffolder/knip-report.md | 6 ------ 7 files changed, 1 insertion(+), 45 deletions(-) diff --git a/packages/core-compat-api/knip-report.md b/packages/core-compat-api/knip-report.md index 7d3c3a7c03..a5794ee10b 100644 --- a/packages/core-compat-api/knip-report.md +++ b/packages/core-compat-api/knip-report.md @@ -8,10 +8,3 @@ | @backstage/types | package.json | error | | zod | package.json | error | -## Unlisted dependencies (2) - -| Name | Location | Severity | -| :----------------- | :------------------------------- | :------- | -| @internal/frontend | src/collectLegacyRoutes.test.tsx | error | -| @internal/frontend | src/convertLegacyPlugin.test.tsx | error | - diff --git a/packages/frontend-app-api/knip-report.md b/packages/frontend-app-api/knip-report.md index 69cb2648b7..b050438d7c 100644 --- a/packages/frontend-app-api/knip-report.md +++ b/packages/frontend-app-api/knip-report.md @@ -8,11 +8,3 @@ | @backstage/errors | package.json | error | | zod | package.json | error | -## Unlisted dependencies (3) - -| Name | Location | Severity | -| :----------------- | :---------------------------------- | :------- | -| @internal/frontend | src/wiring/createSpecializedApp.tsx | error | -| @internal/frontend | src/tree/resolveAppNodeSpecs.ts | error | -| @internal/frontend | src/routing/collectRouteIds.ts | error | - diff --git a/packages/frontend-plugin-api/knip-report.md b/packages/frontend-plugin-api/knip-report.md index 462c1fd03b..402fea3d47 100644 --- a/packages/frontend-plugin-api/knip-report.md +++ b/packages/frontend-plugin-api/knip-report.md @@ -14,13 +14,3 @@ | :-------------------------- | :----------- | :------- | | @backstage/frontend-app-api | package.json | error | -## Unlisted dependencies (5) - -| Name | Location | Severity | -| :----------------- | :------------------------------------------- | :------- | -| @internal/frontend | src/wiring/createExtensionBlueprint.test.tsx | error | -| @internal/frontend | src/wiring/resolveExtensionDefinition.ts | error | -| @internal/frontend | src/wiring/createFrontendModule.ts | error | -| @internal/frontend | src/wiring/createFrontendPlugin.ts | error | -| @internal/frontend | src/wiring/createExtension.ts | error | - diff --git a/packages/frontend-test-utils/knip-report.md b/packages/frontend-test-utils/knip-report.md index 5d03d0a51c..50f4f788e3 100644 --- a/packages/frontend-test-utils/knip-report.md +++ b/packages/frontend-test-utils/knip-report.md @@ -7,9 +7,3 @@ | @backstage/version-bridge | package.json | error | | zod | package.json | error | -## Unlisted dependencies (1) - -| Name | Location | Severity | -| :----------------- | :-------------------------------- | :------- | -| @internal/frontend | src/app/createExtensionTester.tsx | error | - diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index d7110eec5b..f2cd6e513e 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -81,6 +81,7 @@ async function generateKnipConfig({ knipConfigPath }: KnipConfigOptions) { // TBD: investigate what triggers these '@types/react', '@types/jest', + '@internal/.*', // internal packages are not published and inlined '@backstage/cli', // everything depends on this for its package.json commands '@backstage/theme', // this uses `declare module` in .d.ts so is implicitly used whenever extensions are needed ], diff --git a/plugins/scaffolder-react/knip-report.md b/plugins/scaffolder-react/knip-report.md index 982fa32d6f..38b9eed013 100644 --- a/plugins/scaffolder-react/knip-report.md +++ b/plugins/scaffolder-react/knip-report.md @@ -12,11 +12,3 @@ | :------------------------------- | :----------- | :------- | | @backstage/plugin-catalog-common | package.json | error | -## Unlisted dependencies (3) - -| Name | Location | Severity | -| :------------------- | :--------------------------------------------------- | :------- | -| @internal/scaffolder | src/next/extensions/createScaffolderFormDecorator.ts | error | -| @internal/scaffolder | src/next/blueprints/FormFieldBlueprint.tsx | error | -| @internal/scaffolder | src/next/api/FormFieldsApi.ts | error | - diff --git a/plugins/scaffolder/knip-report.md b/plugins/scaffolder/knip-report.md index caf0b9001b..02a697ddb0 100644 --- a/plugins/scaffolder/knip-report.md +++ b/plugins/scaffolder/knip-report.md @@ -8,9 +8,3 @@ | @rjsf/material-ui | package.json | error | | git-url-parse | package.json | error | -## Unlisted dependencies (1) - -| Name | Location | Severity | -| :------------------- | :----------------------------------- | :------- | -| @internal/scaffolder | src/alpha/hooks/useFormDecorators.ts | error | - From 45c37538f55d9ccb4cb8d563bb2d584e3f3554c8 Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Thu, 16 Jan 2025 11:53:15 +0100 Subject: [PATCH 09/64] Add missing reports, only skip canon Canon uses a different setup for storybook Signed-off-by: Axel Hecht --- packages/frontend-defaults/knip-report.md | 2 ++ packages/frontend-internal/knip-report.md | 20 ++++++++++++++ packages/opaque-internal/knip-report.md | 9 +++++++ .../commands/knip-reports/knip-extractor.ts | 6 +++-- packages/scaffolder-internal/knip-report.md | 2 ++ .../techdocs-cli-embedded-app/knip-report.md | 26 ++++++++----------- packages/yarn-plugin/knip-report.md | 2 ++ plugins/app/knip-report.md | 19 ++++++++++++++ .../knip-report.md | 2 ++ .../knip-report.md | 8 ++++++ .../knip-report.md | 9 +++++++ .../knip-report.md | 8 ++++++ plugins/auth-react/knip-report.md | 8 ++++++ .../knip-report.md | 8 ++++++ .../knip-report.md | 2 ++ .../knip-report.md | 2 ++ .../knip-report.md | 8 ++++++ plugins/proxy-node/knip-report.md | 9 +++++++ .../knip-report.md | 8 ++++++ plugins/techdocs-common/knip-report.md | 2 ++ plugins/user-settings-common/knip-report.md | 2 ++ 21 files changed, 145 insertions(+), 17 deletions(-) create mode 100644 packages/frontend-defaults/knip-report.md create mode 100644 packages/frontend-internal/knip-report.md create mode 100644 packages/opaque-internal/knip-report.md create mode 100644 packages/scaffolder-internal/knip-report.md create mode 100644 packages/yarn-plugin/knip-report.md create mode 100644 plugins/app/knip-report.md create mode 100644 plugins/auth-backend-module-auth0-provider/knip-report.md create mode 100644 plugins/auth-backend-module-azure-easyauth-provider/knip-report.md create mode 100644 plugins/auth-backend-module-bitbucket-provider/knip-report.md create mode 100644 plugins/auth-backend-module-bitbucket-server-provider/knip-report.md create mode 100644 plugins/auth-react/knip-report.md create mode 100644 plugins/catalog-backend-module-gitlab-org/knip-report.md create mode 100644 plugins/catalog-backend-module-logs/knip-report.md create mode 100644 plugins/catalog-unprocessed-entities-common/knip-report.md create mode 100644 plugins/notifications-backend-module-email/knip-report.md create mode 100644 plugins/proxy-node/knip-report.md create mode 100644 plugins/scaffolder-backend-module-notifications/knip-report.md create mode 100644 plugins/techdocs-common/knip-report.md create mode 100644 plugins/user-settings-common/knip-report.md diff --git a/packages/frontend-defaults/knip-report.md b/packages/frontend-defaults/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/packages/frontend-defaults/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/packages/frontend-internal/knip-report.md b/packages/frontend-internal/knip-report.md new file mode 100644 index 0000000000..d5272513d9 --- /dev/null +++ b/packages/frontend-internal/knip-report.md @@ -0,0 +1,20 @@ +# Knip report + +## Unused dependencies (3) + +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @backstage/version-bridge | package.json | error | +| @backstage/types | package.json | error | +| zod | package.json | error | + +## Unused devDependencies (5) + +| Name | Location | Severity | +| :----------------------------- | :----------- | :------- | +| @backstage/frontend-test-utils | package.json | error | +| @backstage/frontend-app-api | package.json | error | +| @testing-library/jest-dom | package.json | error | +| @testing-library/react | package.json | error | +| @backstage/test-utils | package.json | error | + diff --git a/packages/opaque-internal/knip-report.md b/packages/opaque-internal/knip-report.md new file mode 100644 index 0000000000..b131ea8948 --- /dev/null +++ b/packages/opaque-internal/knip-report.md @@ -0,0 +1,9 @@ +# Knip report + +## Unused devDependencies (2) + +| Name | Location | Severity | +| :------------------------ | :----------- | :------- | +| @testing-library/jest-dom | package.json | error | +| @testing-library/react | package.json | error | + diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index f2cd6e513e..b8bf720bb8 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -21,8 +21,10 @@ import fs from 'fs-extra'; import type { KnipConfig } from 'knip'; import { createBinRunner } from '../util'; -// Ignore this due to Knip error: Error: ENAMETOOLONG: name too long, scandir -const ignoredPackages = ['packages/techdocs-cli-embedded-app']; +// Ignore these +const ignoredPackages = [ + 'packages/canon', // storybook config is different from the rest +]; interface KnipExtractionOptions { packageDirs: string[]; diff --git a/packages/scaffolder-internal/knip-report.md b/packages/scaffolder-internal/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/packages/scaffolder-internal/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/packages/techdocs-cli-embedded-app/knip-report.md b/packages/techdocs-cli-embedded-app/knip-report.md index 87e4093961..96aa361a87 100644 --- a/packages/techdocs-cli-embedded-app/knip-report.md +++ b/packages/techdocs-cli-embedded-app/knip-report.md @@ -1,21 +1,17 @@ # Knip report -## Unused dependencies (4) +## Unused dependencies (2) -| Name | Location | -|:----------------------|:-------------| -| history | package.json | -| react-use | package.json | -| @backstage/theme | package.json | -| @backstage/test-utils | package.json | +| Name | Location | Severity | +| :-------- | :----------- | :------- | +| react-use | package.json | error | +| history | package.json | error | -## Unused devDependencies (5) +## Unused devDependencies (3) -| Name | Location | -|:----------------------------|:-------------| -| cross-env | package.json | -| @testing-library/dom | package.json | -| @testing-library/react | package.json | -| @testing-library/jest-dom | package.json | -| @testing-library/user-event | package.json | +| Name | Location | Severity | +| :-------------------------- | :----------- | :------- | +| @testing-library/user-event | package.json | error | +| @testing-library/dom | package.json | error | +| cross-env | package.json | error | diff --git a/packages/yarn-plugin/knip-report.md b/packages/yarn-plugin/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/packages/yarn-plugin/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/plugins/app/knip-report.md b/plugins/app/knip-report.md new file mode 100644 index 0000000000..2206dd4cf9 --- /dev/null +++ b/plugins/app/knip-report.md @@ -0,0 +1,19 @@ +# Knip report + +## Unused dependencies (2) + +| Name | Location | Severity | +| :--------------- | :----------- | :------- | +| @material-ui/lab | package.json | error | +| react-use | package.json | error | + +## Unused devDependencies (5) + +| Name | Location | Severity | +| :----------------------------- | :----------- | :------- | +| @backstage/frontend-test-utils | package.json | error | +| @testing-library/user-event | package.json | error | +| @testing-library/react | package.json | error | +| @backstage/dev-utils | package.json | error | +| msw | package.json | error | + diff --git a/plugins/auth-backend-module-auth0-provider/knip-report.md b/plugins/auth-backend-module-auth0-provider/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/plugins/auth-backend-module-auth0-provider/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/plugins/auth-backend-module-azure-easyauth-provider/knip-report.md b/plugins/auth-backend-module-azure-easyauth-provider/knip-report.md new file mode 100644 index 0000000000..d5c786591f --- /dev/null +++ b/plugins/auth-backend-module-azure-easyauth-provider/knip-report.md @@ -0,0 +1,8 @@ +# Knip report + +## Unused dependencies (1) + +| Name | Location | Severity | +| :----------------------- | :----------- | :------- | +| @backstage/catalog-model | package.json | error | + diff --git a/plugins/auth-backend-module-bitbucket-provider/knip-report.md b/plugins/auth-backend-module-bitbucket-provider/knip-report.md new file mode 100644 index 0000000000..6624c86073 --- /dev/null +++ b/plugins/auth-backend-module-bitbucket-provider/knip-report.md @@ -0,0 +1,9 @@ +# Knip report + +## Unused dependencies (2) + +| Name | Location | Severity | +| :------- | :----------- | :------- | +| passport | package.json | error | +| express | package.json | error | + diff --git a/plugins/auth-backend-module-bitbucket-server-provider/knip-report.md b/plugins/auth-backend-module-bitbucket-server-provider/knip-report.md new file mode 100644 index 0000000000..4386ad9c4a --- /dev/null +++ b/plugins/auth-backend-module-bitbucket-server-provider/knip-report.md @@ -0,0 +1,8 @@ +# Knip report + +## Unused dependencies (1) + +| Name | Location | Severity | +| :------- | :----------- | :------- | +| passport | package.json | error | + diff --git a/plugins/auth-react/knip-report.md b/plugins/auth-react/knip-report.md new file mode 100644 index 0000000000..df86118651 --- /dev/null +++ b/plugins/auth-react/knip-report.md @@ -0,0 +1,8 @@ +# Knip report + +## Unused devDependencies (1) + +| Name | Location | Severity | +| :-- | :----------- | :------- | +| msw | package.json | error | + diff --git a/plugins/catalog-backend-module-gitlab-org/knip-report.md b/plugins/catalog-backend-module-gitlab-org/knip-report.md new file mode 100644 index 0000000000..cb5315967a --- /dev/null +++ b/plugins/catalog-backend-module-gitlab-org/knip-report.md @@ -0,0 +1,8 @@ +# Knip report + +## Unused devDependencies (1) + +| Name | Location | Severity | +| :---- | :----------- | :------- | +| luxon | package.json | error | + diff --git a/plugins/catalog-backend-module-logs/knip-report.md b/plugins/catalog-backend-module-logs/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/plugins/catalog-backend-module-logs/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/plugins/catalog-unprocessed-entities-common/knip-report.md b/plugins/catalog-unprocessed-entities-common/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/plugins/catalog-unprocessed-entities-common/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/plugins/notifications-backend-module-email/knip-report.md b/plugins/notifications-backend-module-email/knip-report.md new file mode 100644 index 0000000000..38a3e4ea8a --- /dev/null +++ b/plugins/notifications-backend-module-email/knip-report.md @@ -0,0 +1,8 @@ +# Knip report + +## Unused dependencies (1) + +| Name | Location | Severity | +| :------------- | :----------- | :------- | +| @aws-sdk/types | package.json | error | + diff --git a/plugins/proxy-node/knip-report.md b/plugins/proxy-node/knip-report.md new file mode 100644 index 0000000000..e7921e52b4 --- /dev/null +++ b/plugins/proxy-node/knip-report.md @@ -0,0 +1,9 @@ +# Knip report + +## Unused devDependencies (2) + +| Name | Location | Severity | +| :---------------------------- | :----------- | :------- | +| @backstage/backend-test-utils | package.json | error | +| @backstage/config | package.json | error | + diff --git a/plugins/scaffolder-backend-module-notifications/knip-report.md b/plugins/scaffolder-backend-module-notifications/knip-report.md new file mode 100644 index 0000000000..9ac53047a7 --- /dev/null +++ b/plugins/scaffolder-backend-module-notifications/knip-report.md @@ -0,0 +1,8 @@ +# Knip report + +## Unused dependencies (1) + +| Name | Location | Severity | +| :------ | :----------- | :------- | +| octokit | package.json | error | + diff --git a/plugins/techdocs-common/knip-report.md b/plugins/techdocs-common/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/plugins/techdocs-common/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + diff --git a/plugins/user-settings-common/knip-report.md b/plugins/user-settings-common/knip-report.md new file mode 100644 index 0000000000..2661c35327 --- /dev/null +++ b/plugins/user-settings-common/knip-report.md @@ -0,0 +1,2 @@ +# Knip report + From 281ef4007a269d6984752c9705ac2bea5b182b1b Mon Sep 17 00:00:00 2001 From: Axel Hecht Date: Thu, 16 Jan 2025 15:38:47 +0100 Subject: [PATCH 10/64] Fix for cli packaging tests Signed-off-by: Axel Hecht --- packages/repo-tools/src/commands/knip-reports/knip-extractor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts index b8bf720bb8..763989f9c7 100644 --- a/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts +++ b/packages/repo-tools/src/commands/knip-reports/knip-extractor.ts @@ -71,6 +71,7 @@ async function generateKnipConfig({ knipConfigPath }: KnipConfigOptions) { 'node_modules/**', 'dist/**', '{fixtures,migrations,templates}/**', + 'src/tests/transforms/__fixtures__/**', // cli packaging tests ], }, }, From b8d72515b6ecf712c92bed41d3687db81aca6eff Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:02:55 +0100 Subject: [PATCH 11/64] Update 02-build-system.md documentation how to run jest tests in intellij Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- docs/tooling/cli/02-build-system.md | 33 +++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index 8f9b086c33..f2a6974b86 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -598,14 +598,35 @@ For your productivity working with unit tests it's quite essential to have your #### IntelliJ IDEA -1. Update Jest configuration template by: +At the moment it's not possible to run jest tests via jest command line. That is, if you run the following command from the project root: +```bash +NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/jest-cli/bin/jest.js --config packages/cli/config/jest.js +``` -- Click on "Edit Configurations" on top panel -- In the modal dialog click on link "Edit configuration templates..." located in the bottom left corner. -- In "Jest package" you have to point to relative path of jest module (it will be suggested by IntelliJ), i.e. `~/proj/backstage/node_modules/jest` -- In "Jest config" point to your jest configuration file, use absolute path for that, i.e. `--config /Users/user/proj/backstage/packages/cli/config/jest.js --runInBand` +You will get an error `Unexpected token 'export'` complaining about one of the imports from the `jest.js` config file. But why does jest work then when running `backstage-cli repo test`? +The reason is that `packages/cli/bin/backstage-cli` first executes `require('@backstage/cli/config/nodeTransform.cjs');` that probably transforms config files so that jest can use them. +Even simply adding `require('@backstage/cli/config/nodeTransform.cjs');` to the beginning of `node_modules/jest/bin/jest.js`, will make jest command line above work. -2. Now you can run any tests by clicking on green arrow located on `describe` or `it`. +Happily, there is a better way to do it, because `backstage-cli repo test` is simply a starter of the `jest-cli` with extra parameters. That is, you can run jest from the command line via `backstage-cli repo test` like this: +```bash +NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/@backstage/cli/bin/backstage-cli repo test +``` + +`backstage-cli` adds `--passWithNoTests --watch --workerIdleMemoryLimit=1000M --config node_modules/@backstage/cli/config/jest.js` jest options. + +So, to run it in intellij do the following: + +1. Update Jest configuration template by: + 1. Click on "Edit Configurations" on top panel + 2. In the modal dialog click on link "Edit configuration templates..." located in the bottom left corner. + 3. "Configuration file": leave empty (`backstage-cli` adds the config) + 4. "Node options": `--no-node-snapshot --experimental-vm-modules` + 5. "Jest package": `~/workspace/backstage/node_modules/@backstage/cli` - the location of the backstage cli package. + 6. "Working directory": `~/workspace/backstage` + 7. "Jest Options": `repo test --runInBand` + 8. "Environment variables": `backstage-cli` adds `--watch` jest option, so if you want your tests to stop after you run them, add `CI=true` + +2. Another issue is that if you right click on the test, intellij will create a playwright configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). So, to run jest tests create a configuration manually, the intellij will pick up the configuration template, provide there the test file. After intellij run tests in the file you can click on the individual tests in the run panel and re-run them, intellij will create a correct jest run configuration. #### VS Code From f929fb1f1a8e6c50c25ab30305edabcd482c434f Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:43:37 +0100 Subject: [PATCH 12/64] Update 02-build-system.md 1. replace intellij with Intellij 2. update config file location Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- docs/tooling/cli/02-build-system.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index f2a6974b86..38a76eacd4 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -600,10 +600,10 @@ For your productivity working with unit tests it's quite essential to have your At the moment it's not possible to run jest tests via jest command line. That is, if you run the following command from the project root: ```bash -NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/jest-cli/bin/jest.js --config packages/cli/config/jest.js +NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/jest-cli/bin/jest.js --config node_modules/@backstage/cli/config/jest.js ``` -You will get an error `Unexpected token 'export'` complaining about one of the imports from the `jest.js` config file. But why does jest work then when running `backstage-cli repo test`? +You will get an error `SyntaxError: Unexpected token 'export'` complaining about one of the imports from the `jest.js` config file. But why does jest work then when running `backstage-cli repo test`? The reason is that `packages/cli/bin/backstage-cli` first executes `require('@backstage/cli/config/nodeTransform.cjs');` that probably transforms config files so that jest can use them. Even simply adding `require('@backstage/cli/config/nodeTransform.cjs');` to the beginning of `node_modules/jest/bin/jest.js`, will make jest command line above work. @@ -614,7 +614,7 @@ NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/@b `backstage-cli` adds `--passWithNoTests --watch --workerIdleMemoryLimit=1000M --config node_modules/@backstage/cli/config/jest.js` jest options. -So, to run it in intellij do the following: +So, to run it in Intellij do the following: 1. Update Jest configuration template by: 1. Click on "Edit Configurations" on top panel @@ -626,7 +626,7 @@ So, to run it in intellij do the following: 7. "Jest Options": `repo test --runInBand` 8. "Environment variables": `backstage-cli` adds `--watch` jest option, so if you want your tests to stop after you run them, add `CI=true` -2. Another issue is that if you right click on the test, intellij will create a playwright configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). So, to run jest tests create a configuration manually, the intellij will pick up the configuration template, provide there the test file. After intellij run tests in the file you can click on the individual tests in the run panel and re-run them, intellij will create a correct jest run configuration. +2. Another issue is that if you right click on the test, Intellij will create a playwright configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). So, to run jest tests create a configuration manually, the Intellij will pick up the configuration template, provide there the test file. After Intellij run tests in the file you can click on the individual tests in the run panel and re-run them, Intellij will create a correct jest run configuration. #### VS Code From 58c950d76bd7c3b8cec7fd779cbcb69b3315cc8c Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:10:08 +0100 Subject: [PATCH 13/64] Update accept.txt added Intellij to vocabulary Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- .github/vale/config/vocabularies/Backstage/accept.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/vale/config/vocabularies/Backstage/accept.txt b/.github/vale/config/vocabularies/Backstage/accept.txt index 34ea8cc894..007dd8b70f 100644 --- a/.github/vale/config/vocabularies/Backstage/accept.txt +++ b/.github/vale/config/vocabularies/Backstage/accept.txt @@ -513,3 +513,5 @@ zoomable zsh scrollable severities +Intellij +intellij From 7e5bc53b3be786f4a4c9ca84977535dd7b9a52a7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 18:15:00 +0000 Subject: [PATCH 14/64] chore(deps): update dependency vite to v5.4.12 [security] Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- storybook/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storybook/yarn.lock b/storybook/yarn.lock index bf7efd0055..68c75b74de 100644 --- a/storybook/yarn.lock +++ b/storybook/yarn.lock @@ -4863,8 +4863,8 @@ __metadata: linkType: hard "vite@npm:^5.4.8": - version: 5.4.11 - resolution: "vite@npm:5.4.11" + version: 5.4.14 + resolution: "vite@npm:5.4.14" dependencies: esbuild: ^0.21.3 fsevents: ~2.3.3 @@ -4901,7 +4901,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 8c5b31d17487b69c40a30419dc0ade9f33360eb6893dbfa33a90980271bd74d35ae550b5cbb2a9e640f0df41ea36fd1bb4f222c98f6d02e607080f20832e69e8 + checksum: 7360661da0415809454ff8809b6666e868ffc3e5ccfbd5fc17425341546cdc3dd3d37c68fcd6ed7305252aaecd0d251ede3745b57aaebd00b8aececc30b6697b languageName: node linkType: hard From 30823949a1b51a010a3e372387fdb7dbe91c8df8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:11:22 +0000 Subject: [PATCH 15/64] chore(deps): update step-security/harden-runner action to v2.10.4 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/api-breaking-changes-comment.yml | 2 +- .github/workflows/api-breaking-changes.yml | 2 +- .github/workflows/automate_area-labels.yml | 2 +- .github/workflows/automate_changeset_feedback.yml | 2 +- .github/workflows/automate_merge_message.yml | 2 +- .github/workflows/automate_stale.yml | 2 +- .github/workflows/ci-noop.yml | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/cron.yml | 2 +- .github/workflows/deploy_docker-image.yml | 2 +- .github/workflows/deploy_microsite.yml | 6 +++--- .github/workflows/deploy_packages.yml | 2 +- .github/workflows/issue.yaml | 2 +- .github/workflows/pr-review-comment-trigger.yaml | 2 +- .github/workflows/pr-review-comment.yaml | 2 +- .github/workflows/pr.yaml | 2 +- .github/workflows/scorecard.yml | 2 +- .github/workflows/sync_canon.yml | 2 +- .github/workflows/sync_code-formatting.yml | 2 +- .github/workflows/sync_dependabot-changesets.yml | 2 +- .github/workflows/sync_release-manifest.yml | 2 +- .github/workflows/sync_renovate-changesets.yml | 2 +- .github/workflows/sync_snyk-github-issues.yml | 2 +- .github/workflows/sync_snyk-monitor.yml | 2 +- .github/workflows/sync_version-packages.yml | 2 +- .github/workflows/verify_accessibility-noop.yml | 2 +- .github/workflows/verify_accessibility.yml | 2 +- .github/workflows/verify_codeql.yml | 2 +- .github/workflows/verify_docs-quality.yml | 2 +- .github/workflows/verify_e2e-linux-noop.yml | 2 +- .github/workflows/verify_e2e-linux.yml | 2 +- .github/workflows/verify_e2e-techdocs.yml | 2 +- .github/workflows/verify_e2e-windows-noop.yml | 2 +- .github/workflows/verify_e2e-windows.yml | 2 +- .github/workflows/verify_fossa.yml | 2 +- .github/workflows/verify_microsite-noop.yml | 2 +- .github/workflows/verify_microsite.yml | 2 +- .github/workflows/verify_microsite_accessibility-noop.yml | 2 +- .github/workflows/verify_microsite_accessibility.yml | 2 +- .github/workflows/verify_storybook-noop.yml | 2 +- .github/workflows/verify_storybook.yml | 2 +- .github/workflows/verify_windows.yml | 2 +- 42 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/api-breaking-changes-comment.yml b/.github/workflows/api-breaking-changes-comment.yml index be66d93fbb..1593417e5d 100644 --- a/.github/workflows/api-breaking-changes-comment.yml +++ b/.github/workflows/api-breaking-changes-comment.yml @@ -22,7 +22,7 @@ jobs: action: ${{ steps.event.outputs.ACTION }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: disable-sudo: true egress-policy: block diff --git a/.github/workflows/api-breaking-changes.yml b/.github/workflows/api-breaking-changes.yml index e9d321d6e5..b5d1284a67 100644 --- a/.github/workflows/api-breaking-changes.yml +++ b/.github/workflows/api-breaking-changes.yml @@ -14,7 +14,7 @@ jobs: if: ${{ github.event_name != 'pull_request' || github.event.action != 'closed' }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/automate_area-labels.yml b/.github/workflows/automate_area-labels.yml index 45125e74d3..ec6dd0c85c 100644 --- a/.github/workflows/automate_area-labels.yml +++ b/.github/workflows/automate_area-labels.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/automate_changeset_feedback.yml b/.github/workflows/automate_changeset_feedback.yml index 4380b900a4..c1245c59b9 100644 --- a/.github/workflows/automate_changeset_feedback.yml +++ b/.github/workflows/automate_changeset_feedback.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/automate_merge_message.yml b/.github/workflows/automate_merge_message.yml index 11e7d6ef47..ebe2ef739d 100644 --- a/.github/workflows/automate_merge_message.yml +++ b/.github/workflows/automate_merge_message.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/automate_stale.yml b/.github/workflows/automate_stale.yml index 453f976ca0..70e4f0061f 100644 --- a/.github/workflows/automate_stale.yml +++ b/.github/workflows/automate_stale.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/ci-noop.yml b/.github/workflows/ci-noop.yml index d51b67d1f9..472a7a4e72 100644 --- a/.github/workflows/ci-noop.yml +++ b/.github/workflows/ci-noop.yml @@ -40,7 +40,7 @@ jobs: name: Test ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcf5ed94a0..eb7349f942 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: name: Install ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit @@ -64,7 +64,7 @@ jobs: name: Verify ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index d47e78f537..b48bd2683d 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -10,7 +10,7 @@ jobs: timeout-minutes: 10 steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/deploy_docker-image.yml b/.github/workflows/deploy_docker-image.yml index 0cbba0d30d..bd936961ec 100644 --- a/.github/workflows/deploy_docker-image.yml +++ b/.github/workflows/deploy_docker-image.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/deploy_microsite.yml b/.github/workflows/deploy_microsite.yml index 2f9510c0cd..8809bf7fc1 100644 --- a/.github/workflows/deploy_microsite.yml +++ b/.github/workflows/deploy_microsite.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit @@ -91,7 +91,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit @@ -158,7 +158,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/deploy_packages.yml b/.github/workflows/deploy_packages.yml index d59bb189d0..7e79cfaf86 100644 --- a/.github/workflows/deploy_packages.yml +++ b/.github/workflows/deploy_packages.yml @@ -147,7 +147,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml index 71fb301aad..8e30170aca 100644 --- a/.github/workflows/issue.yaml +++ b/.github/workflows/issue.yaml @@ -16,7 +16,7 @@ jobs: if: github.repository == 'backstage/backstage' steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/pr-review-comment-trigger.yaml b/.github/workflows/pr-review-comment-trigger.yaml index a9653fe65e..2c6fa3936d 100644 --- a/.github/workflows/pr-review-comment-trigger.yaml +++ b/.github/workflows/pr-review-comment-trigger.yaml @@ -20,7 +20,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/pr-review-comment.yaml b/.github/workflows/pr-review-comment.yaml index c6fd02dd2f..e108f3a4d7 100644 --- a/.github/workflows/pr-review-comment.yaml +++ b/.github/workflows/pr-review-comment.yaml @@ -17,7 +17,7 @@ jobs: steps: # Inspired by https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 08694ee095..ab2630c2d9 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -18,7 +18,7 @@ jobs: if: github.repository == 'backstage/backstage' && ( github.event.pull_request || github.event.issue.pull_request ) steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index acad33eb2f..cca684def7 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_canon.yml b/.github/workflows/sync_canon.yml index d3593fc017..a8d2f32866 100644 --- a/.github/workflows/sync_canon.yml +++ b/.github/workflows/sync_canon.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_code-formatting.yml b/.github/workflows/sync_code-formatting.yml index d7d4616202..34c0ab7241 100644 --- a/.github/workflows/sync_code-formatting.yml +++ b/.github/workflows/sync_code-formatting.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_dependabot-changesets.yml b/.github/workflows/sync_dependabot-changesets.yml index e357c2b0d0..42efaa1142 100644 --- a/.github/workflows/sync_dependabot-changesets.yml +++ b/.github/workflows/sync_dependabot-changesets.yml @@ -11,7 +11,7 @@ jobs: if: github.actor == 'dependabot[bot]' && github.repository == 'backstage/backstage' steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_release-manifest.yml b/.github/workflows/sync_release-manifest.yml index 52594d58e6..ca7454eaf0 100644 --- a/.github/workflows/sync_release-manifest.yml +++ b/.github/workflows/sync_release-manifest.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_renovate-changesets.yml b/.github/workflows/sync_renovate-changesets.yml index b87b4c4752..2eb8f13dbc 100644 --- a/.github/workflows/sync_renovate-changesets.yml +++ b/.github/workflows/sync_renovate-changesets.yml @@ -11,7 +11,7 @@ jobs: if: github.actor == 'renovate[bot]' && github.repository == 'backstage/backstage' steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_snyk-github-issues.yml b/.github/workflows/sync_snyk-github-issues.yml index 2252aa0ddb..5c94458e1d 100644 --- a/.github/workflows/sync_snyk-github-issues.yml +++ b/.github/workflows/sync_snyk-github-issues.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_snyk-monitor.yml b/.github/workflows/sync_snyk-monitor.yml index c21b0bbff1..b965654fb9 100644 --- a/.github/workflows/sync_snyk-monitor.yml +++ b/.github/workflows/sync_snyk-monitor.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/sync_version-packages.yml b/.github/workflows/sync_version-packages.yml index a2faaa10a3..36e31565b9 100644 --- a/.github/workflows/sync_version-packages.yml +++ b/.github/workflows/sync_version-packages.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_accessibility-noop.yml b/.github/workflows/verify_accessibility-noop.yml index d637788814..c33acfd86d 100644 --- a/.github/workflows/verify_accessibility-noop.yml +++ b/.github/workflows/verify_accessibility-noop.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_accessibility.yml b/.github/workflows/verify_accessibility.yml index b9eb7f1bec..01c833e743 100644 --- a/.github/workflows/verify_accessibility.yml +++ b/.github/workflows/verify_accessibility.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_codeql.yml b/.github/workflows/verify_codeql.yml index 5b3aa7479a..8e6df410ae 100644 --- a/.github/workflows/verify_codeql.yml +++ b/.github/workflows/verify_codeql.yml @@ -42,7 +42,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_docs-quality.yml b/.github/workflows/verify_docs-quality.yml index dab2f421b5..a3b80f498a 100644 --- a/.github/workflows/verify_docs-quality.yml +++ b/.github/workflows/verify_docs-quality.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_e2e-linux-noop.yml b/.github/workflows/verify_e2e-linux-noop.yml index 94ad720d51..65fc6eccc9 100644 --- a/.github/workflows/verify_e2e-linux-noop.yml +++ b/.github/workflows/verify_e2e-linux-noop.yml @@ -29,7 +29,7 @@ jobs: name: E2E Linux ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_e2e-linux.yml b/.github/workflows/verify_e2e-linux.yml index 69d1d2eb4b..69d16c1878 100644 --- a/.github/workflows/verify_e2e-linux.yml +++ b/.github/workflows/verify_e2e-linux.yml @@ -43,7 +43,7 @@ jobs: name: E2E Linux ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_e2e-techdocs.yml b/.github/workflows/verify_e2e-techdocs.yml index 4d4b32eaef..3d95749ff9 100644 --- a/.github/workflows/verify_e2e-techdocs.yml +++ b/.github/workflows/verify_e2e-techdocs.yml @@ -32,7 +32,7 @@ jobs: name: Techdocs steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_e2e-windows-noop.yml b/.github/workflows/verify_e2e-windows-noop.yml index 269e70d8b4..e713f33ed6 100644 --- a/.github/workflows/verify_e2e-windows-noop.yml +++ b/.github/workflows/verify_e2e-windows-noop.yml @@ -25,7 +25,7 @@ jobs: name: E2E Windows ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_e2e-windows.yml b/.github/workflows/verify_e2e-windows.yml index b9d76da02a..e656ea390c 100644 --- a/.github/workflows/verify_e2e-windows.yml +++ b/.github/workflows/verify_e2e-windows.yml @@ -33,7 +33,7 @@ jobs: name: E2E Windows ${{ matrix.node-version }} steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_fossa.yml b/.github/workflows/verify_fossa.yml index 1b85a9469b..7bc612bf64 100644 --- a/.github/workflows/verify_fossa.yml +++ b/.github/workflows/verify_fossa.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_microsite-noop.yml b/.github/workflows/verify_microsite-noop.yml index 63e759f0ba..da4bc6ba25 100644 --- a/.github/workflows/verify_microsite-noop.yml +++ b/.github/workflows/verify_microsite-noop.yml @@ -21,7 +21,7 @@ jobs: name: Microsite steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_microsite.yml b/.github/workflows/verify_microsite.yml index c4a2934c57..4cbff13185 100644 --- a/.github/workflows/verify_microsite.yml +++ b/.github/workflows/verify_microsite.yml @@ -24,7 +24,7 @@ jobs: name: Microsite steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_microsite_accessibility-noop.yml b/.github/workflows/verify_microsite_accessibility-noop.yml index 2640c215a1..d6f9d24b5e 100644 --- a/.github/workflows/verify_microsite_accessibility-noop.yml +++ b/.github/workflows/verify_microsite_accessibility-noop.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_microsite_accessibility.yml b/.github/workflows/verify_microsite_accessibility.yml index 008895357f..0cdf9c040e 100644 --- a/.github/workflows/verify_microsite_accessibility.yml +++ b/.github/workflows/verify_microsite_accessibility.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_storybook-noop.yml b/.github/workflows/verify_storybook-noop.yml index 4bb54136ab..392a218a83 100644 --- a/.github/workflows/verify_storybook-noop.yml +++ b/.github/workflows/verify_storybook-noop.yml @@ -28,7 +28,7 @@ jobs: name: Storybook steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_storybook.yml b/.github/workflows/verify_storybook.yml index c43ed0c622..9bd6c891c9 100644 --- a/.github/workflows/verify_storybook.yml +++ b/.github/workflows/verify_storybook.yml @@ -28,7 +28,7 @@ jobs: name: Storybook steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit diff --git a/.github/workflows/verify_windows.yml b/.github/workflows/verify_windows.yml index 1eee6e61f3..c0fb3c1ef2 100644 --- a/.github/workflows/verify_windows.yml +++ b/.github/workflows/verify_windows.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3 + uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 with: egress-policy: audit From bfeec270b216393059c573d39859963f0e9f87d6 Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:07:35 +0100 Subject: [PATCH 16/64] Update accept.txt add intellij variant Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- .github/vale/config/vocabularies/Backstage/accept.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/vale/config/vocabularies/Backstage/accept.txt b/.github/vale/config/vocabularies/Backstage/accept.txt index 007dd8b70f..752fb04fa3 100644 --- a/.github/vale/config/vocabularies/Backstage/accept.txt +++ b/.github/vale/config/vocabularies/Backstage/accept.txt @@ -515,3 +515,4 @@ scrollable severities Intellij intellij +IntelliJ From 75defba1e8a2b725efd582e9a3bc58ea71907be6 Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:27:11 +0100 Subject: [PATCH 17/64] Update 02-build-system.md Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- docs/tooling/cli/02-build-system.md | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index 38a76eacd4..52853d353f 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -596,25 +596,34 @@ Caching is used sparingly throughout the Backstage build system. It is always us For your productivity working with unit tests it's quite essential to have your debugging configured in IDE. It will help you to identify the root cause of the issue faster. -#### IntelliJ IDEA +#### Preface At the moment it's not possible to run jest tests via jest command line. That is, if you run the following command from the project root: ```bash NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/jest-cli/bin/jest.js --config node_modules/@backstage/cli/config/jest.js ``` -You will get an error `SyntaxError: Unexpected token 'export'` complaining about one of the imports from the `jest.js` config file. But why does jest work then when running `backstage-cli repo test`? -The reason is that `packages/cli/bin/backstage-cli` first executes `require('@backstage/cli/config/nodeTransform.cjs');` that probably transforms config files so that jest can use them. -Even simply adding `require('@backstage/cli/config/nodeTransform.cjs');` to the beginning of `node_modules/jest/bin/jest.js`, will make jest command line above work. +You will get an error `SyntaxError: Unexpected token 'export'` complaining about one of the imports from the `node_modules/@backstage/cli/config/jest.js` config file. +But why does jest work then when running `backstage-cli repo test`? +The reason is that `packages/cli/bin/backstage-cli` first executes `require('@backstage/cli/config/nodeTransform.cjs');` that probably transforms config files so that jest can digest them. +Even simply adding `require('@backstage/cli/config/nodeTransform.cjs');` to the beginning of `node_modules/jest/bin/jest.js`, will make jest work in the script above. Happily, there is a better way to do it, because `backstage-cli repo test` is simply a starter of the `jest-cli` with extra parameters. That is, you can run jest from the command line via `backstage-cli repo test` like this: ```bash +NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node_modules/.bin/backstage-cli repo test +``` +or +```bash NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/@backstage/cli/bin/backstage-cli repo test ``` + `backstage-cli` adds `--passWithNoTests --watch --workerIdleMemoryLimit=1000M --config node_modules/@backstage/cli/config/jest.js` jest options. -So, to run it in Intellij do the following: +With that in mind, let's configure IDE's to run `backstage-cli` in the role of jest. + + +#### IntelliJ IDEA 1. Update Jest configuration template by: 1. Click on "Edit Configurations" on top panel @@ -623,16 +632,17 @@ So, to run it in Intellij do the following: 4. "Node options": `--no-node-snapshot --experimental-vm-modules` 5. "Jest package": `~/workspace/backstage/node_modules/@backstage/cli` - the location of the backstage cli package. 6. "Working directory": `~/workspace/backstage` - 7. "Jest Options": `repo test --runInBand` - 8. "Environment variables": `backstage-cli` adds `--watch` jest option, so if you want your tests to stop after you run them, add `CI=true` + 7. "Jest Options": `repo test --runInBand --watch=false` -2. Another issue is that if you right click on the test, Intellij will create a playwright configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). So, to run jest tests create a configuration manually, the Intellij will pick up the configuration template, provide there the test file. After Intellij run tests in the file you can click on the individual tests in the run panel and re-run them, Intellij will create a correct jest run configuration. +2. Currently intellij has an issue that if you right click on a jest test and press "run", intellij will create a playwright run configuration instead of jest configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). + + Until intellij maintainers resolved the issue, create a jest configuration manually. Happily, intellij will pre-fill the configuration from the template. The only thing you need to do is provide path to the test file. Note, that after intellij runs test in the file you can click on the individual tests from the run panel and re-run them, this time intellij will create a correct jest run configuration. #### VS Code ```jsonc { - "jest.jestCommandLine": "node_modules/.bin/jest --config node_modules/@backstage/cli/config/jest.js", + "jest.jestCommandLine": "node_modules/.bin/backstage-cli --config node_modules/@backstage/cli/config/jest.js", // In a large repo like the Backstage main repo you likely want to disable // watch mode and the initial test run too, leaving just manual and perhaps // on-save test runs in place. From d6b60319a6bb2e839a84e06113394f5cfd76ca78 Mon Sep 17 00:00:00 2001 From: Felipe Gomes <38052139+felipecafu95@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:21:06 -0300 Subject: [PATCH 18/64] feat: Add VR to Adopters list Signed-off-by: Felipe Gomes <38052139+felipecafu95@users.noreply.github.com> --- ADOPTERS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADOPTERS.md b/ADOPTERS.md index 1eacd4c104..47def5b99d 100644 --- a/ADOPTERS.md +++ b/ADOPTERS.md @@ -282,4 +282,4 @@ _You can do this by using the [Adopter form](https://info.backstage.spotify.com/ | [Axelerant](https://www.axelerant.com/) | [Zeshan Ziya](https://github.com/zeshanziya) | Developer portal, main gateway to infrastructure, documentation, internal tooling, and service catalog with a focus on project visibility. | [KnowBe4](https://www.knowbe4.com) | [Brandon Vicinus](https://www.linkedin.com/in/bvicinus/) | Internal Developer Portal managed by the Developer Experience Team. IDP hosts many different internal tools as plugins created by multiple teams, many of which are directly integrated with the Service Catalog. | | [Scalepoint](https://scalepoint.com) | [Yuriy Ostapenko](https://github.com/yuriyostapenko), [Dmytro Pasko](https://github.com/dimapasko), [Yuri Sedykh ](https://github.com/yuiri-sedykh), [Bartosz Wisniewski](https://github.com/Epgor) | Internal Developer Portal: Software Catalog with infrastructure resources and dependencies, Software Templates, TechDocs, Tech Radar, Kubernetes and Observability, as well as custom CI/CD components | - +| [VR](https://www.vr.com.br) | [Felipe Gomes](https://github.com/felipecafu95), [Tiago Garcia](https://github.com/tiagogba) | Internal portal for development squads, service catalog, documentation hub, and application mapping for the entire company ecosystem, simplifying cloud infrastructure construction through templates. | From 452f0a28b762f84a38615625a4903ee7045b19ab Mon Sep 17 00:00:00 2001 From: Felipe Gomes <38052139+felipecafu95@users.noreply.github.com> Date: Sun, 26 Jan 2025 09:30:50 -0300 Subject: [PATCH 19/64] (Changed) Updating profile urls Signed-off-by: Felipe Gomes <38052139+felipecafu95@users.noreply.github.com> --- ADOPTERS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADOPTERS.md b/ADOPTERS.md index 47def5b99d..3d6ef63267 100644 --- a/ADOPTERS.md +++ b/ADOPTERS.md @@ -282,4 +282,4 @@ _You can do this by using the [Adopter form](https://info.backstage.spotify.com/ | [Axelerant](https://www.axelerant.com/) | [Zeshan Ziya](https://github.com/zeshanziya) | Developer portal, main gateway to infrastructure, documentation, internal tooling, and service catalog with a focus on project visibility. | [KnowBe4](https://www.knowbe4.com) | [Brandon Vicinus](https://www.linkedin.com/in/bvicinus/) | Internal Developer Portal managed by the Developer Experience Team. IDP hosts many different internal tools as plugins created by multiple teams, many of which are directly integrated with the Service Catalog. | | [Scalepoint](https://scalepoint.com) | [Yuriy Ostapenko](https://github.com/yuriyostapenko), [Dmytro Pasko](https://github.com/dimapasko), [Yuri Sedykh ](https://github.com/yuiri-sedykh), [Bartosz Wisniewski](https://github.com/Epgor) | Internal Developer Portal: Software Catalog with infrastructure resources and dependencies, Software Templates, TechDocs, Tech Radar, Kubernetes and Observability, as well as custom CI/CD components | -| [VR](https://www.vr.com.br) | [Felipe Gomes](https://github.com/felipecafu95), [Tiago Garcia](https://github.com/tiagogba) | Internal portal for development squads, service catalog, documentation hub, and application mapping for the entire company ecosystem, simplifying cloud infrastructure construction through templates. | +| [VR](https://www.vr.com.br) | [Felipe Gomes](https://www.linkedin.com/in/felipe-gomes-da-silva), [Tiago Garcia](https://www.linkedin.com/in/tiago-garcia-6301a925) | Internal portal for development squads, service catalog, documentation hub, and application mapping for the entire company ecosystem, simplifying cloud infrastructure construction through templates. | From 0d390299eed48f6241564da79dcf53ec27efc1e3 Mon Sep 17 00:00:00 2001 From: Fabio Valente <8777512+fabiojvalente@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:26:33 +0000 Subject: [PATCH 20/64] Do not use etag or if-modified-since for gitlab artifacts urls Signed-off-by: Fabio Valente <8777512+fabiojvalente@users.noreply.github.com> --- .changeset/plenty-bobcats-drum.md | 5 +++++ .../src/entrypoints/urlReader/lib/GitlabUrlReader.ts | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changeset/plenty-bobcats-drum.md diff --git a/.changeset/plenty-bobcats-drum.md b/.changeset/plenty-bobcats-drum.md new file mode 100644 index 0000000000..045b0befa8 --- /dev/null +++ b/.changeset/plenty-bobcats-drum.md @@ -0,0 +1,5 @@ +--- +'@backstage/backend-defaults': minor +--- + +Do not send etag or If-Modified-Since headers for gitlab artifact urls diff --git a/packages/backend-defaults/src/entrypoints/urlReader/lib/GitlabUrlReader.ts b/packages/backend-defaults/src/entrypoints/urlReader/lib/GitlabUrlReader.ts index 77a8d31623..caf96b877c 100644 --- a/packages/backend-defaults/src/entrypoints/urlReader/lib/GitlabUrlReader.ts +++ b/packages/backend-defaults/src/entrypoints/urlReader/lib/GitlabUrlReader.ts @@ -74,6 +74,7 @@ export class GitlabUrlReader implements UrlReaderService { options?: UrlReaderServiceReadUrlOptions, ): Promise { const { etag, lastModifiedAfter, signal, token } = options ?? {}; + const isArtifact = url.includes('/-/jobs/artifacts/'); const builtUrl = await this.getGitlabFetchUrl(url); let response: Response; @@ -81,10 +82,11 @@ export class GitlabUrlReader implements UrlReaderService { response = await fetch(builtUrl, { headers: { ...getGitLabRequestOptions(this.integration.config, token).headers, - ...(etag && { 'If-None-Match': etag }), - ...(lastModifiedAfter && { - 'If-Modified-Since': lastModifiedAfter.toUTCString(), - }), + ...(etag && !isArtifact && { 'If-None-Match': etag }), + ...(lastModifiedAfter && + !isArtifact && { + 'If-Modified-Since': lastModifiedAfter.toUTCString(), + }), }, // TODO(freben): The signal cast is there because pre-3.x versions of // node-fetch have a very slightly deviating AbortSignal type signature. From 1b9b0a13a7758fb9caca8a0f86161c414773f2a3 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 28 Jan 2025 09:42:26 +0100 Subject: [PATCH 21/64] chore: fixing changeset Signed-off-by: blam --- .changeset/plenty-bobcats-drum.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/plenty-bobcats-drum.md b/.changeset/plenty-bobcats-drum.md index 045b0befa8..f4312401f5 100644 --- a/.changeset/plenty-bobcats-drum.md +++ b/.changeset/plenty-bobcats-drum.md @@ -1,5 +1,5 @@ --- -'@backstage/backend-defaults': minor +'@backstage/backend-defaults': patch --- -Do not send etag or If-Modified-Since headers for gitlab artifact urls +Do not send `etag` or `If-Modified-Since` headers for gitlab artifact urls From 901b5046afc5e14ee4372244dea80edd7909a9ee Mon Sep 17 00:00:00 2001 From: Gasan Guseinov Date: Tue, 28 Jan 2025 13:08:13 +0100 Subject: [PATCH 22/64] case insensitive intellij spelling Signed-off-by: Gasan Guseinov --- .github/vale/config/vocabularies/Backstage/accept.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/vale/config/vocabularies/Backstage/accept.txt b/.github/vale/config/vocabularies/Backstage/accept.txt index 752fb04fa3..8af842d7f5 100644 --- a/.github/vale/config/vocabularies/Backstage/accept.txt +++ b/.github/vale/config/vocabularies/Backstage/accept.txt @@ -513,6 +513,4 @@ zoomable zsh scrollable severities -Intellij intellij -IntelliJ From f6c927fa7c5bca6cacbf94e9390eb51924329f2b Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Tue, 28 Jan 2025 13:09:52 +0100 Subject: [PATCH 23/64] Update docs/tooling/cli/02-build-system.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- docs/tooling/cli/02-build-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index 52853d353f..048251d26d 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -620,7 +620,7 @@ NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/@b `backstage-cli` adds `--passWithNoTests --watch --workerIdleMemoryLimit=1000M --config node_modules/@backstage/cli/config/jest.js` jest options. -With that in mind, let's configure IDE's to run `backstage-cli` in the role of jest. +With that in mind, let's configure IDEs to run `backstage-cli` in the role of jest. #### IntelliJ IDEA From 87f2f3862c3dc1856a88e83c17623176c6593fb4 Mon Sep 17 00:00:00 2001 From: Gasan Guseinov Date: Tue, 28 Jan 2025 13:35:50 +0100 Subject: [PATCH 24/64] update doc Signed-off-by: Gasan Guseinov --- docs/tooling/cli/02-build-system.md | 32 ++++++----------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index 048251d26d..0843dec2a5 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -596,36 +596,16 @@ Caching is used sparingly throughout the Backstage build system. It is always us For your productivity working with unit tests it's quite essential to have your debugging configured in IDE. It will help you to identify the root cause of the issue faster. -#### Preface - -At the moment it's not possible to run jest tests via jest command line. That is, if you run the following command from the project root: -```bash -NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/jest-cli/bin/jest.js --config node_modules/@backstage/cli/config/jest.js -``` - -You will get an error `SyntaxError: Unexpected token 'export'` complaining about one of the imports from the `node_modules/@backstage/cli/config/jest.js` config file. -But why does jest work then when running `backstage-cli repo test`? -The reason is that `packages/cli/bin/backstage-cli` first executes `require('@backstage/cli/config/nodeTransform.cjs');` that probably transforms config files so that jest can digest them. -Even simply adding `require('@backstage/cli/config/nodeTransform.cjs');` to the beginning of `node_modules/jest/bin/jest.js`, will make jest work in the script above. - -Happily, there is a better way to do it, because `backstage-cli repo test` is simply a starter of the `jest-cli` with extra parameters. That is, you can run jest from the command line via `backstage-cli repo test` like this: -```bash -NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node_modules/.bin/backstage-cli repo test -``` -or -```bash -NODE_OPTIONS='--no-node-snapshot --experimental-vm-modules' node node_modules/@backstage/cli/bin/backstage-cli repo test -``` - - -`backstage-cli` adds `--passWithNoTests --watch --workerIdleMemoryLimit=1000M --config node_modules/@backstage/cli/config/jest.js` jest options. - -With that in mind, let's configure IDEs to run `backstage-cli` in the role of jest. +We cannot execute tests with just raw `jest`, because there are a few concerns such as module transforms that need to be in place for the `jest` runtime to be happy. +Therefore, we delegate to the Backstage CLI to wrap the jest run for us, since it knows how to put those things in place. +This aligns things so that your in-IDE test runs work the same way as your CI and manual command line test runs do. +With that in mind, here are some IDEs configurations to run backstage components' `jest` tests with `backstage-cli` in the role of `jest`. #### IntelliJ IDEA 1. Update Jest configuration template by: + 1. Click on "Edit Configurations" on top panel 2. In the modal dialog click on link "Edit configuration templates..." located in the bottom left corner. 3. "Configuration file": leave empty (`backstage-cli` adds the config) @@ -634,7 +614,7 @@ With that in mind, let's configure IDEs to run `backstage-cli` in the role of je 6. "Working directory": `~/workspace/backstage` 7. "Jest Options": `repo test --runInBand --watch=false` -2. Currently intellij has an issue that if you right click on a jest test and press "run", intellij will create a playwright run configuration instead of jest configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). +2. Currently, intellij has an issue that if you right-click on a jest test and press "run", intellij will create a playwright run configuration instead of jest configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). Until intellij maintainers resolved the issue, create a jest configuration manually. Happily, intellij will pre-fill the configuration from the template. The only thing you need to do is provide path to the test file. Note, that after intellij runs test in the file you can click on the individual tests from the run panel and re-run them, this time intellij will create a correct jest run configuration. From 7e610194656be44921fc32135dbeaf15c9ea88ea Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:15:46 +0100 Subject: [PATCH 25/64] Update docs/tooling/cli/02-build-system.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- docs/tooling/cli/02-build-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index 0843dec2a5..e34eb85b0a 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -622,7 +622,7 @@ With that in mind, here are some IDEs configurations to run backstage components ```jsonc { - "jest.jestCommandLine": "node_modules/.bin/backstage-cli --config node_modules/@backstage/cli/config/jest.js", + "jest.jestCommandLine": "yarn test", // In a large repo like the Backstage main repo you likely want to disable // watch mode and the initial test run too, leaving just manual and perhaps // on-save test runs in place. From 182120afd53b8cddb19f3f29d94d7f435d5ae72e Mon Sep 17 00:00:00 2001 From: Gasan <465806+gusega@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:16:05 +0100 Subject: [PATCH 26/64] Update docs/tooling/cli/02-build-system.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Gasan <465806+gusega@users.noreply.github.com> --- docs/tooling/cli/02-build-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tooling/cli/02-build-system.md b/docs/tooling/cli/02-build-system.md index e34eb85b0a..6a03df9607 100644 --- a/docs/tooling/cli/02-build-system.md +++ b/docs/tooling/cli/02-build-system.md @@ -616,7 +616,7 @@ With that in mind, here are some IDEs configurations to run backstage components 2. Currently, intellij has an issue that if you right-click on a jest test and press "run", intellij will create a playwright run configuration instead of jest configuration, see [WEB-67720](https://youtrack.jetbrains.com/issue/WEB-67720/Jest-test-runs-as-playwright-test). - Until intellij maintainers resolved the issue, create a jest configuration manually. Happily, intellij will pre-fill the configuration from the template. The only thing you need to do is provide path to the test file. Note, that after intellij runs test in the file you can click on the individual tests from the run panel and re-run them, this time intellij will create a correct jest run configuration. + Until intellij maintainers resolve the issue, create a jest configuration manually. Happily, intellij will pre-fill the configuration from the template. The only thing you need to do is provide a path to the test file. Note, that after intellij runs test in the file you can click on the individual tests from the run panel and re-run them, this time intellij will create a correct jest run configuration. #### VS Code From 656f67b49187f5ee111fd3fa4c29c761f10a01d8 Mon Sep 17 00:00:00 2001 From: Bogdan Nechyporenko Date: Tue, 28 Jan 2025 22:52:15 +0100 Subject: [PATCH 27/64] Reverted the validation in depenendencies in scaffolder Signed-off-by: Bogdan Nechyporenko --- .changeset/bright-carrots-care.md | 5 ++ .../Stepper/createAsyncValidators.test.ts | 58 ------------------- .../Stepper/createAsyncValidators.ts | 20 ------- 3 files changed, 5 insertions(+), 78 deletions(-) create mode 100644 .changeset/bright-carrots-care.md diff --git a/.changeset/bright-carrots-care.md b/.changeset/bright-carrots-care.md new file mode 100644 index 0000000000..84000ffb5c --- /dev/null +++ b/.changeset/bright-carrots-care.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-react': patch +--- + +Reverted the validation in depenendencies in scaffolder diff --git a/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.test.ts b/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.test.ts index 02e15ec53b..f4dab376bc 100644 --- a/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.test.ts +++ b/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.test.ts @@ -435,62 +435,4 @@ describe('createAsyncValidators', () => { expect(validators.CustomLinkField).toHaveBeenCalled(); }); - - it('should validate field in the dependencies in an array field', async () => { - const schema: JsonObject = { - title: 'Make a choice', - properties: { - myArray: { - type: 'array', - title: 'Array', - items: { - type: 'object', - required: ['selector'], - properties: { - selector: { - title: 'Selector', - type: 'string', - enum: ['Choice 1', 'Choice 2'], - }, - }, - dependencies: { - selector: { - oneOf: [ - { properties: { selector: { enum: ['Choice 1'] } } }, - { - properties: { - selector: { enum: ['Choice 2'] }, - customValidatedField: { - title: 'Custom validated field', - type: 'string', - 'ui:field': 'ValidateKebabCase', - }, - }, - }, - ], - }, - }, - }, - }, - }, - }; - - const validators = { ValidateKebabCase: jest.fn() }; - - const validate = createAsyncValidators(schema, validators, { - apiHolder: { get: jest.fn() }, - }); - - await validate({ - myArray: [ - { - selector: 'Choice 2', - customValidatedField: 'apple', - }, - { selector: 'Choice 1' }, - ], - }); - - expect(validators.ValidateKebabCase).toHaveBeenCalled(); - }); }); diff --git a/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.ts b/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.ts index b8ae3a6dfd..d11d0b9b3b 100644 --- a/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.ts +++ b/plugins/scaffolder-react/src/next/components/Stepper/createAsyncValidators.ts @@ -135,26 +135,6 @@ export const createAsyncValidators = ( for (const [, propValue] of Object.entries(properties)) { await doValidate(propValue); } - if (Array.isArray(value)) { - for (const [_, v] of Object.entries(value)) { - const { schema: itemSchema, uiSchema: itemUiSchema } = - extractSchemaFromStep(definitionInSchema.items); - - if (isObject(v)) { - for (const [pK, pV] of Object.entries(v)) { - if ('ui:field' in itemUiSchema[pK]) { - await validateForm( - itemUiSchema[pK]['ui:field'], - pK, - pV, - itemSchema, - itemUiSchema, - ); - } - } - } - } - } } else if (isObject(value)) { formValidation[key] = await validate(formData, pointer, value); } From 3fb2a0e718ab0c8f901347dc25d4191f86d35441 Mon Sep 17 00:00:00 2001 From: Ben Lambert Date: Wed, 29 Jan 2025 08:32:06 +0100 Subject: [PATCH 28/64] Fix typo in changeset description Signed-off-by: blam --- .changeset/bright-carrots-care.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/bright-carrots-care.md b/.changeset/bright-carrots-care.md index 84000ffb5c..7f43aa4b75 100644 --- a/.changeset/bright-carrots-care.md +++ b/.changeset/bright-carrots-care.md @@ -2,4 +2,4 @@ '@backstage/plugin-scaffolder-react': patch --- -Reverted the validation in depenendencies in scaffolder +Reverted the validation in dependencies in scaffolder From 1283f06583c1aef3e92105655bbc381f35b39349 Mon Sep 17 00:00:00 2001 From: Andreea Ros Date: Sat, 28 Dec 2024 13:00:36 +0200 Subject: [PATCH 29/64] Added ajv and immer peer dependencies to plugin-scaffolder-react Signed-off-by: Andreea Ros --- .changeset/metal-worms-live.md | 5 +++++ plugins/scaffolder-react/package.json | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/metal-worms-live.md diff --git a/.changeset/metal-worms-live.md b/.changeset/metal-worms-live.md new file mode 100644 index 0000000000..1a15ee4c6c --- /dev/null +++ b/.changeset/metal-worms-live.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-react': patch +--- + +Added missing ajv and immer peer dependencies to plugin-scaffolder-react diff --git a/plugins/scaffolder-react/package.json b/plugins/scaffolder-react/package.json index 3640a88905..7923c4e912 100644 --- a/plugins/scaffolder-react/package.json +++ b/plugins/scaffolder-react/package.json @@ -114,6 +114,8 @@ }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", + "ajv": "^8.0.1", + "immer": "^8.0.0", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0", "react-router-dom": "^6.3.0" From 5e44aa812ac69215a89477f08b61a443f8b26d32 Mon Sep 17 00:00:00 2001 From: Andreea Ros Date: Sat, 28 Dec 2024 14:11:25 +0200 Subject: [PATCH 30/64] Update changeset to fix vale spelling warning Signed-off-by: Andreea Ros --- .changeset/metal-worms-live.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/metal-worms-live.md b/.changeset/metal-worms-live.md index 1a15ee4c6c..4a90ba8923 100644 --- a/.changeset/metal-worms-live.md +++ b/.changeset/metal-worms-live.md @@ -2,4 +2,4 @@ '@backstage/plugin-scaffolder-react': patch --- -Added missing ajv and immer peer dependencies to plugin-scaffolder-react +Added missing `ajv` and `immer` peer dependencies to plugin-scaffolder-react From 264e1d635bc2e75063b0ceb2793e90f0e74649f5 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 28 Jan 2025 09:16:22 +0100 Subject: [PATCH 31/64] chore: Fix peer deps warnings Signed-off-by: blam --- .changeset/metal-worms-live.md | 2 +- plugins/scaffolder-react/package.json | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.changeset/metal-worms-live.md b/.changeset/metal-worms-live.md index 4a90ba8923..accb4d7a13 100644 --- a/.changeset/metal-worms-live.md +++ b/.changeset/metal-worms-live.md @@ -2,4 +2,4 @@ '@backstage/plugin-scaffolder-react': patch --- -Added missing `ajv` and `immer` peer dependencies to plugin-scaffolder-react +Added missing `ajv` and `immer` dependencies to `@backstage/plugin-scaffolder-react` diff --git a/plugins/scaffolder-react/package.json b/plugins/scaffolder-react/package.json index 7923c4e912..3640a88905 100644 --- a/plugins/scaffolder-react/package.json +++ b/plugins/scaffolder-react/package.json @@ -114,8 +114,6 @@ }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", - "ajv": "^8.0.1", - "immer": "^8.0.0", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0", "react-router-dom": "^6.3.0" From 4b33c25dce9630c43b6a22a0b86885cda1eb1656 Mon Sep 17 00:00:00 2001 From: blam Date: Wed, 29 Jan 2025 08:43:52 +0100 Subject: [PATCH 32/64] chore: fix Signed-off-by: blam --- plugins/scaffolder-react/package.json | 2 ++ yarn.lock | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/scaffolder-react/package.json b/plugins/scaffolder-react/package.json index 3640a88905..a4dd6a521f 100644 --- a/plugins/scaffolder-react/package.json +++ b/plugins/scaffolder-react/package.json @@ -78,10 +78,12 @@ "@rjsf/utils": "5.23.2", "@rjsf/validator-ajv8": "5.23.2", "@types/json-schema": "^7.0.9", + "ajv": "^8.0.1", "ajv-errors": "^3.0.0", "classnames": "^2.2.6", "flatted": "3.3.2", "humanize-duration": "^3.25.1", + "immer": "^8.0.0", "json-schema": "^0.4.0", "json-schema-library": "^9.0.0", "lodash": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index dc111a729b..dc849f5dc7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7865,10 +7865,12 @@ __metadata: "@types/json-schema": ^7.0.9 "@types/luxon": ^3.0.0 "@types/react": ^18.0.0 + ajv: ^8.0.1 ajv-errors: ^3.0.0 classnames: ^2.2.6 flatted: 3.3.2 humanize-duration: ^3.25.1 + immer: ^8.0.0 json-schema: ^0.4.0 json-schema-library: ^9.0.0 lodash: ^4.17.21 @@ -22702,7 +22704,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:8.17.1, ajv@npm:^8.0.0, ajv@npm:^8.10.0, ajv@npm:^8.11.0, ajv@npm:^8.12.0, ajv@npm:^8.16.0, ajv@npm:^8.17.1, ajv@npm:^8.6.0, ajv@npm:^8.6.3, ajv@npm:^8.9.0": +"ajv@npm:8.17.1, ajv@npm:^8.0.0, ajv@npm:^8.0.1, ajv@npm:^8.10.0, ajv@npm:^8.11.0, ajv@npm:^8.12.0, ajv@npm:^8.16.0, ajv@npm:^8.17.1, ajv@npm:^8.6.0, ajv@npm:^8.6.3, ajv@npm:^8.9.0": version: 8.17.1 resolution: "ajv@npm:8.17.1" dependencies: @@ -31862,6 +31864,13 @@ __metadata: languageName: node linkType: hard +"immer@npm:^8.0.0": + version: 8.0.4 + resolution: "immer@npm:8.0.4" + checksum: 9d3b28df1ac5bf6918c611e71c15bdb136588c21a3431100448f21325fef9b055cc9a44fe8b023f0c5ecbc66a2ba38f403c9a67d581f613b49d0e4ff15564f79 + languageName: node + linkType: hard + "immer@npm:^9.0.6, immer@npm:^9.0.7": version: 9.0.21 resolution: "immer@npm:9.0.21" From a35118f0a516165c69396f24384e5fa547d96c08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:09:41 +0000 Subject: [PATCH 33/64] build(deps): bump immer from 8.0.4 to 9.0.6 Bumps [immer](https://github.com/immerjs/immer) from 8.0.4 to 9.0.6. - [Release notes](https://github.com/immerjs/immer/releases) - [Commits](https://github.com/immerjs/immer/compare/v8.0.4...v9.0.6) --- updated-dependencies: - dependency-name: immer dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .changeset/dependabot-f80f563.md | 5 +++++ plugins/scaffolder-react/package.json | 2 +- yarn.lock | 9 +-------- 3 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 .changeset/dependabot-f80f563.md diff --git a/.changeset/dependabot-f80f563.md b/.changeset/dependabot-f80f563.md new file mode 100644 index 0000000000..6da2296b31 --- /dev/null +++ b/.changeset/dependabot-f80f563.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-react': patch +--- + +build(deps): bump `immer` from 8.0.4 to 9.0.6 diff --git a/plugins/scaffolder-react/package.json b/plugins/scaffolder-react/package.json index a4dd6a521f..b8c7aa01c8 100644 --- a/plugins/scaffolder-react/package.json +++ b/plugins/scaffolder-react/package.json @@ -83,7 +83,7 @@ "classnames": "^2.2.6", "flatted": "3.3.2", "humanize-duration": "^3.25.1", - "immer": "^8.0.0", + "immer": "^9.0.6", "json-schema": "^0.4.0", "json-schema-library": "^9.0.0", "lodash": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index dc849f5dc7..d082e97c2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7870,7 +7870,7 @@ __metadata: classnames: ^2.2.6 flatted: 3.3.2 humanize-duration: ^3.25.1 - immer: ^8.0.0 + immer: ^9.0.6 json-schema: ^0.4.0 json-schema-library: ^9.0.0 lodash: ^4.17.21 @@ -31864,13 +31864,6 @@ __metadata: languageName: node linkType: hard -"immer@npm:^8.0.0": - version: 8.0.4 - resolution: "immer@npm:8.0.4" - checksum: 9d3b28df1ac5bf6918c611e71c15bdb136588c21a3431100448f21325fef9b055cc9a44fe8b023f0c5ecbc66a2ba38f403c9a67d581f613b49d0e4ff15564f79 - languageName: node - linkType: hard - "immer@npm:^9.0.6, immer@npm:^9.0.7": version: 9.0.21 resolution: "immer@npm:9.0.21" From 486dda4a10dcdb163b974b95f6f90a52938f5b14 Mon Sep 17 00:00:00 2001 From: Peter Macdonald Date: Wed, 29 Jan 2025 10:37:57 +0100 Subject: [PATCH 34/64] adds some additional information to the guest provider thats not immediately obvious Signed-off-by: Peter Macdonald --- docs/auth/guest/provider.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/auth/guest/provider.md b/docs/auth/guest/provider.md index b541178571..4045db3148 100644 --- a/docs/auth/guest/provider.md +++ b/docs/auth/guest/provider.md @@ -63,3 +63,20 @@ auth: # highlight-add-next-line guest: {} ``` + +The above is all you need to get working with the guest provider. However, you can also add additional configuration if you need to such as the following: + +```yaml title="app-config.local.yaml" +auth: + providers: + guest: + userEntityRef: user:default/john-smith + ownershipEntityRefs: [group:default/smith-family] + dangerouslyAllowOutsideDevelopment: false +``` + +The `userEntityRef` is used as the entity reference for the guest user and the `ownershipEntityRefs` is a list of entity references to user for ownership of the guest user if the user is not found in the catalog. + +The `dangerouslyAllowOutsideDevelopment` flag is used to allow users to sign in with the guest provider outside of their development environments. + +You can find this information by looking at the config file [here](https://github.com/backstage/backstage/blob/master/plugins/auth-backend-module-guest-provider/config.d.ts) From 16bd94e0386a914f66585ddb3f5ad496bd5a2bfe Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Wed, 29 Jan 2025 09:59:49 +0100 Subject: [PATCH 35/64] catalog: add inspect dialog url Signed-off-by: Vincenzo Scamporlino --- .../InspectEntityDialog.tsx | 46 +++++++++++++++---- .../components/EntityLayout/EntityLayout.tsx | 33 ++++++++----- 2 files changed, 58 insertions(+), 21 deletions(-) diff --git a/plugins/catalog-react/src/components/InspectEntityDialog/InspectEntityDialog.tsx b/plugins/catalog-react/src/components/InspectEntityDialog/InspectEntityDialog.tsx index 644167acbb..bcd84003ba 100644 --- a/plugins/catalog-react/src/components/InspectEntityDialog/InspectEntityDialog.tsx +++ b/plugins/catalog-react/src/components/InspectEntityDialog/InspectEntityDialog.tsx @@ -24,7 +24,7 @@ import DialogTitle from '@material-ui/core/DialogTitle'; import Tab from '@material-ui/core/Tab'; import Tabs from '@material-ui/core/Tabs'; import { makeStyles } from '@material-ui/core/styles'; -import React, { useEffect } from 'react'; +import React, { ComponentProps, useEffect } from 'react'; import { AncestryPage } from './components/AncestryPage'; import { ColocatedPage } from './components/ColocatedPage'; import { JsonPage } from './components/JsonPage'; @@ -85,6 +85,19 @@ function a11yProps(index: number) { }; } +const tabNames: Record< + NonNullable['initialTab']>, + string +> = { + overview: 'Overview', + ancestry: 'Ancestry', + colocated: 'Colocated', + json: 'Raw JSON', + yaml: 'Raw YAML', +} as const; + +const tabs = Object.keys(tabNames) as Array; + /** * A dialog that lets users inspect the low level details of their entities. * @@ -93,15 +106,20 @@ function a11yProps(index: number) { export function InspectEntityDialog(props: { open: boolean; entity: Entity; + initialTab?: 'overview' | 'ancestry' | 'colocated' | 'json' | 'yaml'; onClose: () => void; + onSelect?: (tab: string) => void; }) { const classes = useStyles(); - const [activeTab, setActiveTab] = React.useState(0); + + const [activeTab, setActiveTab] = React.useState( + getTabIndex(tabs, props.initialTab), + ); const { t } = useTranslationRef(catalogReactTranslationRef); useEffect(() => { - setActiveTab(0); - }, [props.open]); + getTabIndex(tabs, props.initialTab); + }, [props.open, props.initialTab]); if (!props.entity) { return null; @@ -125,15 +143,16 @@ export function InspectEntityDialog(props: { orientation="vertical" variant="scrollable" value={activeTab} - onChange={(_, newValue) => setActiveTab(newValue)} + onChange={(_, tabIndex) => { + setActiveTab(tabIndex); + props.onSelect?.(tabs[tabIndex]); + }} aria-label="Inspector options" className={classes.tabs} > - - - - - + {tabs.map((tab, index) => ( + + ))} @@ -161,3 +180,10 @@ export function InspectEntityDialog(props: { ); } + +function getTabIndex( + allTabs: string[], + initialTab: keyof typeof tabNames | undefined, +) { + return initialTab ? allTabs.indexOf(initialTab) : 0; +} diff --git a/plugins/catalog/src/components/EntityLayout/EntityLayout.tsx b/plugins/catalog/src/components/EntityLayout/EntityLayout.tsx index c06344c2a6..c1dff49c29 100644 --- a/plugins/catalog/src/components/EntityLayout/EntityLayout.tsx +++ b/plugins/catalog/src/components/EntityLayout/EntityLayout.tsx @@ -56,8 +56,8 @@ import Box from '@material-ui/core/Box'; import { makeStyles } from '@material-ui/core/styles'; import { TabProps } from '@material-ui/core/Tab'; import Alert from '@material-ui/lab/Alert'; -import React, { useEffect, useState } from 'react'; -import { useLocation, useNavigate } from 'react-router-dom'; +import React, { ComponentProps, useEffect, useState } from 'react'; +import { useLocation, useNavigate, useSearchParams } from 'react-router-dom'; import useAsync from 'react-use/esm/useAsync'; import { catalogTranslationRef } from '../../alpha/translation'; import { rootRouteRef, unregisterRedirectRouteRef } from '../../routes'; @@ -284,15 +284,15 @@ export const EntityLayout = (props: EntityLayoutProps) => { ); const [confirmationDialogOpen, setConfirmationDialogOpen] = useState(false); - const [inspectionDialogOpen, setInspectionDialogOpen] = useState(false); const navigate = useNavigate(); + const [searchParams, setSearchParams] = useSearchParams(); + const catalogRoute = useRouteRef(rootRouteRef); const unregisterRedirectRoute = useRouteRef(unregisterRedirectRouteRef); const { t } = useTranslationRef(catalogTranslationRef); const cleanUpAfterRemoval = async () => { setConfirmationDialogOpen(false); - setInspectionDialogOpen(false); navigate( unregisterRedirectRoute ? unregisterRedirectRoute() : catalogRoute(), ); @@ -318,10 +318,12 @@ export const EntityLayout = (props: EntityLayoutProps) => { // to another entity. useEffect(() => { setConfirmationDialogOpen(false); - setInspectionDialogOpen(false); // eslint-disable-next-line react-hooks/exhaustive-deps }, [location.pathname]); + const selectedInspectTab = searchParams.get('inspect'); + const showInspectTab = typeof selectedInspectTab === 'string'; + return (
{ UNSTABLE_extraContextMenuItems={UNSTABLE_extraContextMenuItems} UNSTABLE_contextMenuOptions={UNSTABLE_contextMenuOptions} onUnregisterEntity={() => setConfirmationDialogOpen(true)} - onInspectEntity={() => setInspectionDialogOpen(true)} + onInspectEntity={() => setSearchParams('inspect')} /> )} @@ -385,17 +387,26 @@ export const EntityLayout = (props: EntityLayoutProps) => { )} + {showInspectTab && ( + ['initialTab']) || undefined + } + onSelect={newTab => setSearchParams(`inspect=${newTab}`)} + open + onClose={() => setSearchParams()} + /> + )} + setConfirmationDialogOpen(false)} /> - setInspectionDialogOpen(false)} - /> ); }; From b07756e4553d7ef42767fe586e7667f78e1fdcd1 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Wed, 29 Jan 2025 10:03:37 +0100 Subject: [PATCH 36/64] catalog: inspect dialog changeset Signed-off-by: Vincenzo Scamporlino --- .changeset/silly-vans-shop.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/silly-vans-shop.md diff --git a/.changeset/silly-vans-shop.md b/.changeset/silly-vans-shop.md new file mode 100644 index 0000000000..7bd283adbc --- /dev/null +++ b/.changeset/silly-vans-shop.md @@ -0,0 +1,6 @@ +--- +'@backstage/plugin-catalog-react': patch +'@backstage/plugin-catalog': patch +--- + +- The Entity Page now retains the visibility of the Inspect Dialog after a reload. This allows sharing the URL with the dialog open. From 719e48dbb4220553c4b81d7795e4cc233633435c Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Wed, 29 Jan 2025 10:15:30 +0100 Subject: [PATCH 37/64] catalog-graph: fix flickering when parent re-renders Signed-off-by: Vincenzo Scamporlino --- .changeset/short-keys-heal.md | 5 +++++ .../src/components/CatalogGraphCard/CatalogGraphCard.tsx | 4 ++-- plugins/catalog-react/report.api.md | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/short-keys-heal.md diff --git a/.changeset/short-keys-heal.md b/.changeset/short-keys-heal.md new file mode 100644 index 0000000000..0c8b26055f --- /dev/null +++ b/.changeset/short-keys-heal.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-graph': patch +--- + +Fixed an issue causing the `CatalogGraphCard` to redraw its content whenever the parent component re-renders, resulting in flickering. diff --git a/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx b/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx index e7ac8bf15b..73b4f2f2ee 100644 --- a/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx +++ b/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx @@ -28,7 +28,7 @@ import { } from '@backstage/plugin-catalog-react'; import { makeStyles, Theme } from '@material-ui/core/styles'; import qs from 'qs'; -import React, { MouseEvent, ReactNode, useCallback } from 'react'; +import React, { MouseEvent, ReactNode, useCallback, useMemo } from 'react'; import { useNavigate } from 'react-router-dom'; import { catalogGraphRouteRef } from '../../routes'; import { @@ -86,7 +86,7 @@ export const CatalogGraphCard = ( } = props; const { entity } = useEntity(); - const entityName = getCompoundEntityRef(entity); + const entityName = useMemo(() => getCompoundEntityRef(entity), [entity]); const catalogEntityRoute = useRouteRef(entityRouteRef); const catalogGraphRoute = useRouteRef(catalogGraphRouteRef); const navigate = useNavigate(); diff --git a/plugins/catalog-react/report.api.md b/plugins/catalog-react/report.api.md index 1e637f79a5..b3495faf08 100644 --- a/plugins/catalog-react/report.api.md +++ b/plugins/catalog-react/report.api.md @@ -685,7 +685,9 @@ export function humanizeEntityRef( export function InspectEntityDialog(props: { open: boolean; entity: Entity; + initialTab?: 'overview' | 'ancestry' | 'colocated' | 'json' | 'yaml'; onClose: () => void; + onSelect?: (tab: string) => void; }): React_2.JSX.Element | null; // @public From 8b76bdb56fc47847e88bac7d6fcd23f4e60d6a92 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Wed, 29 Jan 2025 10:45:42 +0100 Subject: [PATCH 38/64] catalog: tweak changeset Signed-off-by: Vincenzo Scamporlino --- .changeset/silly-vans-shop.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/silly-vans-shop.md b/.changeset/silly-vans-shop.md index 7bd283adbc..7af818650b 100644 --- a/.changeset/silly-vans-shop.md +++ b/.changeset/silly-vans-shop.md @@ -1,6 +1,6 @@ --- '@backstage/plugin-catalog-react': patch -'@backstage/plugin-catalog': patch +'@backstage/plugin-catalog': minor --- -- The Entity Page now retains the visibility of the Inspect Dialog after a reload. This allows sharing the URL with the dialog open. +The Entity Page now retains the visibility of the Inspect Dialog after a reload. This allows sharing the URL with the dialog open. From 86c72c1fa72829f69724f12f862ea92bf7423ca2 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Wed, 29 Jan 2025 10:50:41 +0100 Subject: [PATCH 39/64] Improve parallelism limits in build-workspace yarn pack Signed-off-by: Eric Peterson --- .changeset/cli-melancholy-in-advance.md | 5 +++++ packages/cli/package.json | 1 - .../cli/src/lib/packager/createDistWorkspace.ts | 14 ++++++-------- yarn.lock | 1 - 4 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 .changeset/cli-melancholy-in-advance.md diff --git a/.changeset/cli-melancholy-in-advance.md b/.changeset/cli-melancholy-in-advance.md new file mode 100644 index 0000000000..7a2c6f8658 --- /dev/null +++ b/.changeset/cli-melancholy-in-advance.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +The packing process when running `build-workspace` with the `--alwaysYarnPack` flag now respects the `BACKSTAGE_CLI_BUILD_PARALLEL` environment variable, defaulting parallel work limits based on CPU availability. diff --git a/packages/cli/package.json b/packages/cli/package.json index a7f3898fd1..04197985e5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -130,7 +130,6 @@ "node-libs-browser": "^2.2.1", "npm-packlist": "^5.0.0", "ora": "^5.3.0", - "p-limit": "^3.1.0", "p-queue": "^6.6.2", "pirates": "^4.0.6", "postcss": "^8.1.0", diff --git a/packages/cli/src/lib/packager/createDistWorkspace.ts b/packages/cli/src/lib/packager/createDistWorkspace.ts index ea1682bc4f..9ca3f7af70 100644 --- a/packages/cli/src/lib/packager/createDistWorkspace.ts +++ b/packages/cli/src/lib/packager/createDistWorkspace.ts @@ -21,7 +21,6 @@ import { resolve as resolvePath, relative as relativePath, } from 'path'; -import pLimit from 'p-limit'; import { tmpdir } from 'os'; import tar, { CreateOptions, FileOptions } from 'tar'; import partition from 'lodash/partition'; @@ -369,11 +368,10 @@ async function moveToDistWorkspace( } // Repacking in parallel is much faster and safe for all packages outside of the Backstage repo - // Limit concurrency to 10 to avoid resource exhaustion on larger monorepos. - const limit = pLimit(10); - await Promise.all( - safePackages.map((target, index) => - limit(() => pack(target, `temp-package-${index}.tgz`)), - ), - ); + await runParallelWorkers({ + items: safePackages.map((target, index) => ({ target, index })), + worker: async ({ target, index }) => { + await pack(target, `temp-package-${index}.tgz`); + }, + }); } diff --git a/yarn.lock b/yarn.lock index d082e97c2b..1914267894 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4020,7 +4020,6 @@ __metadata: nodemon: ^3.0.1 npm-packlist: ^5.0.0 ora: ^5.3.0 - p-limit: ^3.1.0 p-queue: ^6.6.2 pirates: ^4.0.6 postcss: ^8.1.0 From 2167afc5e57bb65103467748d71bf3e04130e7e6 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 29 Jan 2025 15:07:09 +0100 Subject: [PATCH 40/64] cli: treat static file assets as free from side-effects Signed-off-by: Patrik Oldsberg --- .changeset/fifty-trains-attend.md | 5 ++++ packages/cli/src/lib/builder/plugins.ts | 40 +++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .changeset/fifty-trains-attend.md diff --git a/.changeset/fifty-trains-attend.md b/.changeset/fifty-trains-attend.md new file mode 100644 index 0000000000..04318409fd --- /dev/null +++ b/.changeset/fifty-trains-attend.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Treat static file assets as always being free from side effects in package builds. diff --git a/packages/cli/src/lib/builder/plugins.ts b/packages/cli/src/lib/builder/plugins.ts index 1c1dd1b1e2..ace2c048a9 100644 --- a/packages/cli/src/lib/builder/plugins.ts +++ b/packages/cli/src/lib/builder/plugins.ts @@ -21,7 +21,12 @@ import { relative as relativePath, } from 'path'; import { createFilter } from 'rollup-pluginutils'; -import { Plugin, InputOptions, OutputChunk } from 'rollup'; +import { + Plugin, + InputOptions, + OutputChunk, + HasModuleSideEffects, +} from 'rollup'; type ForwardFileImportsOptions = { include: Array | string | RegExp | null; @@ -91,6 +96,33 @@ export function forwardFileImports(options: ForwardFileImportsOptions) { } }, options(inputOptions) { + // We're in control of the config ourselves, so these are just checks to + // make sure we don't update the config but forget about the config + // overrides here + const treeshake = inputOptions.treeshake; + if (treeshake !== undefined && typeof treeshake !== 'object') { + throw new Error( + 'Expected treeshake input config to be an object or not set', + ); + } + if (treeshake?.moduleSideEffects) { + throw new Error('treeshake.moduleSideEffects must not be set'); + } + + // All external assets are treated as being side-effect free. + // + // This also works around an apparent bug in rollup where the + // `makeAbsoluteExternalsRelative: false` option sometimes caused relative + // asset paths to be rewritten with an incorrect path. They are rewritten + // in the first place because they are being treated as external by this + // plugin, but that seems to be the best way to handle asset files. + const moduleSideEffects: HasModuleSideEffects = id => { + if (filter(id)) { + return false; + } + return true; + }; + const origExternal = inputOptions.external; // We decorate any existing `external` option with our own way of determining @@ -129,7 +161,11 @@ export function forwardFileImports(options: ForwardFileImportsOptions) { return true; }; - return { ...inputOptions, external }; + return { + ...inputOptions, + external, + treeshake: { ...treeshake, moduleSideEffects }, + }; }, } satisfies Plugin; } From e470cc49a4d331141b8a1d8b2b6e4a311cb346c7 Mon Sep 17 00:00:00 2001 From: Peter Macdonald Date: Wed, 29 Jan 2025 15:30:43 +0100 Subject: [PATCH 41/64] Update docs/auth/guest/provider.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Peter Macdonald --- docs/auth/guest/provider.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/auth/guest/provider.md b/docs/auth/guest/provider.md index 4045db3148..d593a44f32 100644 --- a/docs/auth/guest/provider.md +++ b/docs/auth/guest/provider.md @@ -75,7 +75,7 @@ auth: dangerouslyAllowOutsideDevelopment: false ``` -The `userEntityRef` is used as the entity reference for the guest user and the `ownershipEntityRefs` is a list of entity references to user for ownership of the guest user if the user is not found in the catalog. +The `userEntityRef` is used as the entity reference for the guest user and the `ownershipEntityRefs` is a list of entity references to use for ownership of the guest user, if the user is not found in the catalog. The `dangerouslyAllowOutsideDevelopment` flag is used to allow users to sign in with the guest provider outside of their development environments. From c5fa051925a75b115b3422952953ec998a3a0448 Mon Sep 17 00:00:00 2001 From: Peter Macdonald Date: Wed, 29 Jan 2025 15:30:59 +0100 Subject: [PATCH 42/64] Update docs/auth/guest/provider.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Peter Macdonald --- docs/auth/guest/provider.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/auth/guest/provider.md b/docs/auth/guest/provider.md index d593a44f32..0a3c46c757 100644 --- a/docs/auth/guest/provider.md +++ b/docs/auth/guest/provider.md @@ -77,6 +77,6 @@ auth: The `userEntityRef` is used as the entity reference for the guest user and the `ownershipEntityRefs` is a list of entity references to use for ownership of the guest user, if the user is not found in the catalog. -The `dangerouslyAllowOutsideDevelopment` flag is used to allow users to sign in with the guest provider outside of their development environments. +The `dangerouslyAllowOutsideDevelopment` flag is used to allow users to sign in with the guest provider outside of their development environments, e.g. in production. You can find this information by looking at the config file [here](https://github.com/backstage/backstage/blob/master/plugins/auth-backend-module-guest-provider/config.d.ts) From e80dbc5b95588590916f82a1f715fdef89b5365b Mon Sep 17 00:00:00 2001 From: Peter Macdonald Date: Wed, 29 Jan 2025 15:31:10 +0100 Subject: [PATCH 43/64] Update docs/auth/guest/provider.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Peter Macdonald --- docs/auth/guest/provider.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/auth/guest/provider.md b/docs/auth/guest/provider.md index 0a3c46c757..5072aabe50 100644 --- a/docs/auth/guest/provider.md +++ b/docs/auth/guest/provider.md @@ -79,4 +79,4 @@ The `userEntityRef` is used as the entity reference for the guest user and the ` The `dangerouslyAllowOutsideDevelopment` flag is used to allow users to sign in with the guest provider outside of their development environments, e.g. in production. -You can find this information by looking at the config file [here](https://github.com/backstage/backstage/blob/master/plugins/auth-backend-module-guest-provider/config.d.ts) +You can find this information by looking at the config file [here](https://github.com/backstage/backstage/blob/master/plugins/auth-backend-module-guest-provider/config.d.ts). From bc43fdac98c021d58492774ae51e81a69ef362c3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:39:57 +0000 Subject: [PATCH 44/64] chore(deps): update dependency @changesets/cli to v2.27.12 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1914267894..692cea2590 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8998,9 +8998,9 @@ __metadata: languageName: node linkType: hard -"@changesets/apply-release-plan@npm:^7.0.7": - version: 7.0.7 - resolution: "@changesets/apply-release-plan@npm:7.0.7" +"@changesets/apply-release-plan@npm:^7.0.8": + version: 7.0.8 + resolution: "@changesets/apply-release-plan@npm:7.0.8" dependencies: "@changesets/config": ^3.0.5 "@changesets/get-version-range-type": ^0.4.0 @@ -9015,7 +9015,7 @@ __metadata: prettier: ^2.7.1 resolve-from: ^5.0.0 semver: ^7.5.3 - checksum: 775e8f86ab8b82ebdb44471dfbdf14e669144e63b6c972bc8502d608247ef909baca63973f71b8d15acd4fff8740a61802256bc261de12b956e4c2b8fd34d929 + checksum: 41e9bea8c7a262c77acb9d32076c9a12ff656b2ec91354f3915938210ad110b526af5e190c1827ceeea9ff80c5b391990401ac4711acde17fc77523ced28f232 languageName: node linkType: hard @@ -9043,10 +9043,10 @@ __metadata: linkType: hard "@changesets/cli@npm:^2.14.0": - version: 2.27.11 - resolution: "@changesets/cli@npm:2.27.11" + version: 2.27.12 + resolution: "@changesets/cli@npm:2.27.12" dependencies: - "@changesets/apply-release-plan": ^7.0.7 + "@changesets/apply-release-plan": ^7.0.8 "@changesets/assemble-release-plan": ^6.0.5 "@changesets/changelog-git": ^0.2.0 "@changesets/config": ^3.0.5 @@ -9076,7 +9076,7 @@ __metadata: term-size: ^2.1.0 bin: changeset: bin.js - checksum: 0c9d1f03ad113494ad3091caa7eca1ee167761af8257911f74c64bff670fb8a542fe9f84921b1e7e29c584b2f5883b8a6287c4f42afe59007369f4fd1cc94cec + checksum: 86a25d34f11ca572008e6a5b9f93e0e0ce6bb9f6fc0ab9b5080d206bd8c20afb32992e10bd6098049bd915b6496dc77bd0308a567b5675f027a3cb7b05ba8125 languageName: node linkType: hard From bd4d3d746d723892a8047b1ce9bc5585fdf4cb3f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:59:37 +0000 Subject: [PATCH 45/64] chore(deps): update dependency @types/lodash to v4.17.15 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1914267894..724578786d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19963,9 +19963,9 @@ __metadata: linkType: hard "@types/lodash@npm:^4.14.151": - version: 4.17.14 - resolution: "@types/lodash@npm:4.17.14" - checksum: 2dbeaff92b31cb523f6bc4bb99a3d8c88fbb001d54f2367a888add85784fb213744a9b1600e1e98b6790ab191fdb6ec839eb0e3d63fcf6fb6cf1ebe4c3d21149 + version: 4.17.15 + resolution: "@types/lodash@npm:4.17.15" + checksum: 5037564154411f4ac0b187b914031c150520a7ca037dea007f774b7123c97c0da55b2e41ae81dc1bc80ff09e8d6a236455ea676d5062af12c592b8e81baec7bf languageName: node linkType: hard From eb3d91a351541ba8c78fa9f32dfda74fe08c21fc Mon Sep 17 00:00:00 2001 From: Stephen Glass Date: Sat, 25 Jan 2025 15:23:10 -0500 Subject: [PATCH 46/64] use custom error page Signed-off-by: Stephen Glass --- .changeset/fifty-pandas-destroy.md | 6 ++++++ plugins/scaffolder/src/components/Router/Router.tsx | 9 ++++----- .../TechDocsReaderPageContent.tsx | 7 +++++-- 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 .changeset/fifty-pandas-destroy.md diff --git a/.changeset/fifty-pandas-destroy.md b/.changeset/fifty-pandas-destroy.md new file mode 100644 index 0000000000..c07eb89b35 --- /dev/null +++ b/.changeset/fifty-pandas-destroy.md @@ -0,0 +1,6 @@ +--- +'@backstage/plugin-scaffolder': patch +'@backstage/plugin-techdocs': patch +--- + +Use the custom error page if provided for displaying errors instead of the default error page diff --git a/plugins/scaffolder/src/components/Router/Router.tsx b/plugins/scaffolder/src/components/Router/Router.tsx index 6c06322867..0853ea9438 100644 --- a/plugins/scaffolder/src/components/Router/Router.tsx +++ b/plugins/scaffolder/src/components/Router/Router.tsx @@ -42,7 +42,6 @@ import { selectedTemplateRouteRef, templateFormRouteRef, } from '../../routes'; -import { ErrorPage } from '@backstage/core-components'; import { ActionsPage } from '../../components/ActionsPage'; import { ListTasksPage } from '../../components/ListTasksPage'; @@ -64,6 +63,7 @@ import { taskReadPermission, templateManagementPermission, } from '@backstage/plugin-scaffolder-common/alpha'; +import { useApp } from '@backstage/core-plugin-api'; /** * The Props for the Scaffolder Router @@ -125,6 +125,8 @@ export const Router = (props: PropsWithChildren) => { const outlet = useOutlet() || props.children; const customFieldExtensions = useCustomFieldExtensions(outlet); + const app = useApp(); + const { NotFoundErrorPage } = app.getComponents(); const fieldExtensions = [ ...customFieldExtensions, @@ -237,10 +239,7 @@ export const Router = (props: PropsWithChildren) => { } /> - } - /> + } /> ); }; diff --git a/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.tsx b/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.tsx index f8b3129feb..9f8a991ba9 100644 --- a/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.tsx +++ b/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.tsx @@ -26,7 +26,7 @@ import { useTechDocsReaderPage, } from '@backstage/plugin-techdocs-react'; import { CompoundEntityRef } from '@backstage/catalog-model'; -import { Content, ErrorPage, Progress } from '@backstage/core-components'; +import { Content, Progress } from '@backstage/core-components'; import { TechDocsSearch } from '../../../search'; import { TechDocsStateIndicator } from '../TechDocsStateIndicator'; @@ -37,6 +37,7 @@ import { withTechDocsReaderProvider, } from '../TechDocsReaderProvider'; import { TechDocsReaderPageContentAddons } from './TechDocsReaderPageContentAddons'; +import { useApp } from '@backstage/core-plugin-api'; const useStyles = makeStyles({ search: { @@ -97,6 +98,8 @@ export const TechDocsReaderPageContent = withTechDocsReaderProvider( const hash = window.location.hash; const isStyleLoading = useShadowDomStylesLoading(dom); const [hashElement] = useShadowRootElements([`[id="${hash.slice(1)}"]`]); + const app = useApp(); + const { NotFoundErrorPage } = app.getComponents(); useEffect(() => { if (isStyleLoading) return; @@ -122,7 +125,7 @@ export const TechDocsReaderPageContent = withTechDocsReaderProvider( // No entity metadata = 404. Don't render content at all. if (entityMetadataLoading === false && !entityMetadata) - return ; + return ; // Do not return content until dom is ready; instead, render a state // indicator, which handles progress and content errors on our behalf. From 681ac9d2e6940e83873b0d5c09e76807ca06fc19 Mon Sep 17 00:00:00 2001 From: Stephen Glass Date: Sat, 25 Jan 2025 16:05:37 -0500 Subject: [PATCH 47/64] update test case to support custom error page Signed-off-by: Stephen Glass --- .../TechDocsReaderPageContent.test.tsx | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.test.tsx b/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.test.tsx index 3c6756e058..a22e5e917d 100644 --- a/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.test.tsx +++ b/plugins/techdocs/src/reader/components/TechDocsReaderPageContent/TechDocsReaderPageContent.test.tsx @@ -126,20 +126,19 @@ describe('', () => { useTechDocsReaderDom.mockReturnValue(document.createElement('html')); useReaderState.mockReturnValue({ state: 'cached' }); - const rendered = await renderInTestApp( - - - , - ); + await expect( + renderInTestApp( + + + , + ), + ).rejects.toThrow('Reached NotFound Page'); - await waitFor(() => { - expect( - rendered.queryByTestId('techdocs-native-shadowroot'), - ).not.toBeInTheDocument(); - expect( - rendered.getByText('ERROR 404: PAGE NOT FOUND'), - ).toBeInTheDocument(); - }); + // Check the global document for the absence of the shadow root + const shadowRoot = document.querySelector( + '[data-testid="techdocs-native-shadowroot"]', + ); + expect(shadowRoot).not.toBeInTheDocument(); }); it('should render 404 if there is no dom and reader state is not found', async () => { From 11f66113db2ee3ab27b306213c518710e24a916f Mon Sep 17 00:00:00 2001 From: Stephen Glass Date: Sat, 25 Jan 2025 16:12:47 -0500 Subject: [PATCH 48/64] add not found page test case for scaffolder Signed-off-by: Stephen Glass --- plugins/scaffolder/src/components/Router/Router.test.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/scaffolder/src/components/Router/Router.test.tsx b/plugins/scaffolder/src/components/Router/Router.test.tsx index 9c752ed3c1..871e9f7632 100644 --- a/plugins/scaffolder/src/components/Router/Router.test.tsx +++ b/plugins/scaffolder/src/components/Router/Router.test.tsx @@ -76,6 +76,14 @@ describe('Router', () => { expect(getByText('foobar')).toBeInTheDocument(); expect(TemplateListPage).not.toHaveBeenCalled(); }); + + it('should render not found error page', async () => { + await expect( + wrapInApisAndRender(, { + routeEntries: ['/foonotfounderror'], + }), + ).rejects.toThrow('Reached NotFound Page'); + }); }); describe('/templates/:templateName', () => { From cee1a648611e802f7c3ff218788fec89b792142b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:35:00 +0000 Subject: [PATCH 49/64] chore(deps): update dependency lint-staged to v15.4.3 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 692cea2590..b1564c3407 100644 --- a/yarn.lock +++ b/yarn.lock @@ -34981,8 +34981,8 @@ __metadata: linkType: hard "lint-staged@npm:^15.0.0": - version: 15.4.2 - resolution: "lint-staged@npm:15.4.2" + version: 15.4.3 + resolution: "lint-staged@npm:15.4.3" dependencies: chalk: ^5.4.1 commander: ^13.1.0 @@ -34996,7 +34996,7 @@ __metadata: yaml: ^2.7.0 bin: lint-staged: bin/lint-staged.js - checksum: bdb031d64f388aea166b3beaaff8a0a1503e50433959805985b43fcd788c9bfaf1e3a6c0852d830a6c75345b9c0809c5e6dab80d48460e3d6317b7ca0f842df8 + checksum: b12b246c13fc1c7b0023a234244699fa1ec9b8ee15fae71e8109e7f10aa5f43c5cfa9d7eba6aa109cae6b6ffe7a1a50244f5df84e4b30d14e3764dbb66c5f66f languageName: node linkType: hard From eb543c0909b4adf7f408d57ae2f75c3a4036f147 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:52:50 +0000 Subject: [PATCH 50/64] fix(deps): update dependency @asyncapi/react-component to v2.5.1 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yarn.lock b/yarn.lock index c45b36323b..5f1c70279a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -324,25 +324,25 @@ __metadata: languageName: node linkType: hard -"@asyncapi/protobuf-schema-parser@npm:^3.3.0": - version: 3.3.0 - resolution: "@asyncapi/protobuf-schema-parser@npm:3.3.0" +"@asyncapi/protobuf-schema-parser@npm:^3.4.0": + version: 3.4.0 + resolution: "@asyncapi/protobuf-schema-parser@npm:3.4.0" dependencies: "@asyncapi/parser": ^3.4.0 "@types/protocol-buffers-schema": ^3.4.3 protobufjs: ^7.4.0 - checksum: abe9f09f289c20eb93de450f8106380142ce3aed115060939f90f3826030be56d24759ff3d9c63a2476d22888bb56df5da37222d2eca3e9596f9e0ad6461e93f + checksum: 6842c26cf5a2e03b68e83f89fb19529524057daa83aca1cfddd298494a9c729cd0bcabe0a159b56f5b2b14644c1a4906b6ce70714e58ec17ce587c928f84a96d languageName: node linkType: hard "@asyncapi/react-component@npm:^2.3.3": - version: 2.5.0 - resolution: "@asyncapi/react-component@npm:2.5.0" + version: 2.5.1 + resolution: "@asyncapi/react-component@npm:2.5.1" dependencies: "@asyncapi/avro-schema-parser": ^3.0.24 "@asyncapi/openapi-schema-parser": ^3.0.24 "@asyncapi/parser": ^3.3.0 - "@asyncapi/protobuf-schema-parser": ^3.3.0 + "@asyncapi/protobuf-schema-parser": ^3.4.0 highlight.js: ^10.7.2 isomorphic-dompurify: ^2.14.0 marked: ^4.0.14 @@ -352,7 +352,7 @@ __metadata: peerDependencies: react: ">=18.0.0" react-dom: ">=18.0.0" - checksum: d975f6182370f43aef9697e3e5b02d93b8ac8b8fcc43a0f8c4315681fdc3b6819078aa6ff963af1193fe7719c2cee78d55a57f188eb472b3e77494a90dbc75e5 + checksum: d8fc25790e93d1d09ca3dae9733f14d1663d6eec5aacfa1726dd739b26c32a801c4eeb5e0e475eeff4fc58562e454b7e02630f3a0bb679f6d1a31b9b38166b87 languageName: node linkType: hard From 8699b79c769ae9cf491ca827fb3223933a462a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 29 Jan 2025 17:17:20 +0100 Subject: [PATCH 51/64] removed all knip-reported backend-common usages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/gold-cameras-battle.md | 8 ++++++++ plugins/auth-node/knip-report.md | 7 ------- plugins/auth-node/package.json | 2 -- plugins/example-todo-list-backend/knip-report.md | 8 -------- plugins/example-todo-list-backend/package.json | 5 +---- plugins/scaffolder/knip-report.md | 9 ++++++++- plugins/search-backend-module-catalog/knip-report.md | 7 ------- plugins/search-backend-module-catalog/package.json | 4 +--- plugins/search-backend-module-pg/knip-report.md | 6 ------ plugins/search-backend-module-pg/package.json | 1 - plugins/search-backend-node/knip-report.md | 6 ------ plugins/search-backend-node/package.json | 1 - yarn.lock | 9 --------- 13 files changed, 18 insertions(+), 55 deletions(-) create mode 100644 .changeset/gold-cameras-battle.md diff --git a/.changeset/gold-cameras-battle.md b/.changeset/gold-cameras-battle.md new file mode 100644 index 0000000000..6dddcd5143 --- /dev/null +++ b/.changeset/gold-cameras-battle.md @@ -0,0 +1,8 @@ +--- +'@backstage/plugin-search-backend-module-catalog': patch +'@backstage/plugin-search-backend-module-pg': patch +'@backstage/plugin-search-backend-node': patch +'@backstage/plugin-auth-node': patch +--- + +Removed unused dependencies diff --git a/plugins/auth-node/knip-report.md b/plugins/auth-node/knip-report.md index 51c7faf1d8..2661c35327 100644 --- a/plugins/auth-node/knip-report.md +++ b/plugins/auth-node/knip-report.md @@ -1,9 +1,2 @@ # Knip report -## Unused dependencies (2) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | -| winston | package.json | error | - diff --git a/plugins/auth-node/package.json b/plugins/auth-node/package.json index 6f9f71c2e7..7bdf4bed18 100644 --- a/plugins/auth-node/package.json +++ b/plugins/auth-node/package.json @@ -37,7 +37,6 @@ "test": "backstage-cli package test" }, "dependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-plugin-api": "workspace:^", "@backstage/catalog-client": "workspace:^", "@backstage/catalog-model": "workspace:^", @@ -50,7 +49,6 @@ "jose": "^5.0.0", "lodash": "^4.17.21", "passport": "^0.7.0", - "winston": "^3.2.1", "zod": "^3.22.4", "zod-to-json-schema": "^3.21.4", "zod-validation-error": "^3.4.0" diff --git a/plugins/example-todo-list-backend/knip-report.md b/plugins/example-todo-list-backend/knip-report.md index c84ed61781..2661c35327 100644 --- a/plugins/example-todo-list-backend/knip-report.md +++ b/plugins/example-todo-list-backend/knip-report.md @@ -1,10 +1,2 @@ # Knip report -## Unused dependencies (3) - -| Name | Location | Severity | -| :-------------------------- | :----------- | :------- | -| @backstage/plugin-auth-node | package.json | error | -| @backstage/backend-common | package.json | error | -| yn | package.json | error | - diff --git a/plugins/example-todo-list-backend/package.json b/plugins/example-todo-list-backend/package.json index 5421176db2..c3239ed825 100644 --- a/plugins/example-todo-list-backend/package.json +++ b/plugins/example-todo-list-backend/package.json @@ -38,15 +38,12 @@ "test": "backstage-cli package test" }, "dependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-plugin-api": "workspace:^", "@backstage/errors": "workspace:^", - "@backstage/plugin-auth-node": "workspace:^", "@types/express": "^4.17.6", "express": "^4.17.1", "express-promise-router": "^4.1.0", - "uuid": "^11.0.0", - "yn": "^4.0.0" + "uuid": "^11.0.0" }, "devDependencies": { "@backstage/backend-defaults": "workspace:^", diff --git a/plugins/scaffolder/knip-report.md b/plugins/scaffolder/knip-report.md index 02a697ddb0..7d1731eb0b 100644 --- a/plugins/scaffolder/knip-report.md +++ b/plugins/scaffolder/knip-report.md @@ -1,10 +1,17 @@ # Knip report -## Unused dependencies (3) +## Unused dependencies (4) | Name | Location | Severity | | :------------------ | :----------- | :------- | | json-schema-library | package.json | error | | @rjsf/material-ui | package.json | error | +| react-resizable | package.json | error | | git-url-parse | package.json | error | +## Unused devDependencies (1) + +| Name | Location | Severity | +| :--------------------- | :----------- | :------- | +| @types/react-resizable | package.json | error | + diff --git a/plugins/search-backend-module-catalog/knip-report.md b/plugins/search-backend-module-catalog/knip-report.md index 5a09f2cded..2661c35327 100644 --- a/plugins/search-backend-module-catalog/knip-report.md +++ b/plugins/search-backend-module-catalog/knip-report.md @@ -1,9 +1,2 @@ # Knip report -## Unused devDependencies (2) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | -| msw | package.json | error | - diff --git a/plugins/search-backend-module-catalog/package.json b/plugins/search-backend-module-catalog/package.json index ab00046d36..aa13dc01c4 100644 --- a/plugins/search-backend-module-catalog/package.json +++ b/plugins/search-backend-module-catalog/package.json @@ -47,10 +47,8 @@ "@backstage/plugin-search-common": "workspace:^" }, "devDependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-test-utils": "workspace:^", - "@backstage/cli": "workspace:^", - "msw": "^1.0.0" + "@backstage/cli": "workspace:^" }, "configSchema": "config.d.ts" } diff --git a/plugins/search-backend-module-pg/knip-report.md b/plugins/search-backend-module-pg/knip-report.md index 2fbb979fec..2661c35327 100644 --- a/plugins/search-backend-module-pg/knip-report.md +++ b/plugins/search-backend-module-pg/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused dependencies (1) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | - diff --git a/plugins/search-backend-module-pg/package.json b/plugins/search-backend-module-pg/package.json index 8bbdb6e965..f7530637c2 100644 --- a/plugins/search-backend-module-pg/package.json +++ b/plugins/search-backend-module-pg/package.json @@ -49,7 +49,6 @@ "test": "backstage-cli package test" }, "dependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-plugin-api": "workspace:^", "@backstage/config": "workspace:^", "@backstage/plugin-search-backend-node": "workspace:^", diff --git a/plugins/search-backend-node/knip-report.md b/plugins/search-backend-node/knip-report.md index ec020eab9a..2661c35327 100644 --- a/plugins/search-backend-node/knip-report.md +++ b/plugins/search-backend-node/knip-report.md @@ -1,8 +1,2 @@ # Knip report -## Unused devDependencies (1) - -| Name | Location | Severity | -| :------------------------ | :----------- | :------- | -| @backstage/backend-common | package.json | error | - diff --git a/plugins/search-backend-node/package.json b/plugins/search-backend-node/package.json index 409cdbbd9d..172e273092 100644 --- a/plugins/search-backend-node/package.json +++ b/plugins/search-backend-node/package.json @@ -65,7 +65,6 @@ "uuid": "^11.0.0" }, "devDependencies": { - "@backstage/backend-common": "^0.25.0", "@backstage/backend-defaults": "workspace:^", "@backstage/backend-test-utils": "workspace:^", "@backstage/cli": "workspace:^", diff --git a/yarn.lock b/yarn.lock index d2f3bfbe85..c5f21afd7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5645,7 +5645,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-auth-node@workspace:plugins/auth-node" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-defaults": "workspace:^" "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" @@ -5666,7 +5665,6 @@ __metadata: passport: ^0.7.0 supertest: ^7.0.0 uuid: ^11.0.0 - winston: ^3.2.1 zod: ^3.22.4 zod-to-json-schema: ^3.21.4 zod-validation-error: ^3.4.0 @@ -7979,7 +7977,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-search-backend-module-catalog@workspace:plugins/search-backend-module-catalog" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" "@backstage/catalog-client": "workspace:^" @@ -7992,7 +7989,6 @@ __metadata: "@backstage/plugin-permission-common": "workspace:^" "@backstage/plugin-search-backend-node": "workspace:^" "@backstage/plugin-search-common": "workspace:^" - msw: ^1.0.0 languageName: unknown linkType: soft @@ -8038,7 +8034,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-search-backend-module-pg@workspace:plugins/search-backend-module-pg" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" "@backstage/cli": "workspace:^" @@ -8093,7 +8088,6 @@ __metadata: version: 0.0.0-use.local resolution: "@backstage/plugin-search-backend-node@workspace:plugins/search-backend-node" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-defaults": "workspace:^" "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" @@ -10873,20 +10867,17 @@ __metadata: version: 0.0.0-use.local resolution: "@internal/plugin-todo-list-backend@workspace:plugins/example-todo-list-backend" dependencies: - "@backstage/backend-common": ^0.25.0 "@backstage/backend-defaults": "workspace:^" "@backstage/backend-plugin-api": "workspace:^" "@backstage/backend-test-utils": "workspace:^" "@backstage/cli": "workspace:^" "@backstage/errors": "workspace:^" - "@backstage/plugin-auth-node": "workspace:^" "@types/express": ^4.17.6 "@types/supertest": ^2.0.8 express: ^4.17.1 express-promise-router: ^4.1.0 supertest: ^7.0.0 uuid: ^11.0.0 - yn: ^4.0.0 languageName: unknown linkType: soft From 4eca4997db867a1aa8074d961765a4e29ef8c1a1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:21:52 +0000 Subject: [PATCH 52/64] fix(deps): update dependency @electric-sql/pglite to v0.2.16 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 2cfedabe61..f0d1f915e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9435,9 +9435,9 @@ __metadata: linkType: hard "@electric-sql/pglite@npm:^0.2.14, @electric-sql/pglite@npm:^0.2.15": - version: 0.2.15 - resolution: "@electric-sql/pglite@npm:0.2.15" - checksum: 714136449bdbef92ffc8475ba2237418bbdcef3bdbeb0eb43ab2e9f5fc4c2d9c67c41cbcd1e5ad7ba758d22f1bfb996a3f372745509845e55d9f69349f396aca + version: 0.2.16 + resolution: "@electric-sql/pglite@npm:0.2.16" + checksum: be5b8706ebf3728b910ad38e9492f75aee3efa276d1448ec136c42e7724b17e2e9e7cb4a1922fd013e816fde2c64752a0878f64714933179a7770def5342a611 languageName: node linkType: hard From 9bfa259d9c35e8c150094b8f47d0cb1b76d8640b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:48:54 +0000 Subject: [PATCH 53/64] fix(deps): update dependency @next/mdx to v15.1.6 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- canon-docs/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/canon-docs/yarn.lock b/canon-docs/yarn.lock index 8536d9adcb..1b5d88800f 100644 --- a/canon-docs/yarn.lock +++ b/canon-docs/yarn.lock @@ -518,8 +518,8 @@ __metadata: linkType: hard "@next/mdx@npm:^15.1.4": - version: 15.1.5 - resolution: "@next/mdx@npm:15.1.5" + version: 15.1.6 + resolution: "@next/mdx@npm:15.1.6" dependencies: source-map: ^0.7.0 peerDependencies: @@ -530,7 +530,7 @@ __metadata: optional: true "@mdx-js/react": optional: true - checksum: f73103abce4ca2e15a6d06b0c6e16988e5651ca09890d6a0017c913b30018dc87d275dc7a8fed30dab338af5e1c3822f1a74af83d6fa6bee02edb936bbd51566 + checksum: 3b46e99934543df94bcb335dddab794db4fcaff09223343e9e00597d3df1e094f16dd619c433fb2fa7fff38c3da57b3118cbc010cdeb9790d0cf01e6c37016e8 languageName: node linkType: hard From 3b4d9715725d80f8744be58c152e8c5dc570cf61 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 17:34:13 +0000 Subject: [PATCH 54/64] fix(deps): update dependency google-auth-library to v9.15.1 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 46ed867265..4a3c690401 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30790,8 +30790,8 @@ __metadata: linkType: hard "google-auth-library@npm:^9.0.0, google-auth-library@npm:^9.2.0, google-auth-library@npm:^9.3.0, google-auth-library@npm:^9.6.3, google-auth-library@npm:^9.7.0": - version: 9.15.0 - resolution: "google-auth-library@npm:9.15.0" + version: 9.15.1 + resolution: "google-auth-library@npm:9.15.1" dependencies: base64-js: ^1.3.0 ecdsa-sig-formatter: ^1.0.11 @@ -30799,7 +30799,7 @@ __metadata: gcp-metadata: ^6.1.0 gtoken: ^7.0.0 jws: ^4.0.0 - checksum: 7ff63ff755ce43601a1780cfbe6d8b523792bfd2b653a27180e41735b9f0ba5689668eb8b079c915300041e412ec00b7635b5c26e0f2139fecacb346b6f9f12f + checksum: 1c7660b7d21504a58b6b7780b0ca56f07a4d2b68d2ca14e5c4beaedd45cc4898baa8df1cfaf4dac15413a8db3cecc00e84662d8a327f9b9488ff2df7d8d23c84 languageName: node linkType: hard From e0a7385964ac61c87d9613f37fcd835fd48c057c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 18:26:01 +0000 Subject: [PATCH 55/64] fix(deps): update dependency notistack to v3.0.2 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index abb29b9521..4654e0fb9d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -37853,15 +37853,15 @@ __metadata: linkType: hard "notistack@npm:^3.0.1": - version: 3.0.1 - resolution: "notistack@npm:3.0.1" + version: 3.0.2 + resolution: "notistack@npm:3.0.2" dependencies: clsx: ^1.1.0 goober: ^2.0.33 peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 421c970308690b8c8cb2e275e7f66020db7c1955e104f638e7fa562396a6b9322ff95f0e62492b07f3d36b0ef72adb4de2c2ce9803089c1c8f028d1a3b088e01 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: f7d6d2edb43496a1132b9dd10d1f3b962567c92edf4d577b28ff4e6c9877cf0a50cc0a16f6d7834e3772093051597192a620dd36d4108597b118e8a2ad47d048 languageName: node linkType: hard From 1dae635c98d104576e44da737c1d88d69b9faddc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 20:51:38 +0000 Subject: [PATCH 56/64] fix(deps): update dependency swagger-ui-react to v5.18.3 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 612 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 343 insertions(+), 269 deletions(-) diff --git a/yarn.lock b/yarn.lock index 4654e0fb9d..c53354806a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18258,447 +18258,480 @@ __metadata: languageName: node linkType: hard -"@swagger-api/apidom-ast@npm:^1.0.0-alpha.10, @swagger-api/apidom-ast@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-ast@npm:1.0.0-alpha.10" +"@swagger-api/apidom-ast@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ast@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-error": ^1.0.0-alpha.10 + "@swagger-api/apidom-error": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 unraw: ^3.0.0 - checksum: c66835eb81f02bf2ec3a0c98888090857c4d13372711e0c5fdab2d8bef322f024cf73a0243fa2958baa32cc138259167b17af75d3b7b87d54aae61c6fda6a5b9 + checksum: 13ac091d9f66bc66d64fcce49b77e8205dc2abc1f5888e396e36b321aad60a974e0deb308f0dbcbd771d7871f8f23fe0cc3169d4d76d7b0b980bf2543c72c445 languageName: node linkType: hard -"@swagger-api/apidom-core@npm:>=1.0.0-alpha.9 <1.0.0-beta.0, @swagger-api/apidom-core@npm:^1.0.0-alpha.10, @swagger-api/apidom-core@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-core@npm:1.0.0-alpha.10" +"@swagger-api/apidom-core@npm:>=1.0.0-beta.11 <1.0.0-rc.0, @swagger-api/apidom-core@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-core@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-ast": ^1.0.0-alpha.10 - "@swagger-api/apidom-error": ^1.0.0-alpha.10 + "@swagger-api/apidom-ast": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 minim: ~0.23.8 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 short-unique-id: ^5.0.2 ts-mixer: ^6.0.3 - checksum: aa21d777be2871564946df5d5c9a07716a58e7fa864af8cc06c4a5cf4dba664c8aa949df1f2ba0a940dcec6fcc9c95307c2f19e212b5dcce5066cec4b401a627 + checksum: b788539ae8ac576b0238e16f30ce88ec2aafdae4cfcb4aa09c077e3e4e9907320fbe2a0709561608ee0ec590a884982e43a0d50690914eabb8e69ac7798743ac languageName: node linkType: hard -"@swagger-api/apidom-error@npm:>=1.0.0-alpha.9 <1.0.0-beta.0, @swagger-api/apidom-error@npm:^1.0.0-alpha.1, @swagger-api/apidom-error@npm:^1.0.0-alpha.10, @swagger-api/apidom-error@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-error@npm:1.0.0-alpha.10" +"@swagger-api/apidom-error@npm:>=1.0.0-beta.11 <1.0.0-rc.0, @swagger-api/apidom-error@npm:^1.0.0-beta.11, @swagger-api/apidom-error@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-error@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - checksum: 1a70b5186bc2dc7738ec91c6037676d358b5a134071758114b38f43286a431b83e0bea23f725b08633e66ce6a93d00bfb3221df69cbd197634851d99d6e5ab15 + checksum: d7e88dd56fb39c533b26384ea530cd3da38cf2855a18c22a0dd1770ecacd1989c9c6ec33efcebb226eb211ef0d0b0e962f68cde1071bcbd92a7f1d0bb87a3486 languageName: node linkType: hard -"@swagger-api/apidom-json-pointer@npm:>=1.0.0-alpha.9 <1.0.0-beta.0, @swagger-api/apidom-json-pointer@npm:^1.0.0-alpha.1, @swagger-api/apidom-json-pointer@npm:^1.0.0-alpha.10": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-json-pointer@npm:1.0.0-alpha.10" +"@swagger-api/apidom-json-pointer@npm:>=1.0.0-beta.11 <1.0.0-rc.0, @swagger-api/apidom-json-pointer@npm:^1.0.0-beta.11, @swagger-api/apidom-json-pointer@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-json-pointer@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.10 - "@swagger-api/apidom-error": ^1.0.0-alpha.10 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 92e8b40921a739e257d84f8b1b1df4eb9954f16a4523350d5bf50611c12ecf9d2a75401c30a3bb91af9351a93002e7339042ea095a04a59097a53a1107944833 + checksum: b313d83c2e7fc7c4d93482f72fff987a2cf1e25835f1999c8e96ce3ff66f292cb878a93433e841dcb9aadf511288a52afdfeeced702426041dbafecbbcaf4c72 languageName: node linkType: hard -"@swagger-api/apidom-ns-api-design-systems@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-ns-api-design-systems@npm:1.0.0-alpha.5" +"@swagger-api/apidom-ns-api-design-systems@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-api-design-systems@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-error": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.3 - checksum: 8f90e1c432723779b6a8e7cda18cc7b779744b970d1c2eebf13d413b291fec12c08125d6b03895c8423a17f7c4e53a1b22c0364af7c80b4f947589408a92d9ee + checksum: dbc27e61c610d668f8578f7de0ea6e1c3295716c2587566196865cc6b065582e9a2e8f526c8ad704aeef267b0e3dfb68a12e8901c449e2ade4b83abed1a0966c languageName: node linkType: hard -"@swagger-api/apidom-ns-asyncapi-2@npm:^1.0.0-alpha.1, @swagger-api/apidom-ns-asyncapi-2@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-ns-asyncapi-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-ns-asyncapi-2@npm:^1.0.0-beta.11, @swagger-api/apidom-ns-asyncapi-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-asyncapi-2@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-json-schema-draft-7": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-draft-7": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.3 - checksum: 74c99ed370ce93675d2987be5956daae9a8f6e360af9eb3d28b8df44063f50e23741356195fdccd9b7da233ab2498e76833626ca37ad129a9bd0be059b66ff20 + checksum: 8f18d9f9f1e7168569bab85a42303569fd38e15bdafbd4bda3665a4ca2536b0bd5574f7ce36f03d40837ee1826ea942fe77964ef5b1de0a1bef09975f5ee8ac2 languageName: node linkType: hard -"@swagger-api/apidom-ns-json-schema-draft-4@npm:^1.0.0-alpha.10, @swagger-api/apidom-ns-json-schema-draft-4@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-ns-json-schema-draft-4@npm:1.0.0-alpha.10" +"@swagger-api/apidom-ns-json-schema-2019-09@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-json-schema-2019-09@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-ast": ^1.0.0-alpha.10 - "@swagger-api/apidom-core": ^1.0.0-alpha.10 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-draft-7": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.4 - checksum: 162c3db6ded4ad458c4e8ec5e2c60fd5779096fd68929571396dabf6f1bf2d03c92d53ae45f62363360ea90448af90d224e32c67bc2288e86a60a0afba6f4c86 + checksum: 305fe890b962945c5504769e45b6bd50acdf814aba7ff9a0ffc904a6428648824b047e1556a27e0a32316a930c60613cbfa4bb3f91bf311b1153e6ef5e1de044 languageName: node linkType: hard -"@swagger-api/apidom-ns-json-schema-draft-6@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-ns-json-schema-draft-6@npm:1.0.0-alpha.5" +"@swagger-api/apidom-ns-json-schema-2020-12@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-json-schema-2020-12@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-error": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-json-schema-draft-4": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-2019-09": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.4 - checksum: 4830854843eaeff10ed06d687f7cf844ffa74df86dbb65812c34cd1ba56614e07602be0bd8edb372b286f24ca2228ebfe04f2b86728fc86207eb6762d2a73cd8 + checksum: c26acbfc2d067ad619a7743d1cbde9b3baa27a739722ae396288851b58df4204936cfb4241fde336e066fcb8e3d7ec0dd7568669b2df47351a40e7f68ed2258c languageName: node linkType: hard -"@swagger-api/apidom-ns-json-schema-draft-7@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-ns-json-schema-draft-7@npm:1.0.0-alpha.5" +"@swagger-api/apidom-ns-json-schema-draft-4@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-json-schema-draft-4@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-error": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-json-schema-draft-6": ^1.0.0-alpha.5 + "@swagger-api/apidom-ast": ^1.0.0-beta.11 + "@swagger-api/apidom-core": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.4 - checksum: fb05b7cc0c451f7dac94f5ea306df91b53d8c3c595f8a92fe7130b6e03039a7e622c26a7659050243c9dd3f549b63aa69d7cd49c8b36e51539dfff96c8d7b98b + checksum: bcabb70bdd2730fc54acf69e3dd8d346524a177666d34cb7909759fc03bdc6b6777525d91e1e412b42659d59500884d1ffddca689558f4f73b3f8d114ebb7dc2 languageName: node linkType: hard -"@swagger-api/apidom-ns-openapi-2@npm:^1.0.0-alpha.1, @swagger-api/apidom-ns-openapi-2@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-ns-openapi-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-ns-json-schema-draft-6@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-json-schema-draft-6@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-error": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-json-schema-draft-4": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-draft-4": ^1.0.0-beta.11 + "@types/ramda": ~0.30.0 + ramda: ~0.30.0 + ramda-adjunct: ^5.0.0 + ts-mixer: ^6.0.4 + checksum: fefd496cea79b6ee952a6f98f7c2938b0ccbe46b5402d0cdfa9287929c841e7dfeaab73d5d0dfa6482e3a56017ea05c0a714d635b33c562b572244feea308412 + languageName: node + linkType: hard + +"@swagger-api/apidom-ns-json-schema-draft-7@npm:^1.0.0-beta.11": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-json-schema-draft-7@npm:1.0.0-beta.11" + dependencies: + "@babel/runtime-corejs3": ^7.20.7 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-draft-6": ^1.0.0-beta.11 + "@types/ramda": ~0.30.0 + ramda: ~0.30.0 + ramda-adjunct: ^5.0.0 + ts-mixer: ^6.0.4 + checksum: 34252171f05d88efab652f318a3baa1f3d28eab731c5bfc426226b1830a5312af20e78e7907b9ab8c8a6ac2be78e946caccede14ee03b026c1048ec18b87f5e1 + languageName: node + linkType: hard + +"@swagger-api/apidom-ns-openapi-2@npm:^1.0.0-beta.11, @swagger-api/apidom-ns-openapi-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-openapi-2@npm:1.0.0-beta.11" + dependencies: + "@babel/runtime-corejs3": ^7.20.7 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-draft-4": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.3 - checksum: 46bd04283494af26f64baf693493724b7799cc3c312d1e6899f28197c3eeb36eb7344566d1dbb3640a4284757aa21b9e206c7efe23b00920154a870365d818c1 + checksum: c701ab7e892daefd3720a3351efbb027defa80437ce92e067a12faf801c887abe39c1ce9f73f3625df30db0ba62ec6af680648ee5958d50610f19f0cad0cc24a languageName: node linkType: hard -"@swagger-api/apidom-ns-openapi-3-0@npm:^1.0.0-alpha.1, @swagger-api/apidom-ns-openapi-3-0@npm:^1.0.0-alpha.10, @swagger-api/apidom-ns-openapi-3-0@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-ns-openapi-3-0@npm:1.0.0-alpha.10" +"@swagger-api/apidom-ns-openapi-3-0@npm:^1.0.0-beta.11, @swagger-api/apidom-ns-openapi-3-0@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-openapi-3-0@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.10 - "@swagger-api/apidom-error": ^1.0.0-alpha.10 - "@swagger-api/apidom-ns-json-schema-draft-4": ^1.0.0-alpha.10 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-draft-4": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.3 - checksum: cd4928005a9f2892c9af08d3900e6842c5980bc497ebe37c1276f479d5339ae5dcbfa64e43dc3ea8075291bae7c5d5e9a935a788ac41d90d08fc04356bdb4cb5 + checksum: 1a28904f81d9f14b4b111f651ce2d0357fcebf4712538734174ea527538ab21c8a80902f747c39515ad26a77929fad1557cf0ab3e58038b1d2497c45c1c8e458 languageName: node linkType: hard -"@swagger-api/apidom-ns-openapi-3-1@npm:>=1.0.0-alpha.9 <1.0.0-beta.0, @swagger-api/apidom-ns-openapi-3-1@npm:^1.0.0-alpha.1, @swagger-api/apidom-ns-openapi-3-1@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-ns-openapi-3-1@npm:1.0.0-alpha.10" +"@swagger-api/apidom-ns-openapi-3-1@npm:>=1.0.0-beta.11 <1.0.0-rc.0, @swagger-api/apidom-ns-openapi-3-1@npm:^1.0.0-beta.11, @swagger-api/apidom-ns-openapi-3-1@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-openapi-3-1@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-ast": ^1.0.0-alpha.10 - "@swagger-api/apidom-core": ^1.0.0-alpha.10 - "@swagger-api/apidom-json-pointer": ^1.0.0-alpha.10 - "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-alpha.10 + "@swagger-api/apidom-ast": ^1.0.0-beta.11 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-json-pointer": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-2020-12": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.3 - checksum: e7587720a2aff8b887897591fe77bbecbfa6e67d4f1d1f29f96c74ccc8ef5793d74f3f517c38d5d9cbbf6e5ee855c1a0e97edebe41a54ac47d590a63e43ef196 + checksum: f8ebd3f29029113b498a86ec123cf95e8a61c94402b4c1a7194c0ae6947f5b4370723821976a0fbdc57dab55bc12a66f63b7339e734ed13f742267586cb4b10a languageName: node linkType: hard -"@swagger-api/apidom-ns-workflows-1@npm:^1.0.0-alpha.1, @swagger-api/apidom-ns-workflows-1@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-ns-workflows-1@npm:1.0.0-alpha.5" +"@swagger-api/apidom-ns-workflows-1@npm:^1.0.0-beta.11, @swagger-api/apidom-ns-workflows-1@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-ns-workflows-1@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-json-schema-2020-12": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 ts-mixer: ^6.0.3 - checksum: a69da0674172309ff171f7a52826e781051ba10df713bba89a5c15f5a846c1100dc9e9ac695682fd44483c02fab1ee6174abe692fe7615d3969ea01c788a7736 + checksum: 19e56de28d9c8dab739bd0b16d8b37b86a4ecbe3c6b678a21191f846bd9f87b1a5cfd949bbaa90fb6418d75d005cb94f21c7445e9a4406e6731fe8ed9a2f601f languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-api-design-systems-json@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-api-design-systems-json@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-api-design-systems-json@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-api-design-systems-json@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-api-design-systems": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-api-design-systems": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 53946807d3c4599d0439a7347ee4c6392a07c80b1328b09b23c752dd93d8c3227a32553be309ded5d7270d6fc493467433f199a42179c92d5cf3d01d4a538c67 + checksum: 8a0692769d9496506760ca9c05f8a081a8f614d48a392698b89ec5a0b0ce24b1967283c65df006ed683211913109a64a768fe896137df084f31a6fe180a0cbf6 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-api-design-systems-yaml@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-api-design-systems-yaml@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-api-design-systems-yaml@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-api-design-systems-yaml@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-api-design-systems": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-api-design-systems": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 488b8491a9936619a011330feb4b9394d4337c32d13e4c2b175e16415ac15eb09247b5325948f5957bc2ea0beef255d39ef9ec86ad9a80bfbf7b41f69e999d7f + checksum: 1c3c4a2528d3d54e4248f6e2c0e3af75d3380be3bba9879777c69bcfeacc7186667594e77c37eaf513fce9082e478f450780dacf0248276787234119ba4fcb8c languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-asyncapi-json-2@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-asyncapi-json-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-asyncapi-json-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-asyncapi-json-2@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-asyncapi-2": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-asyncapi-2": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 3079f33fd5c03ce8d506a8a5bcfb5f582b303280b168395b5617a8f498953575e4c41fbc33ca08f195620f9a6e8bd569baca0900f30d00d556397f923c5eeaa4 + checksum: c4cc027bfa4791197fd5d357a0bdbdcb7a25f8a5f6103454c2153afba0bca0d38d7ed70488e054e23b55858bdcf2bba07d4d3b424d20ecb9a1ffbc0821a0535d languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-asyncapi-yaml-2@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-asyncapi-yaml-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-asyncapi-2": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-asyncapi-2": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 75d563566df0690cd27c8e464924e33c73266b633109cc8c0ee3915d3e94ceb192f833a50e7fbb42c354b7fdf6e2edfacda994cae4a82f6abc44f149a74ab8b5 + checksum: d7da214e7f89167b527ec8e042a13bf7e83460f82bda36b5d3f32600730fd7fb73daa0149d3d9271eb2e48edb61f304047a805e1b954fcc7ccc7f31acbf1fe1e languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-json@npm:^1.0.0-alpha.1, @swagger-api/apidom-parser-adapter-json@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-json@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-json@npm:^1.0.0-beta.11, @swagger-api/apidom-parser-adapter-json@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-json@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-ast": ^1.0.0-alpha.5 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-error": ^1.0.0-alpha.5 + "@swagger-api/apidom-ast": ^1.0.0-beta.11 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 node-gyp: latest ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - tree-sitter: =0.20.4 - tree-sitter-json: =0.20.2 - web-tree-sitter: =0.20.3 - checksum: c02a478c578d2f98b82c1f920240e22f856ae5b2c92b8f4b85fd80337c8112ca5b6b82b4a4a51a0cf0fc364a32af5deb1856d4a6bcdc27b07a2ba14f3255e3fa + tree-sitter: =0.22.1 + tree-sitter-json: =0.24.8 + web-tree-sitter: =0.24.5 + checksum: 0a4b31611d1bd49b83d64d30035f1a48465a504403140d150392ebb41cd59a2773677e5e9c6a042d4ba8fc000354c59e507a6ec9bc6e031f1cce9af1e51f2808 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-openapi-json-2@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-openapi-json-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-openapi-json-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-openapi-json-2@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-2": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-2": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 273172f3a2b5aaf685b0fa5cdff28b026d4825018f0b24b3e3e942773037240a2e328c77a18df3e8e96a549d33f880033474bac90ac0ad1ad9ee643b7f4230b6 + checksum: 39dc4bf679146c89455c171469059a84898a63c5868d15aa36af4aef35802c7a731ffbeae4933dc7768e9dd2af0e4bd270c29fd41306ef78e6992b47de3da3e7 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-openapi-json-3-0@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-openapi-json-3-0@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-openapi-json-3-0@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-openapi-json-3-0@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 962c6c0ee03303f205bec71c02b39736aad9e02e27a7edfdf3666b7f4375e51193f650077f884c04858682776cdc0f1f9427277e2f62e676ef0a877b7fa5af43 + checksum: 91a56b07887a4215c5f0cfe8d754b68f2cd71f49071bba46438123e7168d418c9423fdaaab30266789c5609f07612613846e87ccb18ca79b8912fb95797fa5ae languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-openapi-json-3-1@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-openapi-json-3-1@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-openapi-json-3-1@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-openapi-json-3-1@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 1eef1d3682478f18668cf7dc13fbfd13be7931e8c94042a3916c73653685cd79d916c93d00d4ce44478bee6a59616fabf0cd76ca4decdd78e283caa1660112a7 + checksum: b67de13c56ffabc69d0daa7e07f36793014731b90fa3672d6d46c26ccc472451ed8c2556da8a04ff578ed1ad4c1f3d6ed4fc83a554e6095e6ee001d2f9c200b0 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-openapi-yaml-2@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-openapi-yaml-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-openapi-yaml-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-openapi-yaml-2@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-2": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-2": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 61da4b37175c7ebc45447b95f1d67837d2a9a97a22c9067e7be38b41e86c7ccd9367260031fa1e22f256f1e6f9fa2ba58a486cd70823f3aa1e683fa8981ef657 + checksum: 4494f2dc184e720d67818d4f87df5da2034a4a596f7c9e3e8307159598ca6ea75547ce988f0b42b0c980178c259410a1893688e4faf2cd4093240b8775bba67e languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-openapi-yaml-3-0@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-openapi-yaml-3-0@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 1a2d48ef31d4331259c55e49c30abbf9c45e488a5df0084da716492aff94b8c0f5d20619189783792f8964f6a2a4731e442ea693389e86069a7c5d3bae106465 + checksum: ec02b2cddd2fdf164fa467f62f7472010540347c9cf43cc73e91ed811dac230dfdf69db5b11197f1566f6e8ef70f3f48553d9fb6b1dd23ff20c8c80ae0cfaa5b languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-openapi-yaml-3-1@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-openapi-yaml-3-1@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: 6e74a5db37f834b43c2c9f26371183b5cdd5ef692c301e9d59345a2abbf81ae2813d75e3aed3eb4dcd2310cca81fc8e876731149925e13671fe058a761b5bba5 + checksum: 4d8a45b63119a6e7cd836fc4aa1bf00155b8a00ee68488920b14265168dd92a64cf99d8a45a5cf6232301f096d78ccb2a1471173405f7b28371e8c2055feef88 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-workflows-json-1@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-workflows-json-1@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-workflows-json-1@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-workflows-json-1@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-workflows-1": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-workflows-1": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: fcdd06da2f9e78b665135fcb194aec7de68d788ce81aab4b3025a3991cc5b393b36a48b1314cfc7a7107143988da3362da4f2ce17631bbef6afb049c30f39455 + checksum: 7a01ed3f2aaada974b6230aa018dc160e33c68327fc88e623813ec5388e5e8c781e89c1df7b7f0d25dd44723d4bdf5c8e3a38f1ca979500fee06e21a02747212 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-workflows-yaml-1@npm:^1.0.0-alpha.1": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-workflows-yaml-1@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-workflows-yaml-1@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-workflows-yaml-1@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-ns-workflows-1": ^1.0.0-alpha.5 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.5 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-ns-workflows-1": ^1.0.0-beta.11 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.11 "@types/ramda": ~0.30.0 ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - checksum: ebce7c54a0081dbda5cc4156af0ab4593e4fa61273079cb9a3b5416cad470e9df6b6964dfd494e372825052a51b42b4142201305dc9a0a1a72b3e4ebac16b665 + checksum: 75a3a23815a1b1bb72b44a244390a93b796f89ef1645c49155f657223a6f7c35d1b87508deb331a1cc583bb5a75dcc35360238cfc2a37655ea4aceac406fabf7 languageName: node linkType: hard -"@swagger-api/apidom-parser-adapter-yaml-1-2@npm:^1.0.0-alpha.1, @swagger-api/apidom-parser-adapter-yaml-1-2@npm:^1.0.0-alpha.5": - version: 1.0.0-alpha.5 - resolution: "@swagger-api/apidom-parser-adapter-yaml-1-2@npm:1.0.0-alpha.5" +"@swagger-api/apidom-parser-adapter-yaml-1-2@npm:^1.0.0-beta.11, @swagger-api/apidom-parser-adapter-yaml-1-2@npm:^1.0.0-beta.3 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-parser-adapter-yaml-1-2@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-ast": ^1.0.0-alpha.5 - "@swagger-api/apidom-core": ^1.0.0-alpha.5 - "@swagger-api/apidom-error": ^1.0.0-alpha.5 + "@swagger-api/apidom-ast": ^1.0.0-beta.11 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.11 + "@tree-sitter-grammars/tree-sitter-yaml": =0.7.0 "@types/ramda": ~0.30.0 node-gyp: latest ramda: ~0.30.0 ramda-adjunct: ^5.0.0 - tree-sitter: =0.20.4 - tree-sitter-yaml: =0.5.0 - web-tree-sitter: =0.20.3 - checksum: 8738abe67da0d38b519b4c60eb3081e219060ad5164eb85d455020e3b28d64e89390300c3bc162f05a182447aa7ca8c9c6af2ad2581aa2318ccb4bc133de902b + tree-sitter: =0.22.1 + web-tree-sitter: =0.24.5 + checksum: f700f7993a25279ba2ea5326525052ed2bd73a700d094ed28d288067cfa4868716f27e2223a26109f8b4611ec16704fe8e4adaeb3ef0f8551e65e27a4a11570f languageName: node linkType: hard -"@swagger-api/apidom-reference@npm:>=1.0.0-alpha.9 <1.0.0-beta.0": - version: 1.0.0-alpha.10 - resolution: "@swagger-api/apidom-reference@npm:1.0.0-alpha.10" +"@swagger-api/apidom-reference@npm:>=1.0.0-beta.11 <1.0.0-rc.0": + version: 1.0.0-beta.11 + resolution: "@swagger-api/apidom-reference@npm:1.0.0-beta.11" dependencies: "@babel/runtime-corejs3": ^7.20.7 - "@swagger-api/apidom-core": ^1.0.0-alpha.10 - "@swagger-api/apidom-error": ^1.0.0-alpha.1 - "@swagger-api/apidom-json-pointer": ^1.0.0-alpha.1 - "@swagger-api/apidom-ns-asyncapi-2": ^1.0.0-alpha.1 - "@swagger-api/apidom-ns-openapi-2": ^1.0.0-alpha.1 - "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-alpha.1 - "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-alpha.1 - "@swagger-api/apidom-ns-workflows-1": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-api-design-systems-json": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-asyncapi-json-2": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-json": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-openapi-json-2": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-openapi-json-3-0": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-openapi-json-3-1": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-openapi-yaml-2": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-workflows-json-1": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-workflows-yaml-1": ^1.0.0-alpha.1 - "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-alpha.1 + "@swagger-api/apidom-core": ^1.0.0-beta.11 + "@swagger-api/apidom-error": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-json-pointer": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-ns-asyncapi-2": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-ns-openapi-2": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-ns-openapi-3-0": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-ns-openapi-3-1": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-ns-workflows-1": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-api-design-systems-json": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-asyncapi-json-2": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-json": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-openapi-json-2": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-openapi-json-3-0": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-openapi-json-3-1": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-openapi-yaml-2": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-workflows-json-1": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-workflows-yaml-1": ^1.0.0-beta.3 <1.0.0-rc.0 + "@swagger-api/apidom-parser-adapter-yaml-1-2": ^1.0.0-beta.3 <1.0.0-rc.0 "@types/ramda": ~0.30.0 axios: ^1.7.4 minimatch: ^7.4.3 @@ -18748,7 +18781,16 @@ __metadata: optional: true "@swagger-api/apidom-parser-adapter-yaml-1-2": optional: true - checksum: d30ea82a49489c011b7c741beef40bf6e9c4cc3e64a08c7bfbd80fde0572597b0be694cd7f40bde1abe2bd19c9ac5aa862692295347e65f2bfb93a8aae3fd66b + checksum: d819286ce0e676989ee88f989f7fbad91ce9ec2aeb2f1b698d7cc26d656d90d1c54bfb89b51feb868d93179d6747c0ce9fcab2f3b239cde6fe0112973dff8774 + languageName: node + linkType: hard + +"@swaggerexpert/cookie@npm:^1.4.1": + version: 1.4.1 + resolution: "@swaggerexpert/cookie@npm:1.4.1" + dependencies: + apg-lite: ^1.0.3 + checksum: bf65dfe95cd4943e6740c2d9744460e81d137509ea95d2ab0a9e4e41b5533ed2ddaba96ffbd49d09088a8b39c4f4c71775b2d607243525209ba90b00d800d0bd languageName: node linkType: hard @@ -19080,6 +19122,22 @@ __metadata: languageName: node linkType: hard +"@tree-sitter-grammars/tree-sitter-yaml@npm:=0.7.0": + version: 0.7.0 + resolution: "@tree-sitter-grammars/tree-sitter-yaml@npm:0.7.0" + dependencies: + node-addon-api: ^8.3.0 + node-gyp: latest + node-gyp-build: ^4.8.4 + peerDependencies: + tree-sitter: ^0.22.1 + peerDependenciesMeta: + tree-sitter: + optional: true + checksum: e1483d30b3f7604b111a86f854522a5dc880f2d7fb552150628f5186063fb537631d696fc1713da040a6d4bbac8fbf8b4a7eb5cb1d72d1cfb72af1f849899961 + languageName: node + linkType: hard + "@trendyol-js/openstack-swift-sdk@npm:^0.0.7": version: 0.0.7 resolution: "@trendyol-js/openstack-swift-sdk@npm:0.0.7" @@ -22895,10 +22953,10 @@ __metadata: languageName: node linkType: hard -"apg-lite@npm:^1.0.3": - version: 1.0.3 - resolution: "apg-lite@npm:1.0.3" - checksum: 69b2aaac4e479eb1afba6376802666ccc2384d9846474ebdd86f8ca9bd5754eea9d13038766bf67696f892e157fb577101ae40a69175c2d679c2898c0eaab5d8 +"apg-lite@npm:^1.0.3, apg-lite@npm:^1.0.4": + version: 1.0.4 + resolution: "apg-lite@npm:1.0.4" + checksum: 30a27eecb71350a6dd47f8944520e56c08063115197e8de15699b792e32101b452ff339cf9d5469db7a992b0f2f8659c16f72f24ab7465683fb7e6cf0dc4afcd languageName: node linkType: hard @@ -25766,7 +25824,7 @@ __metadata: languageName: node linkType: hard -"cookie@npm:0.7.2, cookie@npm:^0.7.0, cookie@npm:^0.7.2, cookie@npm:~0.7.2": +"cookie@npm:0.7.2, cookie@npm:^0.7.0, cookie@npm:^0.7.2": version: 0.7.2 resolution: "cookie@npm:0.7.2" checksum: 9bf8555e33530affd571ea37b615ccad9b9a34febbf2c950c86787088eb00a8973690833b0f8ebd6b69b753c62669ea60cec89178c1fb007bf0749abed74f93e @@ -37285,7 +37343,7 @@ __metadata: languageName: node linkType: hard -"nan@npm:^2.14.0, nan@npm:^2.17.0, nan@npm:^2.18.0": +"nan@npm:^2.17.0, nan@npm:^2.18.0": version: 2.18.0 resolution: "nan@npm:2.18.0" dependencies: @@ -37489,6 +37547,15 @@ __metadata: languageName: node linkType: hard +"node-addon-api@npm:^8.2.1, node-addon-api@npm:^8.2.2, node-addon-api@npm:^8.3.0": + version: 8.3.0 + resolution: "node-addon-api@npm:8.3.0" + dependencies: + node-gyp: latest + checksum: 87fd087f0887e91c5608ac3c99e3f374403074c9cff2c335b061b0c68a183e4cd561fb9a8b0a583f0145c9b7753180b2be0c232ef01bb97796ccf4486c87958a + languageName: node + linkType: hard + "node-cache@npm:^5.1.2": version: 5.1.2 resolution: "node-cache@npm:5.1.2" @@ -37559,6 +37626,17 @@ __metadata: languageName: node linkType: hard +"node-gyp-build@npm:^4.8.2, node-gyp-build@npm:^4.8.4": + version: 4.8.4 + resolution: "node-gyp-build@npm:4.8.4" + bin: + node-gyp-build: bin.js + node-gyp-build-optional: optional.js + node-gyp-build-test: build-test.js + checksum: 8b81ca8ffd5fa257ad8d067896d07908a36918bc84fb04647af09d92f58310def2d2b8614d8606d129d9cd9b48890a5d2bec18abe7fcff54818f72bedd3a7d74 + languageName: node + linkType: hard + "node-gyp@npm:^10.0.0": version: 10.3.1 resolution: "node-gyp@npm:10.3.1" @@ -38369,12 +38447,12 @@ __metadata: languageName: node linkType: hard -"openapi-path-templating@npm:^1.5.1": - version: 1.5.3 - resolution: "openapi-path-templating@npm:1.5.3" +"openapi-path-templating@npm:^2.0.1": + version: 2.1.0 + resolution: "openapi-path-templating@npm:2.1.0" dependencies: - apg-lite: ^1.0.3 - checksum: 064e79f172bc21f4240bc26c2539ffdf9a4f462f58e5014dae30d2ea843e22aa7a22d57de72fe26b8512e0038e9e3bccbd8f5af47cc1a419076dac9dad4ce370 + apg-lite: ^1.0.4 + checksum: 4ee5364a47e5b8f8709936d67a7a079ec79f9be06e0e24ce49d8a329959442389ca211224d719ac5b6c710d12f968d42e92bb71611b0a040d878ad3df0b53782 languageName: node linkType: hard @@ -38388,12 +38466,12 @@ __metadata: languageName: node linkType: hard -"openapi-server-url-templating@npm:^1.0.0": - version: 1.0.0 - resolution: "openapi-server-url-templating@npm:1.0.0" +"openapi-server-url-templating@npm:^1.2.0": + version: 1.3.0 + resolution: "openapi-server-url-templating@npm:1.3.0" dependencies: - apg-lite: ^1.0.3 - checksum: 97e21c0a9610ebda7098c5c4022b27943382e84dfb6e3f8258cb0b33748f73f90e50424adb2f7ccd115c0bcdd81ffa1146c5ad7f188eb627de69b565abbcf648 + apg-lite: ^1.0.4 + checksum: 9c508f6e9fea365d293157cfa7f28c8519b08fe90f27e694f54ff92638808967861e5e83ec3081bba2be32b12d82286a577f1f003650e8989d4db7e7a8147bee languageName: node linkType: hard @@ -44692,35 +44770,35 @@ __metadata: languageName: node linkType: hard -"swagger-client@npm:^3.31.0": - version: 3.31.0 - resolution: "swagger-client@npm:3.31.0" +"swagger-client@npm:^3.34.0": + version: 3.34.0 + resolution: "swagger-client@npm:3.34.0" dependencies: "@babel/runtime-corejs3": ^7.22.15 "@scarf/scarf": =1.4.0 - "@swagger-api/apidom-core": ">=1.0.0-alpha.9 <1.0.0-beta.0" - "@swagger-api/apidom-error": ">=1.0.0-alpha.9 <1.0.0-beta.0" - "@swagger-api/apidom-json-pointer": ">=1.0.0-alpha.9 <1.0.0-beta.0" - "@swagger-api/apidom-ns-openapi-3-1": ">=1.0.0-alpha.9 <1.0.0-beta.0" - "@swagger-api/apidom-reference": ">=1.0.0-alpha.9 <1.0.0-beta.0" - cookie: ~0.7.2 + "@swagger-api/apidom-core": ">=1.0.0-beta.11 <1.0.0-rc.0" + "@swagger-api/apidom-error": ">=1.0.0-beta.11 <1.0.0-rc.0" + "@swagger-api/apidom-json-pointer": ">=1.0.0-beta.11 <1.0.0-rc.0" + "@swagger-api/apidom-ns-openapi-3-1": ">=1.0.0-beta.11 <1.0.0-rc.0" + "@swagger-api/apidom-reference": ">=1.0.0-beta.11 <1.0.0-rc.0" + "@swaggerexpert/cookie": ^1.4.1 deepmerge: ~4.3.0 fast-json-patch: ^3.0.0-1 js-yaml: ^4.1.0 neotraverse: =0.6.18 node-abort-controller: ^3.1.1 node-fetch-commonjs: ^3.3.2 - openapi-path-templating: ^1.5.1 - openapi-server-url-templating: ^1.0.0 + openapi-path-templating: ^2.0.1 + openapi-server-url-templating: ^1.2.0 ramda: ^0.30.1 ramda-adjunct: ^5.0.0 - checksum: 86b414dda317d5e9ca6efac8c04355016106e9e637b9b0bfb7a27c43f4b14e18a18c93ac108798ecc0e00c1937036f79fe103b98f551ef1e24fd54e0c3b756b0 + checksum: 277558141d54aa1db78cfe2aaddfac303cb4218128f8ad3c9b7e80d69e6574e898148682192464e5510aa58a60145d05bc3091293fdaaf8f3fdc6c8af1878b65 languageName: node linkType: hard "swagger-ui-react@npm:^5.0.0": - version: 5.18.2 - resolution: "swagger-ui-react@npm:5.18.2" + version: 5.18.3 + resolution: "swagger-ui-react@npm:5.18.3" dependencies: "@babel/runtime-corejs3": ^7.24.7 "@braintree/sanitize-url": =7.0.4 @@ -44751,7 +44829,7 @@ __metadata: reselect: ^5.1.1 serialize-error: ^8.1.0 sha.js: ^2.4.11 - swagger-client: ^3.31.0 + swagger-client: ^3.34.0 url-parse: ^1.5.10 xml: =1.0.1 xml-but-prettier: ^1.0.1 @@ -44759,7 +44837,7 @@ __metadata: peerDependencies: react: ">=16.8.0 <19" react-dom: ">=16.8.0 <19" - checksum: 8ad40bda044c9ff5a940b4e76f88dd740dae183266dc2d48cd88b73877a0ad464f26ad41459de7d7562c5e1a0030ed5a15b99fe57d3f2919acc7ddb126c07447 + checksum: f329063b6019591a9ceb681d94d9b13da8a8ff05daebfbd75b66f7c27bc2a219ca70c8ec2e724695e2d9c751d11b5662d92e6edf198e0b7b69727bf28e5e2ba3 languageName: node linkType: hard @@ -45439,34 +45517,30 @@ __metadata: languageName: node linkType: hard -"tree-sitter-json@npm:=0.20.2": - version: 0.20.2 - resolution: "tree-sitter-json@npm:0.20.2" +"tree-sitter-json@npm:=0.24.8": + version: 0.24.8 + resolution: "tree-sitter-json@npm:0.24.8" dependencies: - nan: ^2.18.0 + node-addon-api: ^8.2.2 node-gyp: latest - checksum: 4f5eba7fc86855d15510647e3e5803ea05a8cd5ab2a2a25c8d173a103ca02a6cc25b4cc925b3d234e31e6180f7eed4a50351d39e2c5254b06d6dd0fabeb6c3d8 + node-gyp-build: ^4.8.2 + peerDependencies: + tree-sitter: ^0.21.1 + peerDependenciesMeta: + tree-sitter: + optional: true + checksum: 740f3483a5b2dbd8b439f4b409994187029a0a26f2b8609dbad3b4405c9005f1134a813d461793d5628a593fbd7df04ecf366a917dfcd32790292e8526b5a4df languageName: node linkType: hard -"tree-sitter-yaml@npm:=0.5.0": - version: 0.5.0 - resolution: "tree-sitter-yaml@npm:0.5.0" +"tree-sitter@npm:=0.22.1": + version: 0.22.1 + resolution: "tree-sitter@npm:0.22.1" dependencies: - nan: ^2.14.0 + node-addon-api: ^8.2.1 node-gyp: latest - checksum: 7962aea3784dd67098daff4ae984145189eb49b8f981f5a9e72bac97b77859a75030580d199712d671cdced5326599192b3549a428e162e9858a3bbb4cb2fff6 - languageName: node - linkType: hard - -"tree-sitter@npm:=0.20.4": - version: 0.20.4 - resolution: "tree-sitter@npm:0.20.4" - dependencies: - nan: ^2.17.0 - node-gyp: latest - prebuild-install: ^7.1.1 - checksum: 724f9773759a6ece317fff08deef2d2c63a6ea3b4f6723d5d6d56a7a886d27f799641d189d616c121a580e8492992bc2ede8d2e5c4241f30ff4ee9036dc6bb92 + node-gyp-build: ^4.8.2 + checksum: b6bf557dd7b5f7ea477d6e8254fdb4cfba0c2db6850a2c39fbb1ae86012b9b4a09fbc2583a79793fbe31b248ac8912047b2cedc7504e17934369ecdf1bba67d4 languageName: node linkType: hard @@ -47069,10 +47143,10 @@ __metadata: languageName: node linkType: hard -"web-tree-sitter@npm:=0.20.3": - version: 0.20.3 - resolution: "web-tree-sitter@npm:0.20.3" - checksum: 1187b48d69d6f6319c74ca8f413e8d7c1703869a351070053351ef169c045aad16e5c6b2a73779beaade2f0b6bb3433166363355c9d02e9b2dcf60a195dbffdb +"web-tree-sitter@npm:=0.24.5": + version: 0.24.5 + resolution: "web-tree-sitter@npm:0.24.5" + checksum: 4b380571801557a6cfb5e599b9be2da49439e5c30a1c3e3a204d9408afcbe476f25ce54e956959ce8753e1a9fff74634af2cf9b9365acc7b0ff97d73ecae0010 languageName: node linkType: hard From 005cb9fece472e16ce9f2c0605249ad1fb1827db Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Wed, 1 Jan 2025 10:04:04 +0530 Subject: [PATCH 57/64] minor updates in provider doc file Signed-off-by: Aditya Kumar --- docs/auth/github/provider.md | 24 ++++++++++++------------ docs/auth/gitlab/provider.md | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/auth/github/provider.md b/docs/auth/github/provider.md index 3b61815017..c1c3fd253e 100644 --- a/docs/auth/github/provider.md +++ b/docs/auth/github/provider.md @@ -10,7 +10,7 @@ provider that can authenticate users using GitHub or GitHub Enterprise OAuth. ## Create an OAuth App on GitHub -To add GitHub authentication, you must create either a GitHub App, or an OAuth +To add GitHub authentication, you must create either a GitHub App or an OAuth App from the GitHub [developer settings](https://github.com/settings/developers). The `Homepage URL` should point to Backstage's frontend, while the `Authorization callback URL` @@ -30,9 +30,9 @@ Settings for local development: GitHub Apps handle OAuth scope at the app installation level, meaning that the `scope` parameter for the call to `getAccessToken` in the frontend has no -effect. When calling `getAccessToken` in open source plugins, one should still +effect. When calling `getAccessToken` in open-source plugins, one should still include the appropriate scope, but also document in the plugin README what -scopes are required for GitHub Apps. +Scopes are required for GitHub Apps. ## Configuration @@ -57,15 +57,15 @@ auth: The GitHub provider is a structure with these configuration keys: -- `clientId`: The client ID that you generated on GitHub, e.g. +- `clientId`: The client ID that you generated on GitHub, e.g., `b59241722e3c3b4816e2` - `clientSecret`: The client secret tied to the generated client ID. - `enterpriseInstanceUrl` (optional): The base URL for a GitHub Enterprise - instance, e.g. `https://ghe..com`. Only needed for GitHub Enterprise. + instance, e.g., `https://ghe..com`. Only needed for GitHub Enterprise. - `callbackUrl` (optional): The callback URL that GitHub will use when - initiating an OAuth flow, e.g. + initiating an OAuth flow, e.g., `https://your-intermediate-service.com/handler`. Only needed if Backstage is - not the immediate receiver (e.g. one OAuth app for many backstage instances). + not the immediate receiver (e.g., one OAuth app for many backstage instances). - `signIn`: The configuration for the sign-in process, including the **resolvers** that should be used to match the user from the auth provider with the user entity in the Backstage catalog (typically a single resolver is sufficient). @@ -74,17 +74,17 @@ The GitHub provider is a structure with these configuration keys: This provider includes several resolvers out of the box that you can use: -- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found it will throw a `NotFoundError`. -- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. -- `usernameMatchingUserEntityName`: Matches the username from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. +- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found, it will throw a `NotFoundError`. +- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. +- `usernameMatchingUserEntityName`: Matches the username from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. :::note Note -The resolvers will be tried in order, but will only be skipped if they throw a `NotFoundError`. +The resolvers will be tried in order but will only be skipped if they throw a `NotFoundError`. ::: -If these resolvers do not fit your needs you can build a custom resolver, this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. +If these resolvers do not fit your needs, you can build a custom resolver; this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. ## Backend Installation diff --git a/docs/auth/gitlab/provider.md b/docs/auth/gitlab/provider.md index 65d1909f41..28f204d785 100644 --- a/docs/auth/gitlab/provider.md +++ b/docs/auth/gitlab/provider.md @@ -66,21 +66,21 @@ The GitLab provider is a structure with three configuration keys: This provider includes several resolvers out of the box that you can use: -- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found it will throw a `NotFoundError`. -- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. -- `usernameMatchingUserEntityName`: Matches the username from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. +- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found, it will throw a `NotFoundError`. +- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. +- `usernameMatchingUserEntityName`: Matches the username from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. :::note Note -The resolvers will be tried in order, but will only be skipped if they throw a `NotFoundError`. +The resolvers will be tried in order but will only be skipped if they throw a `NotFoundError`. ::: -If these resolvers do not fit your needs you can build a custom resolver, this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. +If these resolvers do not fit your needs, you can build a custom resolver; this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. ## Backend Installation -To add the provider to the backend we will first need to install the package by running this command: +To add the provider to the backend, we will first need to install the package by running this command: ```bash title="from your Backstage root directory" yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-gitlab-provider From 307b1b148d12844b68be98befb8d48db526b3001 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Mon, 6 Jan 2025 08:58:28 +0530 Subject: [PATCH 58/64] minor updates in provider doc of bitbucket Signed-off-by: Aditya Kumar --- docs/auth/bitbucket/provider.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/auth/bitbucket/provider.md b/docs/auth/bitbucket/provider.md index e58ad622fc..e84e58c70a 100644 --- a/docs/auth/bitbucket/provider.md +++ b/docs/auth/bitbucket/provider.md @@ -53,22 +53,22 @@ The Bitbucket provider is a structure with two configuration keys: This provider includes several resolvers out of the box that you can use: -- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found it will throw a `NotFoundError`. -- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. -- `userIdMatchingUserEntityAnnotation`: Matches the `userId` from the auth provider with the User entity that has a matching `bitbucket.org/user-id` annotation. If no match is found it will throw a `NotFoundError`. -- `usernameMatchingUserEntityAnnotation`: Matches the `username` from the auth provider with the User entity that has a matching `bitbucket.org/username` annotation. If no match is found it will throw a `NotFoundError`. +- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found, it will throw a `NotFoundError`. +- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. +- `userIdMatchingUserEntityAnnotation`: Matches the `userId` from the auth provider with the User entity that has a matching `bitbucket.org/user-id` annotation. If no match is found, it will throw a `NotFoundError`. +- `usernameMatchingUserEntityAnnotation`: Matches the `username` from the auth provider with the User entity that has a matching `bitbucket.org/username` annotation. If no match is found, it will throw a `NotFoundError`. :::note Note -The resolvers will be tried in order, but will only be skipped if they throw a `NotFoundError`. +The resolvers will be tried in order but will only be skipped if they throw a `NotFoundError`. ::: -If these resolvers do not fit your needs you can build a custom resolver, this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. +If these resolvers do not fit your needs, you can build a custom resolver; this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. ## Backend Installation -To add the provider to the backend we will first need to install the package by running this command: +To add the provider to the backend, we will first need to install the package by running this command: ```bash title="from your Backstage root directory" yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-bitbucket-provider From 1d0a8e8be522b9cb5d94f1c726407f28504d0304 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Mon, 6 Jan 2025 08:59:27 +0530 Subject: [PATCH 59/64] minor updates in provider doc of bitbucketServer Signed-off-by: Aditya Kumar --- docs/auth/bitbucketServer/provider.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/auth/bitbucketServer/provider.md b/docs/auth/bitbucketServer/provider.md index c41457d09c..6063796dd2 100644 --- a/docs/auth/bitbucketServer/provider.md +++ b/docs/auth/bitbucketServer/provider.md @@ -45,20 +45,20 @@ The Bitbucket Server provider is a structure with two configuration keys: This provider includes several resolvers out of the box that you can use: -- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found it will throw a `NotFoundError`. -- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. +- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found, it will throw a `NotFoundError`. +- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. :::note Note -The resolvers will be tried in order, but will only be skipped if they throw a `NotFoundError`. +The resolvers will be tried in order but will only be skipped if they throw a `NotFoundError`. ::: -If these resolvers do not fit your needs you can build a custom resolver, this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. +If these resolvers do not fit your needs, you can build a custom resolver; this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. ## Backend Installation -To add the provider to the backend we will first need to install the package by running this command: +To add the provider to the backend, we will first need to install the package by running this command: ```bash title="from your Backstage root directory" yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-bitbucket-server-provider @@ -87,4 +87,4 @@ To add the provider to the frontend, add the `bitbucketServerAuthApiRef` referen ### ScmAuth -For backstage to be able to use the oauth token of the logged in user to access the Bitbucket Server API, you need to add it to list of ScmAuth providers as shown in [Custom ScmAuthApi Implementation](../index.md#custom-scmauthapi-implementation) using the `ScmAuth.forBitbucketServer` method. +For Backstage to be able to use the OAuth token of the logged-in user to access the Bitbucket Server API, you need to add it to the list of ScmAuth providers as shown in [Custom ScmAuthApi Implementation](../index.md#custom-scmauthapi-implementation) using the `ScmAuth.forBitbucketServer` method. From 5a0914a15a3b484bc8afe48ad468442ef993d3b2 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Mon, 6 Jan 2025 09:00:33 +0530 Subject: [PATCH 60/64] minor updates in provider doc of cloudflare Signed-off-by: Aditya Kumar --- docs/auth/cloudflare/provider.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/auth/cloudflare/provider.md b/docs/auth/cloudflare/provider.md index 224a64f056..7611a0ca48 100644 --- a/docs/auth/cloudflare/provider.md +++ b/docs/auth/cloudflare/provider.md @@ -51,20 +51,20 @@ This config section must be in place for the provider to load at all. This provider includes several resolvers out of the box that you can use: -- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found it will throw a `NotFoundError`. -- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found it will throw a `NotFoundError`. +- `emailMatchingUserEntityProfileEmail`: Matches the email address from the auth provider with the User entity that has a matching `spec.profile.email`. If no match is found, it will throw a `NotFoundError`. +- `emailLocalPartMatchingUserEntityName`: Matches the [local part](https://en.wikipedia.org/wiki/Email_address#Local-part) of the email address from the auth provider with the User entity that has a matching `name`. If no match is found, it will throw a `NotFoundError`. :::note Note -The resolvers will be tried in order, but will only be skipped if they throw a `NotFoundError`. +The resolvers will be tried in order but will only be skipped if they throw a `NotFoundError`. ::: -If these resolvers do not fit your needs you can build a custom resolver, this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. +If these resolvers do not fit your needs, you can build a custom resolver; this is covered in the [Building Custom Resolvers](../identity-resolver.md#building-custom-resolvers) section of the Sign-in Identities and Resolvers documentation. ## Backend Installation -To add the provider to the backend we will first need to install the package by running this command: +To add the provider to the backend, we will first need to install the package by running this command: ```bash title="from your Backstage root directory" yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-cloudflare-access-provider @@ -83,6 +83,6 @@ backend.add( ## Adding the provider to the Backstage frontend -See [Sign-In with Proxy Providers](../index.md#sign-in-with-proxy-providers) for pointers on how to set up the sign-in page, and to also make it work smoothly for local development. You'll use `cfaccess` as the provider name. +See [Sign-In with Proxy Providers](../index.md#sign-in-with-proxy-providers) for pointers on how to set up the sign-in page and also make it work smoothly for local development. You'll use `cfaccess` as the provider name. -If you [provide a custom sign in resolver](https://backstage.io/docs/auth/identity-resolver#building-custom-resolvers), you can skip the `signIn` block entirely. +If you [provide a custom sign-in resolver](https://backstage.io/docs/auth/identity-resolver#building-custom-resolvers), you can skip the `signIn` block entirely. From dcfe1f2c9c10311202dea28ea6346cd8358e500f Mon Sep 17 00:00:00 2001 From: Aditya Kumar <136452216+AdityaK60@users.noreply.github.com> Date: Thu, 30 Jan 2025 08:58:50 +0530 Subject: [PATCH 61/64] Update provider.md Signed-off-by: Aditya Kumar <136452216+AdityaK60@users.noreply.github.com> --- docs/auth/github/provider.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/auth/github/provider.md b/docs/auth/github/provider.md index c1c3fd253e..51610b36ec 100644 --- a/docs/auth/github/provider.md +++ b/docs/auth/github/provider.md @@ -30,9 +30,9 @@ Settings for local development: GitHub Apps handle OAuth scope at the app installation level, meaning that the `scope` parameter for the call to `getAccessToken` in the frontend has no -effect. When calling `getAccessToken` in open-source plugins, one should still +effect. When calling `getAccessToken` in open source plugins, one should still include the appropriate scope, but also document in the plugin README what -Scopes are required for GitHub Apps. +scopes are required for GitHub Apps. ## Configuration From 211ac0b1fcdb24b26922dff27afc7e1dd9019763 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2025 15:53:14 +0000 Subject: [PATCH 62/64] fix(deps): update dependency @types/webpack-env to v1.18.8 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index c53354806a..8b6c025c23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20967,9 +20967,9 @@ __metadata: linkType: hard "@types/webpack-env@npm:^1.15.2, @types/webpack-env@npm:^1.15.3": - version: 1.18.5 - resolution: "@types/webpack-env@npm:1.18.5" - checksum: 4ca8eb4c44e1e1807c3e245442fce7aaf2816a163056de9436bbac44cc47c8bc5b1c9a330dc05748d6616431b1fb5bd5379733fb1da0b78d03c59f4ec824c184 + version: 1.18.8 + resolution: "@types/webpack-env@npm:1.18.8" + checksum: f6a13276e23c6573ee2a7c7ae7b0705a9cd982c3a31197ba6fa6f3d3bd6fd921194a67c960249b1554ef4c70b6736a3437284a01f659f145fe2b56c3196a7908 languageName: node linkType: hard From 4981c4e15a4807b60fcca940efa127bb9a908331 Mon Sep 17 00:00:00 2001 From: Paul Schultz Date: Thu, 30 Jan 2025 10:13:49 -0600 Subject: [PATCH 63/64] chore: add missing auditor sidebar in docs Signed-off-by: Paul Schultz --- microsite/sidebars.js | 1 + 1 file changed, 1 insertion(+) diff --git a/microsite/sidebars.js b/microsite/sidebars.js index 2474b15aac..e18fc5a229 100644 --- a/microsite/sidebars.js +++ b/microsite/sidebars.js @@ -395,6 +395,7 @@ module.exports = { label: 'Core Services', items: [ 'backend-system/core-services/index', + 'backend-system/core-services/auditor', 'backend-system/core-services/auth', 'backend-system/core-services/cache', 'backend-system/core-services/database', From ec3735b26e9a05d3309651e44198d853d6351157 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2025 16:45:03 +0000 Subject: [PATCH 64/64] chore(deps): update dependency @types/webpack-env to v1.18.8 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- microsite/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/microsite/yarn.lock b/microsite/yarn.lock index d4e10df646..f468605ce0 100644 --- a/microsite/yarn.lock +++ b/microsite/yarn.lock @@ -3363,9 +3363,9 @@ __metadata: linkType: hard "@types/webpack-env@npm:^1.18.0": - version: 1.18.5 - resolution: "@types/webpack-env@npm:1.18.5" - checksum: 4ca8eb4c44e1e1807c3e245442fce7aaf2816a163056de9436bbac44cc47c8bc5b1c9a330dc05748d6616431b1fb5bd5379733fb1da0b78d03c59f4ec824c184 + version: 1.18.8 + resolution: "@types/webpack-env@npm:1.18.8" + checksum: f6a13276e23c6573ee2a7c7ae7b0705a9cd982c3a31197ba6fa6f3d3bd6fd921194a67c960249b1554ef4c70b6736a3437284a01f659f145fe2b56c3196a7908 languageName: node linkType: hard