refactor(@vben-core/form-ui): migrate to Zod 4 and TanStack Form (#8176)

* build(@vben-core/form-ui): update form validation dependencies

* refactor(@vben-core/form-ui): replace vee-validate with TanStack Form

* test(@vben-core/form-ui): cover TanStack Form migration

* docs(@vben/docs): document Zod 4 form migration

* refactor(project): update form adapters

* refactor(project): migrate application form consumers

* refactor(@vben/playground): migrate form examples

* docs(@vben/docs): fix validate return type and required rule empty check in form docs

* fix(@vben-core/form-ui): resolve oxlint and eslint errors

- rewrite nested ternary expressions as if/else in form-field-array.vue and form-runtime.ts
- sort @tanstack/vue-form before @vben-core/composables in package.json

* chore: fix merge artifacts and formatting

- move dependencies before devDependencies in root package.json
- update preferences snapshot for widget positioning fields
- format form-array demo README

* refactor(@vben-core/form-ui): optimize form runtime and value flow

- add fine-grained field selectors and atomic dependency resolution
- expose raw and formatted value snapshots with focused regression coverage

* fix(@vben/layouts): dispose sortable instance on unmount

* docs(@vben/docs): document form runtime API changes

- list added, changed, removed, and deprecated form APIs
- document atomic dependencies and raw versus formatted values
This commit is contained in:
dream-weave
2026-07-22 19:47:07 +08:00
committed by GitHub
parent 6b6708bcf2
commit 28757fb9c8
81 changed files with 4683 additions and 1435 deletions

View File

@@ -62,6 +62,7 @@ catalog:
'@stylistic/stylelint-plugin': ^5.2.1
'@tailwindcss/typography': ^0.5.20
'@tailwindcss/vite': ^4.3.3
'@tanstack/vue-form': ^1.33.2
'@tanstack/vue-query': ^5.101.2
'@tanstack/vue-store': ^0.11.0
'@tiptap/core': ^3.28.0
@@ -88,7 +89,6 @@ catalog:
'@types/qs': ^6.15.1
'@types/sortablejs': ^1.15.9
'@typescript-eslint/parser': ^8.64.0
'@vee-validate/zod': ^4.15.1
'@vite-pwa/vitepress': ^1.1.0
'@vitejs/plugin-vue': ^6.0.8
'@vitejs/plugin-vue-jsx': ^5.1.6
@@ -189,7 +189,6 @@ catalog:
unplugin-dts: ^1.0.3
unplugin-element-plus: ^0.11.2
unplugin-vue: ^7.2.0
vee-validate: ^4.15.1
vite: ^8.1.5
vite-plugin-compression: ^0.5.1
vite-plugin-lazy-import: ^1.0.7
@@ -209,8 +208,8 @@ catalog:
vxe-table: ^4.20.5
watermark-js-plus: ^1.6.6
yaml-eslint-parser: ^2.1.0
zod: ^3.25.76
zod-defaults: 0.1.3
zod: ^4.4.3
zod-defaults: ^0.2.3
allowBuilds:
'@parcel/watcher': true