@conform-to/yup 0.8.0-pre.1 → 0.8.0
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ function ExampleForm() {
|
|
|
65
65
|
Or when parsing the formData on server side (e.g. Remix):
|
|
66
66
|
|
|
67
67
|
```tsx
|
|
68
|
-
import { useForm
|
|
68
|
+
import { useForm } from '@conform-to/react';
|
|
69
69
|
import { parse } from '@conform-to/yup';
|
|
70
70
|
import * as yup from 'yup';
|
|
71
71
|
|
|
@@ -83,8 +83,8 @@ export async function action({ request }) {
|
|
|
83
83
|
async: true,
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
86
|
+
if (submission.intent !== 'submit' || !submission.value) {
|
|
87
|
+
return submission;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// ...
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Conform helpers for integrating with yup",
|
|
4
4
|
"homepage": "https://conform.guide",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.8.0
|
|
6
|
+
"version": "0.8.0",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.mjs",
|
|
9
9
|
"types": "index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/edmundhung/conform/issues"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@conform-to/dom": "0.8.0
|
|
28
|
+
"@conform-to/dom": "0.8.0",
|
|
29
29
|
"yup": ">=0.32.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|