deps(npm): Update dependencies to Backstage 1.37.1 (#3531)
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
This commit is contained in:
parent
760cffdf4f
commit
2adb0e590b
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@backstage-community/plugin-npm-backend': minor
|
||||
'@backstage-community/plugin-npm-common': minor
|
||||
'@backstage-community/plugin-npm': minor
|
||||
---
|
||||
|
||||
Backstage version bump to v1.37.1
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"version": "1.36.1"
|
||||
"version": "1.37.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@
|
|||
"directory": "workspaces/npm"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.30.0",
|
||||
"@backstage/cli": "^0.31.1",
|
||||
"@backstage/e2e-test-utils": "^0.1.1",
|
||||
"@backstage/repo-tools": "^0.13.0",
|
||||
"@backstage/repo-tools": "^0.13.1",
|
||||
"@changesets/cli": "^2.27.1",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@spotify/prettier-config": "^12.0.0",
|
||||
|
|
|
|||
|
|
@ -20,25 +20,25 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@backstage-community/plugin-npm": "workspace:^",
|
||||
"@backstage/app-defaults": "^1.5.17",
|
||||
"@backstage/app-defaults": "^1.6.0",
|
||||
"@backstage/catalog-model": "^1.7.3",
|
||||
"@backstage/cli": "^0.30.0",
|
||||
"@backstage/core-app-api": "^1.15.5",
|
||||
"@backstage/core-compat-api": "^0.3.6",
|
||||
"@backstage/core-components": "^0.16.4",
|
||||
"@backstage/core-plugin-api": "^1.10.4",
|
||||
"@backstage/frontend-app-api": "^0.10.5",
|
||||
"@backstage/frontend-defaults": "^0.1.6",
|
||||
"@backstage/frontend-plugin-api": "^0.9.5",
|
||||
"@backstage/integration-react": "^1.2.4",
|
||||
"@backstage/plugin-api-docs": "^0.12.4",
|
||||
"@backstage/plugin-catalog": "^1.27.0",
|
||||
"@backstage/cli": "^0.31.1",
|
||||
"@backstage/core-app-api": "^1.16.0",
|
||||
"@backstage/core-compat-api": "^0.4.0",
|
||||
"@backstage/core-components": "^0.17.0",
|
||||
"@backstage/core-plugin-api": "^1.10.5",
|
||||
"@backstage/frontend-app-api": "^0.11.0",
|
||||
"@backstage/frontend-defaults": "^0.2.0",
|
||||
"@backstage/frontend-plugin-api": "^0.10.0",
|
||||
"@backstage/integration-react": "^1.2.5",
|
||||
"@backstage/plugin-api-docs": "^0.12.5",
|
||||
"@backstage/plugin-catalog": "^1.28.0",
|
||||
"@backstage/plugin-catalog-common": "^1.1.3",
|
||||
"@backstage/plugin-catalog-graph": "^0.4.16",
|
||||
"@backstage/plugin-catalog-import": "^0.12.10",
|
||||
"@backstage/plugin-catalog-react": "^1.15.2",
|
||||
"@backstage/plugin-org": "^0.6.36",
|
||||
"@backstage/plugin-user-settings": "^0.8.19",
|
||||
"@backstage/plugin-catalog-graph": "^0.4.17",
|
||||
"@backstage/plugin-catalog-import": "^0.12.12",
|
||||
"@backstage/plugin-catalog-react": "^1.16.0",
|
||||
"@backstage/plugin-org": "^0.6.37",
|
||||
"@backstage/plugin-user-settings": "^0.8.20",
|
||||
"@backstage/theme": "^0.6.4",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
"styled-components": "^6.1.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/test-utils": "^1.7.5",
|
||||
"@backstage/test-utils": "^1.7.6",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@testing-library/dom": "^9.0.0",
|
||||
"@testing-library/jest-dom": "^6.0.0",
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ const homePageExtension = PageBlueprint.make({
|
|||
|
||||
export const app = createApp({
|
||||
features: [
|
||||
catalogPlugin as any,
|
||||
catalogImportPlugin as any,
|
||||
userSettingsPlugin as any,
|
||||
catalogPlugin,
|
||||
catalogImportPlugin,
|
||||
userSettingsPlugin,
|
||||
npmPlugin,
|
||||
createFrontendModule({
|
||||
pluginId: 'app',
|
||||
|
|
|
|||
|
|
@ -20,28 +20,28 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@backstage-community/plugin-npm": "workspace:^",
|
||||
"@backstage/app-defaults": "^1.5.17",
|
||||
"@backstage/app-defaults": "^1.6.0",
|
||||
"@backstage/catalog-model": "^1.7.3",
|
||||
"@backstage/cli": "^0.30.0",
|
||||
"@backstage/core-app-api": "^1.15.5",
|
||||
"@backstage/core-components": "^0.16.4",
|
||||
"@backstage/core-plugin-api": "^1.10.4",
|
||||
"@backstage/integration-react": "^1.2.4",
|
||||
"@backstage/plugin-api-docs": "^0.12.4",
|
||||
"@backstage/plugin-catalog": "^1.27.0",
|
||||
"@backstage/cli": "^0.31.1",
|
||||
"@backstage/core-app-api": "^1.16.0",
|
||||
"@backstage/core-components": "^0.17.0",
|
||||
"@backstage/core-plugin-api": "^1.10.5",
|
||||
"@backstage/integration-react": "^1.2.5",
|
||||
"@backstage/plugin-api-docs": "^0.12.5",
|
||||
"@backstage/plugin-catalog": "^1.28.0",
|
||||
"@backstage/plugin-catalog-common": "^1.1.3",
|
||||
"@backstage/plugin-catalog-graph": "^0.4.16",
|
||||
"@backstage/plugin-catalog-import": "^0.12.10",
|
||||
"@backstage/plugin-catalog-react": "^1.15.2",
|
||||
"@backstage/plugin-org": "^0.6.36",
|
||||
"@backstage/plugin-permission-react": "^0.4.31",
|
||||
"@backstage/plugin-scaffolder": "^1.28.0",
|
||||
"@backstage/plugin-search": "^1.4.23",
|
||||
"@backstage/plugin-search-react": "^1.8.6",
|
||||
"@backstage/plugin-techdocs": "^1.12.3",
|
||||
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.21",
|
||||
"@backstage/plugin-techdocs-react": "^1.2.14",
|
||||
"@backstage/plugin-user-settings": "^0.8.19",
|
||||
"@backstage/plugin-catalog-graph": "^0.4.17",
|
||||
"@backstage/plugin-catalog-import": "^0.12.12",
|
||||
"@backstage/plugin-catalog-react": "^1.16.0",
|
||||
"@backstage/plugin-org": "^0.6.37",
|
||||
"@backstage/plugin-permission-react": "^0.4.32",
|
||||
"@backstage/plugin-scaffolder": "^1.29.0",
|
||||
"@backstage/plugin-search": "^1.4.24",
|
||||
"@backstage/plugin-search-react": "^1.8.7",
|
||||
"@backstage/plugin-techdocs": "^1.12.4",
|
||||
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.22",
|
||||
"@backstage/plugin-techdocs-react": "^1.2.15",
|
||||
"@backstage/plugin-user-settings": "^0.8.20",
|
||||
"@backstage/theme": "^0.6.4",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
|
|
|
|||
|
|
@ -22,28 +22,28 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@backstage-community/plugin-npm-backend": "workspace:^",
|
||||
"@backstage/backend-defaults": "^0.8.1",
|
||||
"@backstage/backend-defaults": "^0.8.2",
|
||||
"@backstage/config": "^1.3.2",
|
||||
"@backstage/plugin-app-backend": "^0.4.5",
|
||||
"@backstage/plugin-auth-backend": "^0.24.3",
|
||||
"@backstage/plugin-auth-backend-module-github-provider": "^0.3.0",
|
||||
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.5",
|
||||
"@backstage/plugin-auth-node": "^0.6.0",
|
||||
"@backstage/plugin-catalog-backend": "^1.31.0",
|
||||
"@backstage/plugin-catalog-backend-module-logs": "^0.1.7",
|
||||
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.2.5",
|
||||
"@backstage/plugin-permission-backend": "^0.5.54",
|
||||
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.5",
|
||||
"@backstage/plugin-app-backend": "^0.5.0",
|
||||
"@backstage/plugin-auth-backend": "^0.24.4",
|
||||
"@backstage/plugin-auth-backend-module-github-provider": "^0.3.1",
|
||||
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.6",
|
||||
"@backstage/plugin-auth-node": "^0.6.1",
|
||||
"@backstage/plugin-catalog-backend": "^1.32.0",
|
||||
"@backstage/plugin-catalog-backend-module-logs": "^0.1.8",
|
||||
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.2.6",
|
||||
"@backstage/plugin-permission-backend": "^0.5.55",
|
||||
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.6",
|
||||
"@backstage/plugin-permission-common": "^0.8.4",
|
||||
"@backstage/plugin-permission-node": "^0.8.8",
|
||||
"@backstage/plugin-proxy-backend": "^0.5.11",
|
||||
"@backstage/plugin-scaffolder-backend": "^1.30.0",
|
||||
"@backstage/plugin-search-backend": "^1.8.2",
|
||||
"@backstage/plugin-search-backend-module-catalog": "^0.3.1",
|
||||
"@backstage/plugin-search-backend-module-pg": "^0.5.41",
|
||||
"@backstage/plugin-search-backend-module-techdocs": "^0.3.6",
|
||||
"@backstage/plugin-search-backend-node": "^1.3.8",
|
||||
"@backstage/plugin-techdocs-backend": "^1.11.6",
|
||||
"@backstage/plugin-permission-node": "^0.9.0",
|
||||
"@backstage/plugin-proxy-backend": "^0.6.0",
|
||||
"@backstage/plugin-scaffolder-backend": "^1.31.0",
|
||||
"@backstage/plugin-search-backend": "^2.0.0",
|
||||
"@backstage/plugin-search-backend-module-catalog": "^0.3.2",
|
||||
"@backstage/plugin-search-backend-module-pg": "^0.5.42",
|
||||
"@backstage/plugin-search-backend-module-techdocs": "^0.4.0",
|
||||
"@backstage/plugin-search-backend-node": "^1.3.9",
|
||||
"@backstage/plugin-techdocs-backend": "^2.0.0",
|
||||
"app": "link:../app",
|
||||
"better-sqlite3": "^9.0.0",
|
||||
"node-gyp": "^10.0.0",
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
"winston": "^3.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.30.0"
|
||||
"@backstage/cli": "^0.31.1"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
|
|||
|
|
@ -31,17 +31,17 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@backstage-community/plugin-npm-common": "workspace:^",
|
||||
"@backstage/backend-defaults": "^0.8.1",
|
||||
"@backstage/backend-plugin-api": "^1.2.0",
|
||||
"@backstage/backend-defaults": "^0.8.2",
|
||||
"@backstage/backend-plugin-api": "^1.2.1",
|
||||
"@backstage/catalog-client": "^1.9.1",
|
||||
"@backstage/errors": "^1.2.7",
|
||||
"@backstage/plugin-catalog-node": "^1.16.0",
|
||||
"@backstage/plugin-catalog-node": "^1.16.2",
|
||||
"express": "^4.17.1",
|
||||
"express-promise-router": "^4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/backend-test-utils": "^1.3.0",
|
||||
"@backstage/cli": "^0.30.0",
|
||||
"@backstage/backend-test-utils": "^1.3.1",
|
||||
"@backstage/cli": "^0.31.1",
|
||||
"@types/express": "*",
|
||||
"@types/supertest": "^2.0.12",
|
||||
"supertest": "^6.2.4"
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"@backstage/errors": "^1.2.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.30.0"
|
||||
"@backstage/cli": "^0.31.1"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ const mockEntity = {
|
|||
metadata: {
|
||||
name: 'backstage-plugin-catalog',
|
||||
annotations: {
|
||||
// Workaround to disable backend communication in plugin-test-app
|
||||
'npm/__devapp__': 'true',
|
||||
'npm/package': '@backstage/plugin-catalog',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -47,11 +47,11 @@
|
|||
"dependencies": {
|
||||
"@backstage-community/plugin-npm-common": "workspace:^",
|
||||
"@backstage/catalog-model": "^1.7.3",
|
||||
"@backstage/core-components": "^0.16.4",
|
||||
"@backstage/core-plugin-api": "^1.10.4",
|
||||
"@backstage/core-components": "^0.17.0",
|
||||
"@backstage/core-plugin-api": "^1.10.5",
|
||||
"@backstage/errors": "^1.2.7",
|
||||
"@backstage/frontend-plugin-api": "^0.9.5",
|
||||
"@backstage/plugin-catalog-react": "^1.15.2",
|
||||
"@backstage/frontend-plugin-api": "^0.10.0",
|
||||
"@backstage/plugin-catalog-react": "^1.16.0",
|
||||
"@backstage/theme": "^0.6.4",
|
||||
"@material-ui/core": "^4.9.13",
|
||||
"luxon": "^3.5.0",
|
||||
|
|
@ -61,9 +61,9 @@
|
|||
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.30.0",
|
||||
"@backstage/dev-utils": "^1.1.7",
|
||||
"@backstage/test-utils": "^1.7.5",
|
||||
"@backstage/cli": "^0.31.1",
|
||||
"@backstage/dev-utils": "^1.1.8",
|
||||
"@backstage/test-utils": "^1.7.6",
|
||||
"@testing-library/jest-dom": "^6.0.0",
|
||||
"@testing-library/react": "^14.0.0",
|
||||
"@testing-library/user-event": "^14.0.0",
|
||||
|
|
|
|||
|
|
@ -36,8 +36,10 @@ export const usePackageInfo = () => {
|
|||
const packageName = entity.metadata.annotations?.[NpmAnnotation.PACKAGE_NAME];
|
||||
|
||||
const useBackend =
|
||||
Boolean(config.getOptionalString('npm.defaultRegistry')) ||
|
||||
Boolean(entity.metadata.annotations?.[NpmAnnotation.REGISTRY_NAME]);
|
||||
// Workaround to disable backend communication in plugin-test-app
|
||||
entity.metadata.annotations?.['npm/__devapp__'] !== 'true' &&
|
||||
(Boolean(config.getOptionalString('npm.defaultRegistry')) ||
|
||||
Boolean(entity.metadata.annotations?.[NpmAnnotation.REGISTRY_NAME]));
|
||||
|
||||
const {
|
||||
value: packageInfo,
|
||||
|
|
@ -46,7 +48,7 @@ export const usePackageInfo = () => {
|
|||
} = useAsync(() => {
|
||||
if (!packageName) {
|
||||
throw new NotFoundError(
|
||||
`No pacakge name found for entity ref '${entityRef}'`,
|
||||
`No package name found for entity ref '${entityRef}'`,
|
||||
);
|
||||
}
|
||||
if (useBackend) {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue