@rachelallyson/hero-hook-form 2.2.0 → 2.3.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/CHANGELOG.md +33 -0
- package/dist/index.d.ts +922 -40
- package/dist/index.js +10 -19
- package/dist/react/index.d.ts +922 -40
- package/dist/react/index.js +10 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2.3.0] - 2026-01-13
|
|
6
|
+
|
|
7
|
+
### Removed
|
|
8
|
+
|
|
9
|
+
- **Breaking Change**: Removed `render` prop from `ZodForm` and `ZodFormConfig`
|
|
10
|
+
- The `render` prop was rarely used and added unnecessary complexity
|
|
11
|
+
- Use `content` field type instead for adding headers, questions, or custom content between fields
|
|
12
|
+
- This simplifies the API and makes it more consistent
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- **Type Safety**: Removed all `any` types from `ContentFieldConfig` and `FormFieldHelpers.content()`
|
|
17
|
+
- Replaced with type-safe approach using minimal type assertion
|
|
18
|
+
- Maintains full type safety while allowing compatibility with any form type
|
|
19
|
+
- No breaking changes - all existing code continues to work
|
|
20
|
+
|
|
21
|
+
## [2.2.2] - 2026-01-13
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **Type Safety**: Removed all `any` types from `ContentFieldConfig` and `FormFieldHelpers.content()`
|
|
26
|
+
- Replaced with type-safe approach using minimal type assertion
|
|
27
|
+
- Maintains full type safety while allowing compatibility with any form type
|
|
28
|
+
- No breaking changes - all existing code continues to work
|
|
29
|
+
|
|
30
|
+
## [2.2.1] - 2026-01-13
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **Type Safety**: Improved type inference for `FormFieldHelpers.content()` to fix TypeScript "unsafe call" errors
|
|
35
|
+
- Changed return type from `ZodFormFieldConfig<T>` to `ContentFieldConfig<T>` for better type inference
|
|
36
|
+
- Fixes TypeScript compilation errors when using the content helper function
|
|
37
|
+
|
|
5
38
|
## [2.2.0] - 2026-01-13
|
|
6
39
|
|
|
7
40
|
### Added
|