@backstage/repo-tools 0.16.0-next.2 → 0.16.1-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,40 @@
1
1
  # @backstage/repo-tools
2
2
 
3
+ ## 0.16.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 85895f9: Updates OpenAPI generator templates to preserve original property names (like 'group-name', 'user-id') from OpenAPI specs when propertyNaming=original is specified. Previously, these were always converted to camelCase regardless of the propertyNaming setting.
8
+
9
+ - Updates modelGeneric.mustache templates in both client and server generators
10
+ - Updates modelTaggedUnion.mustache templates in both client and server generators
11
+ - Uses {{baseName}} when available, falls back to {{name}} for backward compatibility
12
+ - Maintains backward compatibility - no changes when propertyNaming=original is not used
13
+
14
+ - Updated dependencies
15
+ - @backstage/backend-plugin-api@1.5.1-next.0
16
+ - @backstage/cli-common@0.1.16-next.0
17
+ - @backstage/cli-node@0.2.16-next.0
18
+ - @backstage/config-loader@1.10.7-next.0
19
+ - @backstage/catalog-model@1.7.6
20
+ - @backstage/errors@1.2.7
21
+
22
+ ## 0.16.0
23
+
24
+ ### Minor Changes
25
+
26
+ - 11c61f2: The `package-docs` command will now automatically use a `typedoc.json` file if one exists at the root of your project.
27
+
28
+ ### Patch Changes
29
+
30
+ - 8f56eae: Updated knip-reports to detect dependencies in dev/alpha pattern
31
+ - 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility.
32
+ - Updated dependencies
33
+ - @backstage/backend-plugin-api@1.5.0
34
+ - @backstage/config-loader@1.10.6
35
+ - @backstage/cli-node@0.2.15
36
+ - @backstage/catalog-model@1.7.6
37
+
3
38
  ## 0.16.0-next.2
4
39
 
5
40
  ### Minor Changes
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ var backendPluginApi = require('@backstage/backend-plugin-api');
3
4
  var chalk = require('chalk');
4
- var path = require('path');
5
- var constants = require('../../../../../lib/openapi/constants.cjs.js');
6
- var paths = require('../../../../../lib/paths.cjs.js');
7
5
  var fs = require('fs-extra');
6
+ var path = require('path');
8
7
  var exec = require('../../../../../lib/exec.cjs.js');
9
- var backendPluginApi = require('@backstage/backend-plugin-api');
10
- var helpers = require('../../../../../lib/openapi/helpers.cjs.js');
8
+ var constants = require('../../../../../lib/openapi/constants.cjs.js');
11
9
  var dedupeImports = require('../../../../../lib/openapi/dedupe-imports.cjs.js');
10
+ var helpers = require('../../../../../lib/openapi/helpers.cjs.js');
11
+ var paths = require('../../../../../lib/paths.cjs.js');
12
12
 
13
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
14
14
 
@@ -51,7 +51,9 @@ async function lint(directoryPath, config) {
51
51
  "api-home-get": "off",
52
52
  "operation-tags": "off",
53
53
  "hosts-https-only-oas3": "off",
54
- "no-unknown-error-format": "off"
54
+ "no-unknown-error-format": "off",
55
+ // Disabled as it currently gives false positives when 'example' is used as a property name.
56
+ "oas3-valid-media-example": "off"
55
57
  }
56
58
  }
57
59
  ]
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.16.0-next.2";
3
+ var version = "0.16.1-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.16.0-next.2",
3
+ "version": "0.16.1-next.0",
4
4
  "description": "CLI for Backstage repo tooling ",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -43,11 +43,11 @@
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.5.0-next.2",
47
- "@backstage/catalog-model": "1.7.6-next.0",
48
- "@backstage/cli-common": "0.1.15",
49
- "@backstage/cli-node": "0.2.15-next.0",
50
- "@backstage/config-loader": "1.10.6-next.0",
46
+ "@backstage/backend-plugin-api": "1.5.1-next.0",
47
+ "@backstage/catalog-model": "1.7.6",
48
+ "@backstage/cli-common": "0.1.16-next.0",
49
+ "@backstage/cli-node": "0.2.16-next.0",
50
+ "@backstage/config-loader": "1.10.7-next.0",
51
51
  "@backstage/errors": "1.2.7",
