@scalar/express-api-reference 0.4.193 → 0.6.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +4 -10
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @scalar/express-api-reference
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 01f2610: feat: use new JS API
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [01f2610]
12
+ - @scalar/core@0.2.0
13
+
14
+ ## 0.5.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 5f9a8a2: feat!: remove the spec prefix, make content and url top-level attributes
19
+
20
+ ### Patch Changes
21
+
22
+ - @scalar/core@0.1.3
23
+
24
+ ## 0.4.194
25
+
26
+ ### Patch Changes
27
+
28
+ - @scalar/core@0.1.2
29
+
3
30
  ## 0.4.193
4
31
 
5
32
  ### Patch Changes
package/README.md CHANGED
@@ -25,10 +25,8 @@ import { apiReference } from '@scalar/express-api-reference'
25
25
  app.use(
26
26
  '/reference',
27
27
  apiReference({
28
- spec: {
29
- // Put your OpenAPI url here:
30
- url: '/openapi.json',
31
- },
28
+ // Put your OpenAPI url here:
29
+ url: '/openapi.json',
32
30
  }),
33
31
  )
34
32
  ```
@@ -46,9 +44,7 @@ app.use(
46
44
  '/reference',
47
45
  apiReference({
48
46
  theme: 'purple',
49
- spec: {
50
- url: '/openapi.json',
51
- },
47
+ url: '/openapi.json',
52
48
  }),
53
49
  )
54
50
  ```
@@ -64,9 +60,7 @@ app.use(
64
60
  '/reference',
65
61
  apiReference({
66
62
  cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference',
67
- spec: {
68
- url: '/openapi.json',
69
- },
63
+ url: '/openapi.json',
70
64
  }),
71
65
  )
72
66
  ```
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "integrations/express"
12
12
  },
13
- "version": "0.4.193",
13
+ "version": "0.6.0",
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "module": "dist/index.js",
32
32
  "dependencies": {
33
- "@scalar/core": "0.1.1"
33
+ "@scalar/core": "0.2.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/express": "^4.17.21",