@backstage/backend-openapi-utils 0.5.1-next.0 → 0.5.1

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,23 @@
1
1
  # @backstage/backend-openapi-utils
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@1.2.1
9
+ - @backstage/errors@1.2.7
10
+ - @backstage/types@1.2.1
11
+
12
+ ## 0.5.1-next.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+ - @backstage/backend-plugin-api@1.2.1-next.1
18
+ - @backstage/errors@1.2.7
19
+ - @backstage/types@1.2.1
20
+
3
21
  ## 0.5.1-next.0
4
22
 
5
23
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -626,7 +626,7 @@ declare function getOpenApiSpecRoute(baseUrl: string): string;
626
626
  declare function createValidatedOpenApiRouter<T extends RequiredDoc>(spec: T, options?: {
627
627
  validatorOptions?: Partial<Parameters<typeof middleware>['0']>;
628
628
  middleware?: RequestHandler[];
629
- }): ApiRouter<T>;
629
+ }): ApiRouter<typeof spec>;
630
630
  /**
631
631
  * Create a new OpenAPI router with some default middleware.
632
632
  * @param spec - Your OpenAPI spec imported as a JSON object.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Express } from 'express';
3
2
  import { Server } from 'http';
4
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-openapi-utils",
3
- "version": "0.5.1-next.0",
3
+ "version": "0.5.1",
4
4
  "description": "OpenAPI typescript support.",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -32,7 +32,7 @@
32
32
  "types": "./dist/index.d.ts",
33
33
  "typesVersions": {
34
34
  "*": {
35
- "index": [
35
+ "*": [
36
36
  "dist/index.d.ts"
37
37
  ],
38
38
  "testUtils": [
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@apidevtools/swagger-parser": "^10.1.0",
57
- "@backstage/backend-plugin-api": "1.2.1-next.0",
58
- "@backstage/errors": "1.2.7",
59
- "@backstage/types": "1.2.1",
57
+ "@backstage/backend-plugin-api": "^1.2.1",
58
+ "@backstage/errors": "^1.2.7",
59
+ "@backstage/types": "^1.2.1",
60
60
  "@types/express": "^4.17.6",
61
61
  "@types/express-serve-static-core": "^4.17.5",
62
62
  "ajv": "^8.16.0",
@@ -71,8 +71,8 @@
71
71
  "openapi3-ts": "^3.1.2"
72
72
  },
73
73
  "devDependencies": {
74
- "@backstage/cli": "0.30.0",
75
- "@backstage/test-utils": "1.7.5",
74
+ "@backstage/cli": "^0.31.0",
75
+ "@backstage/test-utils": "^1.7.6",
76
76
  "msw": "^1.0.0",
77
77
  "supertest": "^7.0.0"
78
78
  }