Releases: GauBen/formgator
Releases · GauBen/formgator
formgator @ v0.2.3
- Expose the
Failures
type. (#37)
formgator @ v0.2.2
- New
.enrich(attrs)
form input method to add custom attributes. (#32)
formgator @ v0.2.1
- Use the
v
flag for RegExps.
formgator @ v0.2.0
formgator @ v0.1.4
-
Add support for custom error messages. (#22)
// Composable, user-friendly username schema const username = fg.text( { minlength: 3, pattern: /^\w+$/ }, { // Can be a function or a string minlength: ({ minlength }) => `Username must be at least ${minlength} characters long`, pattern: "Username can only contain letters, numbers, and underscores", } );
formgator @ v0.1.3
- Bring back provenance.
formgator @ v0.1.2
- New validator:
fg.multi()
for inputs under the same name. (#19)
formgator @ v0.1.1
Patch Changes
- aeb4c8c: Added
.pipe()
method to compose other Standard Schema compliant validators
[email protected]
Minor Changes
- 12c8a90: Formgator is now standard-schema compliant! Read more on https://standardschema.dev/
[email protected]
Patch Changes
- 3469bb4: Expose update options in
reportValidity