Skip to content

Commit d5e7420

Browse files
authored
build: ⬆️ update to zod@^4.0.0 and document (#46)
1 parent 323550e commit d5e7420

File tree

8 files changed

+34
-1598
lines changed

8 files changed

+34
-1598
lines changed

.cursor/rules/readme.mdc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
globs: README.*
3+
alwaysApply: false
4+
---
5+
6+
- All documentation about editor integration (VSCode extension, TypeScript plugin, etc.) must be updated in both English and Chinese README files, ensuring all features, usage, tips, and examples are consistent and synchronized.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bun add zod@latest
5353
bun add -D unplugin-valype
5454
```
5555

56-
> zod's version should be `3.25.0` at least, because valype generates zod v4 schema
56+
> zod's version should be `3.25.0` at least, but we recommend using zod v4 for the best experience, because valype generates zod v4 schema
5757
5858
2. Configure plugin for your build tool following [unplugin-valype docs](./packages/plugin/README.md)
5959

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bun add zod@latest
5353
bun add -D unplugin-valype
5454
```
5555

56-
> zod 的版本至少需要 `3.25.0`,因为 valype 生成的是 zod v4 schema
56+
> zod 的版本至少需要 `3.25.0`但我们推荐使用 zod v4 以获得最佳体验,因为 valype 生成的是 zod v4 schema
5757
5858
2. 根据 [unplugin-valype 文档](./packages/plugin/README.md) 为你的构建工具配置插件
5959

bun.lock

Lines changed: 18 additions & 1588 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "0.0.11",
44
"author": "yuzheng14 <lyuchensy@foxmail.com>",
55
"devDependencies": {
6-
"@eslint/css": "^0.8.1",
6+
"@eslint/css": "^0.10.0",
77
"@eslint/js": "^9.29.0",
8-
"@eslint/json": "^0.12.0",
9-
"@eslint/markdown": "^6.5.0",
8+
"@eslint/json": "^0.13.0",
9+
"@eslint/markdown": "^7.0.0",
1010
"@napi-rs/wasm-runtime": "^1.0.0",
1111
"@types/bun": "^1.2.16",
1212
"@vitest/coverage-v8": "^3.2.4",

packages/plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bun add zod@latest
2222
bun add -D unplugin-valype
2323
```
2424

25-
> zod's version should be `3.25.0` at least, because valype generates zod v4 schema
25+
> zod's version should be `3.25.0` at least, but we recommend using zod v4 for the best experience, because valype generates zod v4 schema
2626
2727
<details>
2828
<summary>Vite</summary><br>

playground/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
},
1111
"dependencies": {
1212
"vue": "^3.5.16",
13-
"zod": "^3.25.58"
13+
"zod": "^4.0.5"
1414
},
1515
"devDependencies": {
1616
"@valype/typescript-plugin": "workspace:*",
17-
"@vitejs/plugin-vue": "^5.2.4",
17+
"@vitejs/plugin-vue": "^6.0.0",
1818
"typescript": "^5.8.3",
1919
"unplugin-valype": "workspace:*",
20-
"vue-tsc": "^2.2.10"
20+
"vue-tsc": "^3.0.3"
2121
}
2222
}

website/src/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bun add zod@latest
2626
bun add -D unplugin-valype
2727
```
2828

29-
> zod's version should be `3.25.0` at least, because valype generates zod v4 schema
29+
> zod's version should be `3.25.0` at least, but we recommend using zod v4 for the best experience, because valype generates zod v4 schema
3030
3131
:::
3232

0 commit comments

Comments
 (0)