@backstage/repo-tools 0.17.1-next.2 → 0.17.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @backstage/repo-tools
2
2
 
3
+ ## 0.17.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 927c003: Replaced internal error utilities with shared ones from `@backstage/cli-common`.
8
+ - Updated dependencies
9
+ - @backstage/errors@1.3.1-next.0
10
+ - @backstage/backend-plugin-api@1.9.1-next.0
11
+ - @backstage/catalog-model@1.8.1-next.0
12
+ - @backstage/cli-common@0.2.2-next.0
13
+ - @backstage/cli-node@0.3.2-next.0
14
+ - @backstage/config-loader@1.10.11-next.0
15
+
16
+ ## 0.17.1
17
+
18
+ ### Patch Changes
19
+
20
+ - 2e5c5f8: Bumped `glob` dependency from v7/v8/v11 to v13 to address security vulnerabilities in older versions. Bumped `rollup` from v4.27 to v4.59+ to fix a high severity path traversal vulnerability (GHSA-mw96-cpmx-2vgc).
21
+ - 482ceed: Migrated from `assertError` to `toError` for error handling.
22
+ - 377de36: Fixed the `peer-deps` command to only require peer dependencies that are actually referenced by each package, rather than requiring all tracked peer dependencies for every package with any React dependency.
23
+ - 8e9679b: Parallelized CLI report generation, reducing wall-clock time by ~4x.
24
+ - ca2dc15: Internal code cleanup.
25
+ - 270efef: Added support for packages that only support React 18+ in the `peer-deps` command.
26
+ - Updated dependencies
27
+ - @backstage/backend-plugin-api@1.9.0
28
+ - @backstage/errors@1.3.0
29
+ - @backstage/catalog-model@1.8.0
30
+ - @backstage/cli-common@0.2.1
31
+ - @backstage/cli-node@0.3.1
32
+ - @backstage/config-loader@1.10.10
33
+
3
34
  ## 0.17.1-next.2
4
35
 
5
36
  ### Patch Changes
@@ -90,7 +90,19 @@ var peerDeps = async ({ fix }) => {
90
90
  for (const pkg of packagesWithRelevantDependencies) {
91
91
  const packageJson = pkg.packageJson;
92
92
  const expectedPeerDeps = getExpectedPeerDependencies(packageJson);
93
+ const allDeps = {
94
+ ...packageJson.dependencies,
95
+ ...packageJson.devDependencies,
96
+ ...packageJson.peerDependencies
97
+ };
93
98
  for (const dep of Object.keys(peerDependencies)) {
99
+ const isReferencedInPackage = !!allDeps[dep];
100
+ const isInGroupWithReferencedDep = groupsOfPeerDependencies.some(
101
+ (group) => group.includes(dep) && group.some((groupDep) => !!allDeps[groupDep])
102
+ );
103
+ if (!isReferencedInPackage && !isInGroupWithReferencedDep) {
104
+ continue;
105
+ }
94
106
  if (isPeerDependency(dep, packageJson)) {
95
107
  if (isOptional(dep) && !isMarkedAsOptional(dep, packageJson)) {
96
108
  console.error(
@@ -1,27 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ var cliCommon = require('@backstage/cli-common');
3
4
  var chalk = require('chalk');
4
5
 
5
6
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
7
 
7
8
  var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
8
9
 
9
- class CustomError extends Error {
10
- get name() {
11
- return this.constructor.name;
12
- }
13
- }
14
- class ExitCodeError extends CustomError {
15
- code;
16
- constructor(code, command) {
17
- super(
18
- command ? `Command '${command}' exited with code ${code}` : `Child exited with code ${code}`
19
- );
20
- this.code = code;
21
- }
22
- }
23
10
  function exitWithError(error) {
24
- if (error instanceof ExitCodeError) {
11
+ if (error instanceof cliCommon.ExitCodeError) {
25
12
  process.stderr.write(`
26
13
  ${chalk__default.default.red(error.message)}
27
14
 
@@ -36,7 +23,5 @@ ${chalk__default.default.red(`${error}`)}
36
23
  }
37
24
  }
38
25
 
39
- exports.CustomError = CustomError;
40
- exports.ExitCodeError = ExitCodeError;
41
26
  exports.exitWithError = exitWithError;
42
27
  //# sourceMappingURL=errors.cjs.js.map
@@ -2,9 +2,8 @@
2
2
 
3
3
  const YAML_SCHEMA_PATH = "src/schema/openapi.yaml";
4
4
  const OUTPUT_PATH = "src/schema/openapi/generated";
5
- const TS_MODULE = `${OUTPUT_PATH}/router`;
6
5
  const OLD_SCHEMA_PATH = `src/schema/openapi.generated.ts`;
7
- const TS_SCHEMA_PATH = `${TS_MODULE}.ts`;
6
+ const TS_SCHEMA_PATH = `${OUTPUT_PATH}/router.ts`;
8
7
  const OPENAPI_IGNORE_FILES = [
9
8
  // Get rid of the default files.
10
9
  "*.md",
@@ -41,7 +40,6 @@ const OPENAPI_IGNORE_FILES = [
41
40
  exports.OLD_SCHEMA_PATH = OLD_SCHEMA_PATH;
42
41
  exports.OPENAPI_IGNORE_FILES = OPENAPI_IGNORE_FILES;
43
42
  exports.OUTPUT_PATH = OUTPUT_PATH;
44
- exports.TS_MODULE = TS_MODULE;
45
43
  exports.TS_SCHEMA_PATH = TS_SCHEMA_PATH;
46
44
  exports.YAML_SCHEMA_PATH = YAML_SCHEMA_PATH;
47
45
  //# sourceMappingURL=constants.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.17.1-next.2";
3
+ var version = "0.17.2-next.0";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/repo-tools",
3
- "version": "0.17.1-next.2",
3
+ "version": "0.17.2-next.0",
4
4
  "description": "CLI for Backstage repo tooling ",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -43,12 +43,12 @@
43
43
  "dependencies": {
44
44
  "@apidevtools/swagger-parser": "^10.1.0",
45
45
  "@apisyouwonthate/style-guide": "^1.4.0",
46
- "@backstage/backend-plugin-api": "1.9.0-next.2",
47
- "@backstage/catalog-model": "1.7.8-next.0",
48
- "@backstage/cli-common": "0.2.1-next.1",
49
- "@backstage/cli-node": "0.3.1-next.1",
50
- "@backstage/config-loader": "1.10.10-next.1",
51
- "@backstage/errors": "1.3.0-next.0",
46
+ "@backstage/backend-plugin-api": "1.9.1-next.0",
47
+ "@backstage/catalog-model": "1.8.1-next.0",
48
+ "@backstage/cli-common": "0.2.2-next.0",
49
+ "@backstage/cli-node": "0.3.2-next.0",
50
+ "@backstage/config-loader": "1.10.11-next.0",
51
+ "@backstage/errors": "1.3.1-next.0",
52
52
  "@electric-sql/pglite": "^0.3.0",
53
53
  "@manypkg/get-packages": "^1.1.3",
54
54
  "@microsoft/api-documenter": "^7.28.1",
@@ -87,8 +87,8 @@
87
87
  "zod": "^3.25.76 || ^4.0.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@backstage/backend-test-utils": "1.11.2-next.2",
91
- "@backstage/cli": "0.36.1-next.2",
90
+ "@backstage/backend-test-utils": "1.11.3-next.0",
91
+ "@backstage/cli": "0.36.2-next.0",
92
92
  "@backstage/types": "1.2.2",
93
93
  "@types/is-glob": "^4.0.2",
94
94
  "@types/node": "^22.13.14",