Repository navigation
Releases: biyrololo/solidjs-hook-form
Releases · biyrololo/solidjs-hook-form
Release list
Improved Validation and Documentation
Release Notes v1.0.3
This release focuses on improving the robustness of the form validation, enhancing the developer experience with better documentation, and providing
more comprehensive usage examples.
✨ Features
- Input Name Validation: The handleChange function now verifies that the input's name attribute corresponds to a key in the Zod schema. This prevents
accidental updates to the form state with invalid field names and logs an error to the console if a mismatch occurs.
🐛 Fixes
- Improved Validation Error Handling: The validation logic now gracefully handles Zod issues that may not have a path associated with them, preventing
potential runtime errors and ensuring smoother validation.
📚 Documentation
- JSDoc Comments: Added detailed JSDoc comments to useForm and its return types, improving IntelliSense and providing clearer guidance for developers
within their IDE. - New README Example: The README.md has been updated with a more advanced example demonstrating how to integrate solidjs-hook-form with custom input
components and a more complex validation schema.
v1.0.1 - Initial Stable Release
This is the first stable release of solid-hook-form!
This release marks the initial publishable version of the library. The focus has been on establishing a robust build process, ensuring correct
module formatting for modern web environments, and providing comprehensive documentation.
✨ Features & Improvements
- ES Module Output: The library is now bundled as a standard ES Module (esm), ensuring compatibility with modern bundlers like Vite and preventing
module resolution errors. - TypeScript Declarations: The package now includes full TypeScript type definitions (.d.ts files), providing an excellent developer experience with
autocompletion and type-checking. - Optimized Build: The build process has been configured to correctly externalize peer dependencies (solid-js, zod), resulting in a tiny and
efficient package.
📝 Documentation
- A comprehensive README.md has been added, featuring:
- A detailed API reference for the useForm hook.
- A complete usage example for a typical registration form.
- Clear installation and setup instructions.
⚙️ Project Housekeeping
- Added .gitignore and .npmignore to ensure clean commits and a lightweight npm package.
- Configured package.json with the repository link, keywords, and a proper description for better discoverability on npm.