@scalar/nextjs-api-reference 0.6.0 → 0.7.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,32 @@
1
1
  # @scalar/nextjs-api-reference
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [01f2610]
8
+ - @scalar/core@0.2.0
9
+
10
+ ## 0.7.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 5f9a8a2: feat!: remove the spec prefix, make content and url top-level attributes
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [5f9a8a2]
19
+ - @scalar/types@0.1.0
20
+ - @scalar/core@0.1.3
21
+
22
+ ## 0.6.1
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [fc6a45e]
27
+ - @scalar/types@0.0.41
28
+ - @scalar/core@0.1.2
29
+
3
30
  ## 0.6.0
4
31
 
5
32
  ### Minor Changes
package/README.md CHANGED
@@ -33,9 +33,7 @@ If you have a OpenAPI/Swagger file already, you can pass a URL to the plugin in
33
33
  import { ApiReference } from '@scalar/nextjs-api-reference'
34
34
 
35
35
  const config = {
36
- spec: {
37
- url: '/openapi.json',
38
- },
36
+ url: '/openapi.json',
39
37
  }
40
38
 
41
39
  export const GET = ApiReference(config)
@@ -45,9 +43,7 @@ Or, if you just have a static OpenAPI spec, you can directly pass it as well:
45
43
 
46
44
  ```ts
47
45
  const config = {
48
- spec: {
49
- content: '...',
50
- },
46
+ content: '{ "openapi": "3.1.1", … }',
51
47
  }
52
48
  ```
53
49
 
@@ -84,9 +80,7 @@ export default function References() {
84
80
  return (
85
81
  <ApiReferenceReact
86
82
  configuration={{
87
- spec: {
88
- url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
89
- },
83
+ url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
90
84
  }}
91
85
  />
92
86
  )
@@ -106,9 +100,7 @@ You can find all available CDN versions [here](https://www.jsdelivr.com/package/
106
100
  import { ApiReference } from '@scalar/nextjs-api-reference'
107
101
 
108
102
  const config = {
109
- spec: {
110
- url: '/openapi.json',
111
- },
103
+ url: '/openapi.json',
112
104
  cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest',
113
105
  }
114
106