Skip to content

v1.0.0

Choose a tag to compare

@danielweinmann danielweinmann released this 18 Mar 22:20
· 25 commits to main since this release

coerce-form-data

Zero-dependency form data coercion using web standard APIs.

Converts raw form values (strings from HTML forms or FormData objects) into properly typed JavaScript values (numbers, booleans, dates, etc.) and back again.

Highlights

  • Zero dependencies — uses only web standard APIs
  • Full TypeScript support with strict typing
  • ESM and CommonJS builds
  • Reversible coercion — form strings to typed values and typed values back to form strings
  • Supports string, number, boolean, date, and enum field types
  • Works with web standard FormData and plain objects
  • Handles optional and nullable fields

What's Changed

Full Changelog: https://github.com/seasonedcc/coerce-form-data/commits/v1.0.0