@railway-ts/use-form 0.1.14 → 0.1.15
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.
- package/README.md +1 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Bring your own Zod, Valibot, or ArkType via [Standard Schema](https://github.com
|
|
|
32
32
|
bun add @railway-ts/use-form @railway-ts/pipelines # or npm, pnpm, yarn
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Requires React 18+ and @railway-ts/pipelines ^0.1.
|
|
35
|
+
Requires React 18+ and @railway-ts/pipelines ^0.1.19.
|
|
36
36
|
|
|
37
37
|
## Quick Start
|
|
38
38
|
|
|
@@ -174,8 +174,6 @@ export function RegistrationForm() {
|
|
|
174
174
|
},
|
|
175
175
|
fieldValidators: {
|
|
176
176
|
username: async (value) => {
|
|
177
|
-
if (value.length < 3) return undefined;
|
|
178
|
-
|
|
179
177
|
try {
|
|
180
178
|
const { available } = await queryClient.fetchQuery({
|
|
181
179
|
queryKey: ['check-username', value],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@railway-ts/use-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "React form hook that works with @railway-ts/pipelines to manage form state, validation, and submission.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@railway-ts/pipelines": "^0.1.
|
|
73
|
+
"@railway-ts/pipelines": "^0.1.19",
|
|
74
74
|
"react": "^18.0.0 || ^19.0.0",
|
|
75
75
|
"typescript": "^5"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@happy-dom/global-registrator": "^20.0.10",
|
|
79
|
-
"@railway-ts/pipelines": "^0.1.
|
|
79
|
+
"@railway-ts/pipelines": "^0.1.19",
|
|
80
80
|
"@testing-library/dom": "^10.4.1",
|
|
81
81
|
"@testing-library/jest-dom": "^6.9.1",
|
|
82
82
|
"@testing-library/react": "^16.3.0",
|