Skip to content

v0.1.0

Choose a tag to compare

@tristendillon tristendillon released this 14 Nov 23:06
· 701 commits to main since this release
e25d25f

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 ./v1

The 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 signal

Packages

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 from onSubmitted is 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.