@scalar/nextjs-api-reference 0.9.1 → 0.9.3

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 +16 -0
  2. package/README.md +18 -5
  3. package/package.json +22 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @scalar/nextjs-api-reference
2
2
 
3
+ ## 0.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @scalar/core@0.3.24
9
+
10
+ ## 0.9.2
11
+
12
+ ### Patch Changes
13
+
14
+ - [#7375](https://github.com/scalar/scalar/pull/7375) [`55bb334`](https://github.com/scalar/scalar/commit/55bb3346d1f9ac964770acc90aa810266a972d96) Thanks [@stefanprobst](https://github.com/stefanprobst)! - relax peerDependency range for nextjs to support v16
15
+
16
+ - Updated dependencies []:
17
+ - @scalar/core@0.3.23
18
+
3
19
  ## 0.9.1
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -1,17 +1,30 @@
1
- # Scalar Next.js API Reference Handler
1
+ <!--
2
+ This file is auto-generated by the Scalar README generator.
3
+ Command: pnpm --filter @scalar-internal/build-scripts start generate-readme
4
+
5
+ Do not edit this file manually. Changes will be lost when the file is regenerated.
6
+ -->
2
7
 
3
- [![Version](https://img.shields.io/npm/v/%40scalar/nextjs-api-reference)](https://www.npmjs.com/package/@scalar/nextjs-api-reference)
4
- [![Downloads](https://img.shields.io/npm/dm/%40scalar/nextjs-api-reference)](https://www.npmjs.com/package/@scalar/nextjs-api-reference)
5
- [![License](https://img.shields.io/npm/l/%40scalar%2fnextjs-api-reference)](https://www.npmjs.com/package/@scalar/nextjs-api-reference)
8
+ # Scalar API Reference Handler for Next.js
9
+
10
+ [![Version](https://img.shields.io/npm/v/@scalar/nextjs-api-reference)](https://www.npmjs.com/package/@scalar/nextjs-api-reference)
11
+ [![Downloads](https://img.shields.io/npm/dm/@scalar/nextjs-api-reference)](https://www.npmjs.com/package/@scalar/nextjs-api-reference)
12
+ [![License](https://img.shields.io/npm/l/@scalar/nextjs-api-reference)](https://www.npmjs.com/package/@scalar/nextjs-api-reference)
6
13
  [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)
7
14
 
15
+ Next.js API route handler to serve beautiful, interactive API documentation from OpenAPI/Swagger documents.
16
+
8
17
  ## Documentation
9
18
 
10
19
  [Read the documentation here](https://guides.scalar.com/scalar/scalar-api-references/integrations/nextjs)
11
20
 
21
+ ## Changelog
22
+
23
+ See [CHANGELOG.md](https://github.com/scalar/scalar/blob/main/integrations/nextjs/CHANGELOG.md) for a list of changes.
24
+
12
25
  ## Community
13
26
 
14
- We are API nerds. You too? Let's chat on Discord: <https://discord.gg/scalar>
27
+ We are API nerds. You too? Lets chat on Discord: <https://discord.gg/scalar>
15
28
 
16
29
  ## License
17
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalar/nextjs-api-reference",
3
- "description": "a Next.js component to render API references from an OpenAPI file",
3
+ "description": "Next.js API route handler to serve beautiful, interactive API documentation from OpenAPI/Swagger documents.",
4
4
  "license": "MIT",
5
5
  "author": "Scalar (https://github.com/scalar)",
6
6
  "homepage": "https://github.com/scalar/scalar",
@@ -18,12 +18,13 @@
18
18
  "openapi",
19
19
  "swagger"
20
20
  ],
21
- "version": "0.9.1",
21
+ "version": "0.9.3",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
25
25
  "type": "module",
26
26
  "main": "./dist/index.cjs",
27
+ "module": "./dist/index.js",
27
28
  "types": "dist/index.d.ts",
28
29
  "exports": {
29
30
  "import": "./dist/index.js",
@@ -33,25 +34,39 @@
33
34
  "dist",
34
35
  "CHANGELOG.md"
35
36
  ],
36
- "module": "./dist/index.js",
37
+ "readme": {
38
+ "title": "Scalar API Reference Handler for Next.js",
39
+ "badges": [
40
+ {
41
+ "type": "npm-version"
42
+ },
43
+ {
44
+ "type": "npm-downloads"
45
+ },
46
+ {
47
+ "type": "npm-license"
48
+ }
49
+ ],
50
+ "documentation": "https://guides.scalar.com/scalar/scalar-api-references/integrations/nextjs"
51
+ },
37
52
  "dependencies": {
38
- "@scalar/core": "0.3.22"
53
+ "@scalar/core": "0.3.24"
39
54
  },
40
55
  "devDependencies": {
41
56
  "@types/node": "^22.9.0",
42
57
  "@types/react": "^19.1.8",
43
58
  "@types/react-dom": "^19.1.6",
44
59
  "@vitejs/plugin-react": "5.0.4",
45
- "next": "^15.4.7",
60
+ "next": "^15.5.7",
46
61
  "react": "^19.1.0",
47
62
  "react-dom": "^19.1.0",
48
63
  "vite": "7.1.11",
49
64
  "vite-plugin-dts": "^4.3.0",
50
65
  "vitest": "3.2.4",
51
- "@scalar/api-reference": "1.39.2"
66
+ "@scalar/api-reference": "1.40.1"
52
67
  },
53
68
  "peerDependencies": {
54
- "next": "^15.0.0",
69
+ "next": "^15.0.0 || ^16.0.0",
55
70
  "react": "^19.0.0"
56
71
  },
57
72
  "scripts": {