@conform-to/yup 0.7.2 → 0.7.4

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -73,7 +73,7 @@ const schema = yup.object({
73
73
  // Define the schema with yup
74
74
  });
75
75
 
76
- export let action = async ({ request }) => {
76
+ export async function action({ request }) {
77
77
  const formData = await request.formData();
78
78
  const submission = parse(formData, {
79
79
  // If you need extra validation on server side
@@ -88,5 +88,5 @@ export let action = async ({ request }) => {
88
88
  }
89
89
 
90
90
  // ...
91
- };
91
+ }
92
92
  ```
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.7.2",
6
+ "version": "0.7.4",
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.7.2",
28
+ "@conform-to/dom": "0.7.4",
29
29
  "yup": ">=0.32.0"
30
30
  },
31
31
  "devDependencies": {