@conform-to/react 1.13.0 → 1.13.1

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.13.0 / License MIT / Copyright (c) 2025 Edmund Hung
10
+ Version 1.13.1 / License MIT / Copyright (c) 2025 Edmund Hung
11
11
 
12
12
  Progressively enhance HTML forms with React. Build resilient, type-safe forms with no hassle using web standards.
13
13
 
@@ -71,7 +71,7 @@ export type UseFormDataOptions = {
71
71
  };
72
72
  export type DefaultValue<Shape> = Shape extends Record<string, any> ? {
73
73
  [Key in keyof Shape]?: DefaultValue<Shape[Key]>;
74
- } | null : Shape extends Array<infer Item> ? Array<DefaultValue<Item>> | null : Shape extends File | File[] ? null : Shape | string | null;
74
+ } | null | undefined : Shape extends Array<infer Item> ? Array<DefaultValue<Item>> | null | undefined : Shape extends File | File[] ? null | undefined : Shape | string | null | undefined;
75
75
  export type FormState<ErrorShape extends BaseErrorShape = DefaultErrorShape> = {
76
76
  /** Unique identifier that changes on form reset to trigger reset side effects */
77
77
  resetKey: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Conform view adapter for react",
4
4
  "homepage": "https://conform.guide",
5
5
  "license": "MIT",
6
- "version": "1.13.0",
6
+ "version": "1.13.1",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.mjs",
9
9
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "url": "https://github.com/edmundhung/conform/issues"
42
42
  },
43
43
  "dependencies": {
44
- "@conform-to/dom": "1.13.0"
44
+ "@conform-to/dom": "1.13.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.17.8",