@conform-to/yup 1.6.0 → 1.7.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 CHANGED
@@ -7,7 +7,7 @@
7
7
  ╚══════╝ ╚═════╝ ╚═╝ ╚══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
8
8
  ```
9
9
 
10
- Version 1.6.0 / License MIT / Copyright (c) 2024 Edmund Hung
10
+ Version 1.7.0 / License MIT / Copyright (c) 2024 Edmund Hung
11
11
 
12
12
  A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js.
13
13
 
@@ -1,3 +1,4 @@
1
1
  import { type Constraint } from '@conform-to/dom';
2
2
  import type * as yup from 'yup';
3
3
  export declare function getYupConstraint<Source extends yup.AnyObjectSchema>(source: Source): Record<string, Constraint>;
4
+ //# sourceMappingURL=constraint.d.ts.map
@@ -9,3 +9,4 @@ export declare function parseWithYup<Schema extends yup.AnyObjectSchema>(payload
9
9
  schema: Schema | ((intent: Intent | null) => Schema);
10
10
  async: true;
11
11
  }): Promise<Submission<yup.InferType<Schema>, string[]>>;
12
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -3,19 +3,23 @@
3
3
  "description": "Conform helpers for integrating with yup",
4
4
  "homepage": "https://conform.guide",
5
5
  "license": "MIT",
6
- "version": "1.6.0",
7
- "main": "index.js",
8
- "module": "index.mjs",
9
- "types": "index.d.ts",
6
+ "version": "1.7.0",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./index.d.ts",
13
- "module": "./index.mjs",
14
- "import": "./index.mjs",
15
- "require": "./index.js",
16
- "default": "./index.mjs"
12
+ "types": "./dist/index.d.ts",
13
+ "module": "./dist/index.mjs",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.js",
16
+ "default": "./dist/index.mjs"
17
17
  }
18
18
  },
19
+ "files": [
20
+ "./dist/**/*.{js,mjs}",
21
+ "./dist/**/*.d.ts"
22
+ ],
19
23
  "repository": {
20
24
  "type": "git",
21
25
  "url": "https://github.com/edmundhung/conform",
@@ -25,7 +29,7 @@
25
29
  "url": "https://github.com/edmundhung/conform/issues"
26
30
  },
27
31
  "dependencies": {
28
- "@conform-to/dom": "1.6.0"
32
+ "@conform-to/dom": "1.7.0"
29
33
  },
30
34
  "peerDependencies": {
31
35
  "yup": ">=0.32.0"
@@ -52,10 +56,11 @@
52
56
  "sideEffects": false,
53
57
  "scripts": {
54
58
  "build:js": "rollup -c",
55
- "build:ts": "tsc",
59
+ "build:ts": "tsc --project ./tsconfig.build.json",
56
60
  "build": "pnpm run \"/^build:.*/\"",
57
61
  "dev:js": "pnpm run build:js --watch",
58
62
  "dev:ts": "pnpm run build:ts --watch",
59
- "dev": "pnpm run \"/^dev:.*/\""
63
+ "dev": "pnpm run \"/^dev:.*/\"",
64
+ "typecheck": "tsc"
60
65
  }
61
66
  }
File without changes
File without changes
File without changes
File without changes