@scalar/hono-api-reference 0.5.151 → 0.5.152

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 (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,7 +32,7 @@ app.get(
32
32
  )
33
33
  ```
34
34
 
35
- The Hono middleware takes our universal configuration object, [read more about configuration](https://github.com/scalar/scalar/tree/main/packages/api-reference#props) in the core package README.
35
+ The Hono middleware takes our universal configuration object, [read more about configuration](https://github.com/scalar/scalar/blob/main/documentation/configuration.md) in the core package README.
36
36
 
37
37
  ### Themes
38
38
 
@@ -74,13 +74,17 @@ app.get(
74
74
 
75
75
  You can use a custom CDN ,default is `https://cdn.jsdelivr.net/npm/@scalar/api-reference`.
76
76
 
77
+ You can also pin the CDN to a specific version by specifying it in the CDN string like `https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.25.28`
78
+
79
+ You can find all available CDN versions [here](https://www.jsdelivr.com/package/npm/@scalar/api-reference?tab=files)
80
+
77
81
  ```ts
78
82
  import { apiReference } from '@scalar/hono-api-reference'
79
83
 
80
84
  app.use(
81
85
  '/reference',
82
86
  apiReference({
83
- cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference',
87
+ cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest',
84
88
  spec: {
85
89
  content: OpenApiSpecification,
86
90
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/hono-api-reference"
12
12
  },
13
- "version": "0.5.151",
13
+ "version": "0.5.152",
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },