@backstage/backend-openapi-utils 0.1.0-next.2 → 0.1.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,29 @@
1
1
  # @backstage/backend-openapi-utils
2
2
 
3
+ ## 0.1.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - aaa6fb3bc9: Minor updates for TypeScript 5.2.2+ compatibility
8
+ - Updated dependencies
9
+ - @backstage/backend-plugin-api@0.6.8-next.0
10
+ - @backstage/config@1.1.1
11
+ - @backstage/errors@1.2.3
12
+
13
+ ## 0.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 785fb1ea75: Adds a new route, `/openapi.json` to validated routers for displaying their full OpenAPI spec in a standard endpoint.
18
+
19
+ ### Patch Changes
20
+
21
+ - 6694b369a3: Adds a new function `wrapInOpenApiTestServer` that allows for proxied requests at runtime. This will support the new `yarn backstage-repo-tools schema openapi test` command.
22
+ - Updated dependencies
23
+ - @backstage/backend-plugin-api@0.6.7
24
+ - @backstage/config@1.1.1
25
+ - @backstage/errors@1.2.3
26
+
3
27
  ## 0.1.0-next.2
4
28
 
5
29
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -221,10 +221,11 @@ type TuplifyUnion<T, L = LastOf<T>, N = [T] extends [never] ? true : false> = tr
221
221
  /**
222
222
  * @public
223
223
  */
224
- type ConvertAll<T, R extends ReadonlyArray<unknown> = []> = T extends [
225
- infer First extends JSONSchema7,
226
- ...infer Rest
227
- ] ? ConvertAll<Rest, [...R, FromSchema<First>]> : R;
224
+ type ConvertAll<T extends ReadonlyArray<unknown>> = {
225
+ [Index in keyof T]: T[Index] extends JSONSchema7 ? FromSchema<T[Index]> : T[Index];
226
+ } & {
227
+ length: T['length'];
228
+ };
228
229
  /**
229
230
  * @public
230
231
  */
@@ -410,7 +411,7 @@ type index_d_UnionToIntersection<U> = UnionToIntersection<U>;
410
411
  type index_d_LastOf<T> = LastOf<T>;
411
412
  type index_d_Push<T extends any[], V> = Push<T, V>;
412
413
  type index_d_TuplifyUnion<T, L = LastOf<T>, N = [T] extends [never] ? true : false> = TuplifyUnion<T, L, N>;
413
- type index_d_ConvertAll<T, R extends ReadonlyArray<unknown> = []> = ConvertAll<T, R>;
414
+ type index_d_ConvertAll<T extends ReadonlyArray<unknown>> = ConvertAll<T>;
414
415
  type index_d_UnknownIfNever<P> = UnknownIfNever<P>;
415
416
  type index_d_ToTypeSafe<T> = ToTypeSafe<T>;
416
417
  type index_d_DiscriminateUnion<T, K extends keyof T, V extends T[K]> = DiscriminateUnion<T, K, V>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/backend-openapi-utils",
3
3
  "description": "OpenAPI typescript support.",
4
- "version": "0.1.0-next.2",
4
+ "version": "0.1.1-next.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -30,14 +30,14 @@
30
30
  "postpack": "backstage-cli package postpack"
31
31
  },
32
32
  "devDependencies": {
33
- "@backstage/cli": "^0.24.0-next.1",
33
+ "@backstage/cli": "^0.24.1-next.0",
34
34
  "supertest": "^6.1.3"
35
35
  },
36
36
  "files": [
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@backstage/backend-plugin-api": "^0.6.7-next.2",
40
+ "@backstage/backend-plugin-api": "^0.6.8-next.0",
41
41
  "@backstage/config": "^1.1.1",
42
42
  "@backstage/errors": "^1.2.3",
43
43
  "@types/express": "^4.17.6",