52
52
  "@electric-sql/pglite": "^0.3.0",
53
53
  "@manypkg/get-packages": "^1.1.3",
@@ -86,8 +86,8 @@
86
86
  "zod": "^3.22.4"
87
87
  },
88
88
  "devDependencies": {
89
- "@backstage/backend-test-utils": "1.10.0-next.2",
90
- "@backstage/cli": "0.34.5-next.1",
89
+ "@backstage/backend-test-utils": "1.10.1-next.0",
90
+ "@backstage/cli": "0.34.6-next.0",
91
91
  "@backstage/types": "1.2.2",
92
92
  "@types/is-glob": "^4.0.2",
93
93
  "@types/node": "^20.16.0",
@@ -18,7 +18,7 @@ export {{#isNullable}}type{{/isNullable}}{{^isNullable}}interface{{/isNullable}}
18
18
  * {{{.}}}
19
19
  */
20
20
  {{/description}}
21
- '{{name}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
21
+ '{{#baseName}}{{baseName}}{{/baseName}}{{^baseName}}{{name}}{{/baseName}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
22
22
  {{/vars}}
23
23
  }{{#isNullable}} | null{{/isNullable}}
24
24
 
@@ -12,7 +12,7 @@ export interface {{classname}} { {{>modelGenericAdditionalProperties}}
12
12
  * {{{.}}}
13
13
  */
14
14
  {{/description}}
15
- {{name}}{{^required}}?{{/required}}: {{#discriminatorValue}}'{{.}}'{{/discriminatorValue}}{{^discriminatorValue}}{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{/discriminatorValue}}{{#isNullable}} | null{{/isNullable}};
15
+ '{{#baseName}}{{baseName}}{{/baseName}}{{^baseName}}{{name}}{{/baseName}}'{{^required}}?{{/required}}: {{#discriminatorValue}}'{{.}}'{{/discriminatorValue}}{{^discriminatorValue}}{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{/discriminatorValue}}{{#isNullable}} | null{{/isNullable}};
16
16
  {{/allVars}}
17
17
  }
18
18
  {{>modelGenericEnums}}
@@ -18,7 +18,7 @@ export {{#isNullable}}type{{/isNullable}}{{^isNullable}}interface{{/isNullable}}
18
18
  * {{{.}}}
19
19
  */
20
20
  {{/description}}
21
- '{{name}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
21
+ '{{#baseName}}{{baseName}}{{/baseName}}{{^baseName}}{{name}}{{/baseName}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}} | null{{/isNullable}};
22
22
  {{/vars}}
23
23
  }{{#isNullable}} | null{{/isNullable}}
24
24
 
@@ -12,7 +12,7 @@ export interface {{classname}} { {{>modelGenericAdditionalProperties}}
12
12
  * {{{.}}}
13
13
  */
14
14
  {{/description}}
15
- {{name}}{{^required}}?{{/required}}: {{#discriminatorValue}}'{{.}}'{{/discriminatorValue}}{{^discriminatorValue}}{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{/discriminatorValue}}{{#isNullable}} | null{{/isNullable}};
15
+ '{{#baseName}}{{baseName}}{{/baseName}}{{^baseName}}{{name}}{{/baseName}}'{{^required}}?{{/required}}: {{#discriminatorValue}}'{{.}}'{{/discriminatorValue}}{{^discriminatorValue}}{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{/discriminatorValue}}{{#isNullable}} | null{{/isNullable}};
16
16
  {{/allVars}}
17
17
  }
18
18
  {{>modelGenericEnums}}