@scalar/nextjs-api-reference 0.4.108 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +7 -0
  3. package/package.json +13 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @scalar/nextjs-api-reference
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [60cd6f1]
8
+ - Updated dependencies [60cd6f1]
9
+ - @scalar/types@0.0.26
10
+
11
+ ## 0.5.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 63350ce: chore: react 19 upgrade minor bump
16
+
17
+ ### Patch Changes
18
+
19
+ - 90529fc: chore: upgrade to react 19
20
+
3
21
  ## 0.4.108
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -19,6 +19,11 @@ This plugin provides an easy way to render a beautiful API reference based on an
19
19
  npm install @scalar/nextjs-api-reference
20
20
  ```
21
21
 
22
+ ## Compatibility
23
+
24
+ This package is compatible with Next.js 15 and is untested on Next.js 14. If you want guaranteed Next.js 14 support
25
+ please use version `0.4.106` of this package.
26
+
22
27
  ## Usage
23
28
 
24
29
  If you have a OpenAPI/Swagger file already, you can pass a URL to the plugin in an API [Route](https://nextjs.org/docs/app/building-your-application/routing/route-handlers):
@@ -69,6 +74,8 @@ npm install @scalar/api-reference-react
69
74
  ```
70
75
 
71
76
  ```tsx
77
+ 'use client'
78
+
72
79
  import { ApiReferenceReact } from '@scalar/api-reference-react'
73
80
  import '@scalar/api-reference-react/style.css'
74
81
 
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "openapi",
19
19
  "swagger"
20
20
  ],
21
- "version": "0.4.108",
21
+ "version": "0.5.1",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -35,18 +35,22 @@
35
35
  ],
36
36
  "module": "./dist/index.js",
37
37
  "dependencies": {
38
- "@scalar/types": "0.0.25"
38
+ "@scalar/types": "0.0.26"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^20.17.10",
42
- "@types/react": "^18.2.60",
43
- "@types/react-dom": "^18.2.19",
44
- "@vitejs/plugin-react": "^4.2.1",
45
- "next": "^14.2.10",
46
- "react-dom": "^18.3.1",
42
+ "@types/react": "^19.0.1",
43
+ "@types/react-dom": "^19.0.2",
44
+ "@vitejs/plugin-react": "^4.3.4",
45
+ "next": "^15.1.1",
46
+ "react-dom": "^19.0.0",
47
47
  "vite": "^5.4.10",
48
- "vite-plugin-dts": "^3.6.3",
49
- "@scalar/api-reference": "1.25.89"
48
+ "vite-plugin-dts": "^4.3.0",
49
+ "@scalar/api-reference": "1.25.104"
50
+ },
51
+ "peerDependencies": {
52
+ "react": "^19.0.0",
53
+ "next": "^15.0.0"
50
54
  },
51
55
  "scripts": {
52
56
  "build": "pnpm types:check && pnpm build-only",