@scalar/mock-server 0.8.3 → 0.8.7

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 +58 -0
  2. package/README.md +13 -8
  3. package/package.json +23 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @scalar/mock-server
2
2
 
3
+ ## 0.8.7
4
+
5
+ ### Patch Changes
6
+
7
+ #### Updated Dependencies
8
+
9
+ - **@scalar/oas-utils@0.6.12**
10
+
11
+ ## 0.8.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
16
+
17
+ #### Updated Dependencies
18
+
19
+ - **@scalar/helpers@0.2.4**
20
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
21
+ - [#7567](https://github.com/scalar/scalar/pull/7567): feat: add code samples to client v2
22
+
23
+ - **@scalar/json-magic@0.8.8**
24
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
25
+
26
+ - **@scalar/oas-utils@0.6.11**
27
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
28
+
29
+ - **@scalar/openapi-parser@0.23.9**
30
+ - [#7581](https://github.com/scalar/scalar/pull/7581): fix: npm publish job
31
+
32
+ - **@scalar/openapi-upgrader@0.1.6**
33
+
34
+ ## 0.8.5
35
+
36
+ ### Patch Changes
37
+
38
+ #### Updated Dependencies
39
+
40
+ - **@scalar/helpers@0.2.3**
41
+ - [#7575](https://github.com/scalar/scalar/pull/7575): feat: add support for object examples + hide body when empty
42
+
43
+ - **@scalar/oas-utils@0.6.10**
44
+
45
+ - **@scalar/json-magic@0.8.7**
46
+
47
+ - **@scalar/openapi-parser@0.23.8**
48
+
49
+ ## 0.8.4
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies []:
54
+ - @scalar/oas-utils@0.6.9
55
+ - @scalar/openapi-parser@0.23.7
56
+ - @scalar/openapi-upgrader@0.1.6
57
+ - @scalar/helpers@0.2.2
58
+ - @scalar/json-magic@0.8.6
59
+ - @scalar/openapi-types@0.5.3
60
+
3
61
  ## 0.8.3
4
62
 
5
63
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,10 @@
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
+ -->
7
+
1
8
  # Scalar Mock Server
2
9
 
3
10
  [![Version](https://img.shields.io/npm/v/@scalar/mock-server)](https://www.npmjs.com/package/@scalar/mock-server)
@@ -5,21 +12,19 @@
5
12
  [![License](https://img.shields.io/npm/l/@scalar/mock-server)](https://www.npmjs.com/package/@scalar/mock-server)
6
13
  [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)
7
14
 
8
- A powerful Node.js mock server that automatically generates realistic API responses from your OpenAPI/Swagger documents. It creates fully-functional endpoints with mock data, handles authentication, and respects content types - making it perfect for frontend development, API prototyping, and integration testing.
9
-
10
- ## Usage
11
-
12
- ```bash
13
- npx @scalar/cli document mock openapi.json --watch
14
- ```
15
+ A powerful Node.js mock server that automatically generates realistic API responses from your OpenAPI/Swagger documents
15
16
 
16
17
  ## Documentation
17
18
 
18
19
  [Read the documentation here](https://guides.scalar.com/scalar/scalar-mock-server/getting-started)
19
20
 
21
+ ## Changelog
22
+
23
+ See [CHANGELOG.md](https://github.com/scalar/scalar/blob/main/packages/mock-server/CHANGELOG.md) for a list of changes.
24
+
20
25
  ## Community
21
26
 
22
- 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>
23
28
 
24
29
  ## License
25
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalar/mock-server",
3
- "description": "OpenAPI mock server server",
3
+ "description": "A powerful Node.js mock server that automatically generates realistic API responses from your OpenAPI/Swagger documents",
4
4
  "license": "MIT",
5
5
  "author": "Scalar (https://github.com/scalar)",
6
6
  "homepage": "https://github.com/scalar/scalar",
@@ -16,7 +16,7 @@
16
16
  "swagger",
17
17
  "cli"
18
18
  ],
19
- "version": "0.8.3",
19
+ "version": "0.8.7",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },
@@ -35,20 +35,35 @@
35
35
  "./dist",
36
36
  "CHANGELOG.md"
37
37
  ],
38
+ "readme": {
39
+ "title": "Scalar Mock Server",
40
+ "badges": [
41
+ {
42
+ "type": "npm-version"
43
+ },
44
+ {
45
+ "type": "npm-downloads"
46
+ },
47
+ {
48
+ "type": "npm-license"
49
+ }
50
+ ],
51
+ "documentation": "https://guides.scalar.com/scalar/scalar-mock-server/getting-started"
52
+ },
38
53
  "dependencies": {
39
54
  "@faker-js/faker": "^9.0.0",
40
55
  "hono": "4.10.3",
41
- "@scalar/json-magic": "0.8.6",
42
- "@scalar/helpers": "0.2.2",
43
- "@scalar/openapi-parser": "0.23.7",
44
- "@scalar/oas-utils": "0.6.8",
56
+ "@scalar/helpers": "0.2.4",
57
+ "@scalar/oas-utils": "0.6.12",
58
+ "@scalar/openapi-parser": "0.23.9",
59
+ "@scalar/openapi-types": "0.5.3",
45
60
  "@scalar/openapi-upgrader": "0.1.6",
46
- "@scalar/openapi-types": "0.5.3"
61
+ "@scalar/json-magic": "0.8.8"
47
62
  },
48
63
  "devDependencies": {
49
64
  "@types/node": "^22.9.0",
50
65
  "vite": "7.1.11",
51
- "@scalar/build-tooling": "0.3.1"
66
+ "@scalar/build-tooling": "0.4.0"
52
67
  },
53
68
  "scripts": {
54
69
  "build": "scalar-build-esbuild",