@scalar/nextjs-openapi 0.0.43 → 0.1.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,25 @@
1
1
  # @scalar/nextjs-openapi
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5f9a8a2: feat!: remove the spec prefix, make content and url top-level attributes
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5f9a8a2]
12
+ - @scalar/nextjs-api-reference@0.7.0
13
+ - @scalar/types@0.1.0
14
+
15
+ ## 0.0.44
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [fc6a45e]
20
+ - @scalar/types@0.0.41
21
+ - @scalar/nextjs-api-reference@0.6.1
22
+
3
23
  ## 0.0.43
4
24
 
5
25
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAGlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAa9C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,sBAAsB,CAAA;AA+B1B;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,YAAY,aAAa;eAmCxB,WAAW;CAiB/B,CAAA"}
1
+ {"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAa9C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,sBAAsB,CAAA;AA+B1B;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,YAAY,aAAa;eAmCxB,WAAW;CAe/B,CAAA"}
package/dist/openapi.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { readFileSync } from 'node:fs';
1
2
  import { ApiReference } from '@scalar/nextjs-api-reference';
2
3
  import { sync } from 'fast-glob';
3
- import { readFileSync } from 'node:fs';
4
4
  import { createSourceFile, ScriptTarget, ScriptKind, JSDocParsingMode, createProgram } from 'typescript';
5
5
  import { getPathSchema } from './path.js';
6
6
 
@@ -73,9 +73,7 @@ const OpenAPI = (config = {}) => {
73
73
  }
74
74
  // References
75
75
  return await ApiReference({
76
- spec: {
77
- url: req.nextUrl.pathname + '/schema.json',
78
- },
76
+ url: req.nextUrl.pathname + '/schema.json',
79
77
  })();
80
78
  },
81
79
  };
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "scalar",
17
17
  "references"
18
18
  ],
19
- "version": "0.0.43",
19
+ "version": "0.1.0",
20
20
  "engines": {
21
21
  "node": ">=18"
22
22
  },
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "fast-glob": "^3.3.2",
37
- "@scalar/nextjs-api-reference": "0.6.0",
37
+ "@scalar/nextjs-api-reference": "0.7.0",
38
38
  "@scalar/ts-to-openapi": "0.0.5",
39
- "@scalar/types": "0.0.40"
39
+ "@scalar/types": "0.1.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^20.17.10",