Skip to content

Commit 2ce2925

Browse files
committed
chore: update deps
1 parent 5792e31 commit 2ce2925

32 files changed

+804
-805
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ yarn add api-morph
4141

4242
```typescript
4343
// schema.ts
44-
import { z } from "zod/v4";
44+
import z from "zod/v4";
4545

4646
export const UserIdDto = z.object({
4747
id: z.string().meta({ description: "用户ID" }),

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

docs/guides/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ app.listen(port, () => {
109109
接下来,我们创建必要的 Zod schema 来定义数据结构。创建 `schema.ts` 文件:
110110

111111
```typescript
112-
import { z } from "zod/v4";
112+
import z from "zod/v4";
113113

114114
export const UserIdDto = z.object({
115115
id: z.string().meta({ description: "用户ID" }),

docs/guides/working-principles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ app.get(
144144
```
145145

146146
```typescript [schema.ts]
147-
import { z } from "zod/v4";
147+
import z from "zod/v4";
148148

149149
export const UserIdDto = z.object({
150150
id: z.uuid().meta({ description: "用户ID", examples: ["123e4567-e89b-12d3-a456-426614174000"] }),

examples/express/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod/v4";
1+
import z from "zod/v4";
22

33
export const UserIdDto = z.object({
44
id: z.string().meta({ description: "用户ID" }),

examples/hono/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod/v4";
1+
import z from "zod/v4";
22

33
export const UserIdDto = z.object({
44
id: z.string().meta({ description: "用户ID" }),

examples/koa/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod/v4";
1+
import z from "zod/v4";
22

33
export const UserIdDto = z.object({
44
id: z.string().meta({ description: "用户ID" }),

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "api-morph",
33
"type": "module",
44
"version": "0.2.1",
5-
"packageManager": "pnpm@10.12.4",
5+
"packageManager": "pnpm@10.13.1",
66
"description": "A modern TypeScript-first OpenAPI document generator that analyzes your code and JSDoc comments to automatically generate comprehensive and accurate API documentation.",
77
"author": "Yingzhi Ji <[email protected]>",
88
"license": "MIT",
@@ -82,32 +82,32 @@
8282
"dependencies": {
8383
"@hono/node-server": "^1.15.0",
8484
"@hono/zod-validator": "^0.7.0",
85-
"@hyperjump/json-schema": "^1.16.0",
85+
"@hyperjump/json-schema": "^1.16.1",
8686
"@types/koa-static": "^4.0.4",
8787
"deepmerge": "^4.3.1",
8888
"koa-static": "^5.0.0",
8989
"micromatch": "^4.0.8",
9090
"mime-types": "^3.0.1",
9191
"radashi": "^12.6.0",
92-
"supertest": "^7.1.1",
93-
"swagger-ui-dist": "^5.25.3",
92+
"supertest": "^7.1.3",
93+
"swagger-ui-dist": "^5.26.2",
9494
"ts-morph": "^26.0.0",
9595
"typescript": "^5.8.3",
9696
"yaml": "^2.8.0"
9797
},
9898
"devDependencies": {
99-
"@biomejs/biome": "^2.0.6",
99+
"@biomejs/biome": "^2.1.1",
100100
"@oxc-node/core": "^0.0.29",
101101
"@types/micromatch": "^4.0.9",
102102
"@types/mime-types": "^3.0.1",
103-
"@types/node": "^24.0.7",
103+
"@types/node": "^24.0.12",
104104
"@types/supertest": "^6.0.3",
105105
"@vitest/coverage-v8": "^3.2.4",
106-
"lefthook": "^1.11.14",
106+
"lefthook": "^1.12.1",
107107
"nanoid": "^5.1.5",
108108
"npm-run-all2": "^8.0.4",
109109
"tsdown": "^0.12.9",
110-
"typedoc": "^0.28.6",
110+
"typedoc": "^0.28.7",
111111
"typedoc-plugin-markdown": "^4.7.0",
112112
"typedoc-vitepress-theme": "^1.1.2",
113113
"vite-tsconfig-paths": "^5.1.4",
@@ -123,7 +123,7 @@
123123
"express": "^5.0.0",
124124
"hono": "^4.0.0",
125125
"koa": "^3.0.0",
126-
"zod": "^3.25.0"
126+
"zod": "^3.25.0 || ^4.0.0"
127127
},
128128
"peerDependenciesMeta": {
129129
"@koa/router": {

0 commit comments

Comments
 (0)