Skip to content

Releases: GauBen/formgator

formgator @ v0.2.3

18 Jun 19:10
c3d4116
Compare
Choose a tag to compare
  • Expose the Failures type. (#37)

formgator @ v0.2.2

17 Jun 16:32
068f477
Compare
Choose a tag to compare
  • New .enrich(attrs) form input method to add custom attributes. (#32)

formgator @ v0.2.1

16 Jun 21:39
6aad826
Compare
Choose a tag to compare
  • Use the v flag for RegExps.

formgator @ v0.2.0

03 Jun 17:20
53de9f5
Compare
Choose a tag to compare

Breaking Changes

  • SvelteKit: non-serializable values (files, blobs) are no longer sent back through form.accepted. (#26)

  • Refinement issues no longer expose the refused value through issue.received. (#26)

formgator @ v0.1.4

13 Apr 13:37
77de58f
Compare
Choose a tag to compare
  • 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

05 Apr 11:46
5f888b5
Compare
Choose a tag to compare
  • Bring back provenance.

formgator @ v0.1.2

20 Mar 19:49
0afe93f
Compare
Choose a tag to compare
  • New validator: fg.multi() for inputs under the same name. (#19)

formgator @ v0.1.1

20 Mar 18:59
62914e3
Compare
Choose a tag to compare

Patch Changes

  • aeb4c8c: Added .pipe() method to compose other Standard Schema compliant validators

[email protected]

29 Jan 22:00
566755f
Compare
Choose a tag to compare

Minor Changes

[email protected]

25 Dec 22:42
7e6c3a3
Compare
Choose a tag to compare

Patch Changes

  • 3469bb4: Expose update options in reportValidity