Repository navigation
v0.1.0
The first release of forms: forms for React and Solid, with the form logic in one small core that knows nothing about either.
Install
npm install @lunarhue/forms-react # React 16.8 and later
npm install @lunarhue/forms-solid # Solid 2, and Solid 1 at ./v1The adapter brings the core and the plugins that need no other library. Add these when you want them:
npm install @lunarhue/forms-schema zod # or valibot
npm install @lunarhue/forms-bind # Zustand or a Solid signalPackages
All five share one version.
| Package | What it is |
|---|---|
@lunarhue/forms-react |
Type-safe forms for React, with features as plugins |
@lunarhue/forms-solid |
Type-safe forms for Solid, with features as plugins |
@lunarhue/forms-schema |
Zod and Valibot plugins |
@lunarhue/forms-bind |
Binds a form to a Zustand store or a Solid signal |
@lunarhue/forms-core |
The framework-free core: values, arrays, submit and plugins. The adapters depend on it, so you rarely install it yourself |
Changes
- First release. (#119)
@lunarhue/forms-core: a write that a plugin queues fromonSubmittedis now applied when the hook returns, with one notification. Before, it waited for the next write from anywhere else. (#118)
Each package has its own CHANGELOG.md.