Skip to content

Commit

Permalink
feat(deps): update to backstage 1.32 (#2417)
Browse files Browse the repository at this point in the history
* chore(deps): update to backstage 1.32

Signed-off-by: Paul Schultz <pschultz@pobox.com>

* fix start:backstage

Signed-off-by: Paul Schultz <pschultz@pobox.com>

* fix changeset

Signed-off-by: Paul Schultz <pschultz@pobox.com>

---------

Signed-off-by: Paul Schultz <pschultz@pobox.com>
  • Loading branch information
schultzp2020 authored Oct 30, 2024
1 parent 72958b5 commit 8244f28
Show file tree
Hide file tree
Showing 56 changed files with 1,583 additions and 1,882 deletions.
44 changes: 44 additions & 0 deletions .changeset/mighty-suits-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
"@janus-idp/backstage-scaffolder-backend-module-annotator": minor
"@janus-idp/backstage-plugin-analytics-provider-segment": minor
"@janus-idp/backstage-plugin-analytics-module-matomo": minor
"@janus-idp/backstage-plugin-orchestrator-form-react": minor
"@janus-idp/backstage-plugin-orchestrator-form-api": minor
"@janus-idp/backstage-plugin-orchestrator-backend": minor
"@janus-idp/backstage-plugin-bulk-import-backend": minor
"@janus-idp/backstage-plugin-orchestrator-common": minor
"@janus-idp/backstage-plugin-bulk-import-common": minor
"@janus-idp/backstage-scaffolder-backend-module-kubernetes": minor
"@janus-idp/backstage-scaffolder-backend-module-servicenow": minor
"@janus-idp/backstage-plugin-jfrog-artifactory": minor
"@janus-idp/backstage-scaffolder-backend-module-sonarqube": minor
"@janus-idp/backstage-plugin-keycloak-backend": minor
"@janus-idp/backstage-plugin-topology-common": minor
"@janus-idp/backstage-plugin-audit-log-node": minor
"@janus-idp/backstage-plugin-matomo-backend": minor
"@janus-idp/backstage-plugin-kiali-backend": minor
"@janus-idp/backstage-scaffolder-backend-module-regex": minor
"@janus-idp/backstage-plugin-tekton-common": minor
"@janus-idp/backstage-plugin-orchestrator": minor
"@janus-idp/backstage-scaffolder-backend-module-quay": minor
"@janus-idp/backstage-plugin-rbac-backend": minor
"@janus-idp/shared-react": minor
"@janus-idp/backstage-plugin-web-terminal": minor
"@janus-idp/backstage-plugin-aap-backend": minor
"@janus-idp/backstage-plugin-bulk-import": minor
"@janus-idp/backstage-plugin-ocm-backend": minor
"@janus-idp/backstage-plugin-quay-common": minor
"@janus-idp/backstage-plugin-rbac-common": minor
"@janus-idp/backstage-plugin-ocm-common": minor
"@janus-idp/backstage-plugin-rbac-node": minor
"@janus-idp/backstage-plugin-topology": minor
"@janus-idp/backstage-plugin-matomo": minor
"@janus-idp/backstage-plugin-tekton": minor
"@janus-idp/backstage-plugin-kiali": minor
"@janus-idp/cli": minor
"@janus-idp/backstage-plugin-quay": minor
"@janus-idp/backstage-plugin-rbac": minor
"@janus-idp/backstage-plugin-ocm": minor
---

chore(deps): update to backstage 1.32
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
diff --git a/dist/features/features.cjs.js b/dist/features/features.cjs.js
index debb6ce817c7aa0111a3cbc20edeee815ad59759..cea4f6fde4c4c57793db5f9732d6810bdd517256 100644
--- a/dist/features/features.cjs.js
+++ b/dist/features/features.cjs.js
@@ -1,11 +1,11 @@
'use strict';

var backendPluginApi = require('@backstage/backend-plugin-api');
+var pluginManager = require('../manager/plugin-manager.cjs.js');
+var pluginScanner = require('../scanner/plugin-scanner.cjs.js');
var schemas = require('../schemas/schemas.cjs.js');
var frontend = require('../schemas/frontend.cjs.js');
var rootLogger = require('../schemas/rootLogger.cjs.js');
-var pluginManager = require('../manager/plugin-manager.cjs.js');
-var pluginScanner = require('../scanner/plugin-scanner.cjs.js');

const dynamicPluginsFeatureLoaderWithOptions = (options) => backendPluginApi.createBackendFeatureLoader({
deps: {
@@ -13,13 +13,17 @@ const dynamicPluginsFeatureLoaderWithOptions = (options) => backendPluginApi.cre
},
*loader({ config }) {
const dynamicPluginsEnabled = config.has(pluginScanner.configKey);
+ let rootLoggerOptions = {};
+ if (options?.logger) {
+ rootLoggerOptions = options.logger(config);
+ }
yield* [
schemas.dynamicPluginsSchemasServiceFactory(options),
pluginManager.dynamicPluginsServiceFactory(options)
];
if (dynamicPluginsEnabled) {
yield* [
- rootLogger.dynamicPluginsRootLoggerServiceFactory(options),
+ rootLogger.dynamicPluginsRootLoggerServiceFactory(rootLoggerOptions),
frontend.dynamicPluginsFrontendSchemas,
pluginManager.dynamicPluginsFeatureDiscoveryLoader
];
diff --git a/dist/features/features.cjs.js.map b/dist/features/features.cjs.js.map
index 4c36851870462037a9c505eb5b20a7085499c734..400c3205835b46031d0f805140e9f5b2b19c397e 100644
--- a/dist/features/features.cjs.js.map
+++ b/dist/features/features.cjs.js.map
@@ -1 +1 @@
-{"version":3,"file":"features.cjs.js","sources":["../../src/features/features.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createBackendFeatureLoader,\n} from '@backstage/backend-plugin-api';\nimport {\n DynamicPluginsSchemasOptions,\n dynamicPluginsFrontendSchemas,\n dynamicPluginsRootLoggerServiceFactory,\n dynamicPluginsSchemasServiceFactory,\n} from '../schemas';\nimport {\n DynamicPluginsFactoryOptions,\n dynamicPluginsFeatureDiscoveryLoader,\n dynamicPluginsServiceFactory,\n} from '../manager';\nimport { DynamicPluginsRootLoggerFactoryOptions } from '../schemas';\nimport { configKey } from '../scanner/plugin-scanner';\n\n/**\n * @public\n */\nexport type DynamicPluginsFeatureLoaderOptions = DynamicPluginsFactoryOptions &\n DynamicPluginsSchemasOptions &\n DynamicPluginsRootLoggerFactoryOptions;\n\nconst dynamicPluginsFeatureLoaderWithOptions = (\n options?: DynamicPluginsFeatureLoaderOptions,\n) =>\n createBackendFeatureLoader({\n deps: {\n config: coreServices.rootConfig,\n },\n *loader({ config }) {\n const dynamicPluginsEnabled = config.has(configKey);\n\n yield* [\n dynamicPluginsSchemasServiceFactory(options),\n dynamicPluginsServiceFactory(options),\n ];\n if (dynamicPluginsEnabled) {\n yield* [\n dynamicPluginsRootLoggerServiceFactory(options),\n dynamicPluginsFrontendSchemas,\n dynamicPluginsFeatureDiscoveryLoader,\n ];\n }\n },\n });\n\n/**\n * A backend feature loader that fully enable backend dynamic plugins.\n * More precisely it:\n * - adds the dynamic plugins root service (typically depended upon by plugins),\n * - adds additional required features to allow supporting dynamic plugins config schemas\n * in the frontend application and the backend root logger,\n * - uses the dynamic plugins service to discover and expose dynamic plugins as features.\n *\n * @public\n *\n * @example\n * Using the `dynamicPluginsFeatureLoader` loader in a backend instance:\n * ```ts\n * //...\n * import { createBackend } from '@backstage/backend-defaults';\n * import { dynamicPluginsFeatureLoader } from '@backstage/backend-dynamic-feature-service';\n *\n * const backend = createBackend();\n * backend.add(dynamicPluginsFeatureLoader);\n * //...\n * backend.start();\n * ```\n *\n * @example\n * Passing options to the `dynamicPluginsFeatureLoader` loader in a backend instance:\n * ```ts\n * //...\n * import { createBackend } from '@backstage/backend-defaults';\n * import { dynamicPluginsFeatureLoader } from '@backstage/backend-dynamic-feature-service';\n * import { myCustomModuleLoader } from './myCustomModuleLoader';\n * import { myCustomSchemaLocator } from './myCustomSchemaLocator';\n *\n * const backend = createBackend();\n * backend.add(dynamicPluginsFeatureLoader({\n * moduleLoader: myCustomModuleLoader,\n * schemaLocator: myCustomSchemaLocator,\n *\n * }));\n * //...\n * backend.start();\n * ```\n */\nexport const dynamicPluginsFeatureLoader = Object.assign(\n dynamicPluginsFeatureLoaderWithOptions,\n dynamicPluginsFeatureLoaderWithOptions(),\n);\n"],"names":["createBackendFeatureLoader","coreServices","configKey","dynamicPluginsSchemasServiceFactory","dynamicPluginsServiceFactory","dynamicPluginsRootLoggerServiceFactory","dynamicPluginsFrontendSchemas","dynamicPluginsFeatureDiscoveryLoader"],"mappings":";;;;;;;;;AAyCA,MAAM,sCAAA,GAAyC,CAC7C,OAAA,KAEAA,2CAA2B,CAAA;AAAA,EACzB,IAAM,EAAA;AAAA,IACJ,QAAQC,6BAAa,CAAA,UAAA;AAAA,GACvB;AAAA,EACA,CAAC,MAAA,CAAO,EAAE,MAAA,EAAU,EAAA;AAClB,IAAM,MAAA,qBAAA,GAAwB,MAAO,CAAA,GAAA,CAAIC,uBAAS,CAAA,CAAA;AAElD,IAAO,OAAA;AAAA,MACLC,4CAAoC,OAAO,CAAA;AAAA,MAC3CC,2CAA6B,OAAO,CAAA;AAAA,KACtC,CAAA;AACA,IAAA,IAAI,qBAAuB,EAAA;AACzB,MAAO,OAAA;AAAA,QACLC,kDAAuC,OAAO,CAAA;AAAA,QAC9CC,sCAAA;AAAA,QACAC,kDAAA;AAAA,OACF,CAAA;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AA4CI,MAAM,8BAA8B,MAAO,CAAA,MAAA;AAAA,EAChD,sCAAA;AAAA,EACA,sCAAuC,EAAA;AACzC;;;;"}
\ No newline at end of file
+{"version":3,"file":"features.cjs.js","sources":["../../src/features/features.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createBackendFeatureLoader,\n} from '@backstage/backend-plugin-api';\nimport type { Config } from '@backstage/config';\nimport {\n DynamicPluginsFactoryOptions,\n dynamicPluginsFeatureDiscoveryLoader,\n dynamicPluginsServiceFactory,\n} from '../manager';\nimport { configKey } from '../scanner/plugin-scanner';\nimport {\n DynamicPluginsRootLoggerFactoryOptions,\n DynamicPluginsSchemasOptions,\n dynamicPluginsFrontendSchemas,\n dynamicPluginsRootLoggerServiceFactory,\n dynamicPluginsSchemasServiceFactory,\n} from '../schemas';\n\n/**\n * @public\n */\nexport type DynamicPluginsFeatureLoaderOptions = DynamicPluginsFactoryOptions &\n DynamicPluginsSchemasOptions &\n{ logger?: (config?: Config) => DynamicPluginsRootLoggerFactoryOptions };\n\nconst dynamicPluginsFeatureLoaderWithOptions = (\n options?: DynamicPluginsFeatureLoaderOptions,\n) =>\n createBackendFeatureLoader({\n deps: {\n config: coreServices.rootConfig,\n },\n *loader({ config }) {\n const dynamicPluginsEnabled = config.has(configKey);\n\n let rootLoggerOptions: DynamicPluginsRootLoggerFactoryOptions = {}\n if (options?.logger) {\n rootLoggerOptions = options.logger(config)\n }\n\n yield* [\n dynamicPluginsSchemasServiceFactory(options),\n dynamicPluginsServiceFactory(options),\n ];\n if (dynamicPluginsEnabled) {\n yield* [\n dynamicPluginsRootLoggerServiceFactory(rootLoggerOptions),\n dynamicPluginsFrontendSchemas,\n dynamicPluginsFeatureDiscoveryLoader,\n ];\n }\n },\n });\n\n/**\n * A backend feature loader that fully enable backend dynamic plugins.\n * More precisely it:\n * - adds the dynamic plugins root service (typically depended upon by plugins),\n * - adds additional required features to allow supporting dynamic plugins config schemas\n * in the frontend application and the backend root logger,\n * - uses the dynamic plugins service to discover and expose dynamic plugins as features.\n *\n * @public\n *\n * @example\n * Using the `dynamicPluginsFeatureLoader` loader in a backend instance:\n * ```ts\n * //...\n * import { createBackend } from '@backstage/backend-defaults';\n * import { dynamicPluginsFeatureLoader } from '@backstage/backend-dynamic-feature-service';\n *\n * const backend = createBackend();\n * backend.add(dynamicPluginsFeatureLoader);\n * //...\n * backend.start();\n * ```\n *\n * @example\n * Passing options to the `dynamicPluginsFeatureLoader` loader in a backend instance:\n * ```ts\n * //...\n * import { createBackend } from '@backstage/backend-defaults';\n * import { dynamicPluginsFeatureLoader } from '@backstage/backend-dynamic-feature-service';\n * import { myCustomModuleLoader } from './myCustomModuleLoader';\n * import { myCustomSchemaLocator } from './myCustomSchemaLocator';\n *\n * const backend = createBackend();\n * backend.add(dynamicPluginsFeatureLoader({\n * moduleLoader: myCustomModuleLoader,\n * schemaLocator: myCustomSchemaLocator,\n *\n * }));\n * //...\n * backend.start();\n * ```\n */\nexport const dynamicPluginsFeatureLoader = Object.assign(\n dynamicPluginsFeatureLoaderWithOptions,\n dynamicPluginsFeatureLoaderWithOptions(),\n);\n"],"names":["createBackendFeatureLoader","coreServices","configKey","dynamicPluginsSchemasServiceFactory","dynamicPluginsServiceFactory","dynamicPluginsRootLoggerServiceFactory","dynamicPluginsFrontendSchemas","dynamicPluginsFeatureDiscoveryLoader"],"mappings":";;;;;;;;;AA0CA,MAAM,sCAAA,GAAyC,CAC7C,OAAA,KAEAA,2CAA2B,CAAA;AAAA,EACzB,IAAM,EAAA;AAAA,IACJ,QAAQC,6BAAa,CAAA,UAAA;AAAA,GACvB;AAAA,EACA,CAAC,MAAA,CAAO,EAAE,MAAA,EAAU,EAAA;AAClB,IAAM,MAAA,qBAAA,GAAwB,MAAO,CAAA,GAAA,CAAIC,uBAAS,CAAA,CAAA;AAElD,IAAA,IAAI,oBAA4D,EAAC,CAAA;AACjE,IAAA,IAAI,SAAS,MAAQ,EAAA;AACnB,MAAoB,iBAAA,GAAA,OAAA,CAAQ,OAAO,MAAM,CAAA,CAAA;AAAA,KAC3C;AAEA,IAAO,OAAA;AAAA,MACLC,4CAAoC,OAAO,CAAA;AAAA,MAC3CC,2CAA6B,OAAO,CAAA;AAAA,KACtC,CAAA;AACA,IAAA,IAAI,qBAAuB,EAAA;AACzB,MAAO,OAAA;AAAA,QACLC,kDAAuC,iBAAiB,CAAA;AAAA,QACxDC,sCAAA;AAAA,QACAC,kDAAA;AAAA,OACF,CAAA;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AA4CI,MAAM,8BAA8B,MAAO,CAAA,MAAA;AAAA,EAChD,sCAAA;AAAA,EACA,sCAAuC,EAAA;AACzC;;;;"}
\ No newline at end of file
diff --git a/dist/index.d.ts b/dist/index.d.ts
index 212ed98b995d33e38f428a108805a6a791bd948f..5af3e7734f58affdd574a4aef61363a8429ff194 100644
--- a/dist/index.d.ts
+++ b/dist/index.d.ts
@@ -276,7 +276,9 @@ declare const dynamicPluginsRootLoggerServiceFactory: ((options?: DynamicPlugins
/**
* @public
*/
-type DynamicPluginsFeatureLoaderOptions = DynamicPluginsFactoryOptions & DynamicPluginsSchemasOptions & DynamicPluginsRootLoggerFactoryOptions;
+type DynamicPluginsFeatureLoaderOptions = DynamicPluginsFactoryOptions & DynamicPluginsSchemasOptions & {
+ logger?: (config?: Config) => DynamicPluginsRootLoggerFactoryOptions;
+};
/**
* A backend feature loader that fully enable backend dynamic plugins.
* More precisely it:
2 changes: 1 addition & 1 deletion backstage.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.31.3"
"version": "1.32.4"
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
]
},
"devDependencies": {
"@backstage/cli": "0.27.1",
"@backstage/cli": "0.28.2",
"@changesets/cli": "2.27.9",
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
"@janus-idp/cli": "*",
Expand All @@ -57,7 +57,9 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"@backstage/backend-dynamic-feature-service@0.4.3": "patch:@backstage/backend-dynamic-feature-service@npm%3A0.4.3#./.yarn/patches/@backstage-backend-dynamic-feature-service-npm-0.4.3-2650d84cc8.patch",
"@backstage/backend-dynamic-feature-service@^0.4.3": "patch:@backstage/backend-dynamic-feature-service@npm%3A0.4.3#./.yarn/patches/@backstage-backend-dynamic-feature-service-npm-0.4.3-2650d84cc8.patch"
},
"jest": {
"testTimeout": 15000
Expand Down
46 changes: 23 additions & 23 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@
"lint:fix": "backstage-cli package lint --fix"
},
"dependencies": {
"@backstage/app-defaults": "1.5.11",
"@backstage/catalog-model": "1.7.0",
"@backstage/core-app-api": "1.15.0",
"@backstage/core-components": "0.15.0",
"@backstage/core-plugin-api": "1.9.4",
"@backstage/integration-react": "1.1.32",
"@backstage/plugin-api-docs": "0.11.10",
"@backstage/plugin-catalog": "1.23.1",
"@backstage/plugin-catalog-common": "1.1.0",
"@backstage/plugin-catalog-graph": "0.4.10",
"@backstage/plugin-catalog-import": "0.12.4",
"@backstage/plugin-catalog-react": "1.13.1",
"@backstage/plugin-org": "0.6.30",
"@backstage/plugin-permission-react": "0.4.26",
"@backstage/plugin-scaffolder": "1.25.1",
"@backstage/plugin-search": "1.4.17",
"@backstage/plugin-search-react": "1.8.0",
"@backstage/plugin-techdocs": "1.10.10",
"@backstage/plugin-techdocs-module-addons-contrib": "1.1.15",
"@backstage/plugin-techdocs-react": "1.2.8",
"@backstage/plugin-user-settings": "0.8.13",
"@backstage/app-defaults": "^1.5.12",
"@backstage/catalog-model": "^1.7.0",
"@backstage/core-app-api": "^1.15.1",
"@backstage/core-components": "^0.15.1",
"@backstage/core-plugin-api": "^1.10.0",
"@backstage/integration-react": "^1.2.0",
"@backstage/plugin-api-docs": "^0.11.11",
"@backstage/plugin-catalog": "^1.24.0",
"@backstage/plugin-catalog-common": "^1.1.0",
"@backstage/plugin-catalog-graph": "^0.4.11",
"@backstage/plugin-catalog-import": "^0.12.5",
"@backstage/plugin-catalog-react": "^1.14.0",
"@backstage/plugin-org": "^0.6.31",
"@backstage/plugin-permission-react": "^0.4.27",
"@backstage/plugin-scaffolder": "^1.26.2",
"@backstage/plugin-search": "^1.4.18",
"@backstage/plugin-search-react": "^1.8.1",
"@backstage/plugin-techdocs": "^1.11.0",
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.16",
"@backstage/plugin-techdocs-react": "^1.2.9",
"@backstage/plugin-user-settings": "^0.8.14",
"@emotion/react": "11.11.4",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "5.15.16",
Expand All @@ -60,8 +60,8 @@
"tss-react": "4.9.10"
},
"devDependencies": {
"@backstage/cli": "0.27.1",
"@backstage/test-utils": "1.6.0",
"@backstage/cli": "0.28.2",
"@backstage/test-utils": "1.7.0",
"@testing-library/dom": "9.3.4",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "14.3.1",
Expand Down
Loading

0 comments on commit 8244f28

Please sign in to comment.