@conform-to/yup
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "index.js", | ||
@@ -18,3 +18,3 @@ "module": "module/index.js", | ||
"peerDependencies": { | ||
"@conform-to/dom": "0.3.0", | ||
"@conform-to/dom": "0.3.1", | ||
"yup": ">=0.32.0" | ||
@@ -21,0 +21,0 @@ }, |
@@ -5,2 +5,4 @@ # @conform-to/yup | ||
<!-- aside --> | ||
## API Reference | ||
@@ -10,2 +12,4 @@ | ||
<!-- /aside --> | ||
### resolve | ||
@@ -20,3 +24,3 @@ | ||
// Define the schema with zod | ||
// Define the schema with yup | ||
const schema = resolve( | ||
@@ -38,3 +42,3 @@ yup.object({ | ||
// Parse the data against the zod schema | ||
// Parse the data against the yup schema | ||
const submission = schema.parse(payload); | ||
@@ -56,3 +60,3 @@ | ||
const [setupFieldset, { email, password }] = useFieldset({ | ||
// Inferring the constraint with the schema | ||
// Optional: setup native constraint inferred from the schema | ||
constraint: schema.constraint | ||
@@ -59,0 +63,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16739
96