Skip to content

Latest commit

 

History

History
993 lines (452 loc) · 44.5 KB

CHANGELOG.md

File metadata and controls

993 lines (452 loc) · 44.5 KB

5.1.1 (2024-03-14)

Bug Fixes

  • useDateField: drop manual date instance (c2d6460)

5.1.0 (2024-03-12)

Features

  • extend-schema: better schema callback with the initial schema for extension (#122) (44aa7ac)

5.0.1 (2024-03-07)

Bug Fixes

  • RequiredAtom: make truly read-only atom instead of PrimitiveAtom (9bb7517)

5.0.0 (2024-03-06)

Features

BREAKING CHANGES

  • listField: listAtom extracted to @form-atoms/list-atom which is now a required peer Dependency for listField()
  • listField: The builder config property from listField was renamed to fields.
  • listField: The builder config property no longer accepts FieldAtom as return type. FormFields must be returned.

4.1.0-next.1 (2024-03-06)

Features

4.0.16 (2024-03-06)

Bug Fixes

  • build: omit scenarios from distributable (dd5881c)
  • scripts: no postinstall (5c4d914)
  • typecheck: merge configs & temporarily disable source errors (0bb1fb4)

4.0.15 (2024-02-19)

Bug Fixes

4.0.14 (2024-02-14)

Bug Fixes

4.0.13 (2024-02-14)

Bug Fixes

4.0.13-next.1 (2024-02-14)

Bug Fixes

  • list-atom: make pristine (!dirty) after new initialValue is set (#107) (170312d), closes #105

4.0.12 (2024-02-14)

Bug Fixes

  • list-field: initial value with effect dependencies (#104) (#106) (5a9db35)

4.0.11 (2024-01-24)

Bug Fixes

  • export form (FormSubmitValues) (9e75f36)

4.0.10 (2024-01-23)

Bug Fixes

  • file-upload: add export (34bb722)

4.0.9 (2024-01-23)

Bug Fixes

  • upload-atom: experimental uploadAtom and fileUpload within a list (#103) (3c12e39)

4.0.8 (2024-01-23)

Bug Fixes

4.0.7 (2024-01-18)

Bug Fixes

4.0.7-next.10 (2024-01-18)

Bug Fixes

  • useMultiSelectFieldProps: make field initializable via options (#96) (#97) (049945b)

4.0.7-next.9 (2024-01-18)

Bug Fixes

  • useCheckboxGroup: make field initializable (#94) (#95) (412f651)

4.0.7-next.8 (2024-01-18)

Bug Fixes

  • RadioGroup: support for initialValue prop (#92) (#93) (f08db15)

4.0.7-next.7 (2024-01-18)

Bug Fixes

  • useSelectFieldProps: make field initializable via options (#91) (126b454)

4.0.7-next.6 (2024-01-18)

Bug Fixes

  • useTextFieldProps: make textField initializable via options (#88) (#89) (10d8ea9)

4.0.7-next.5 (2024-01-18)

Bug Fixes

  • useFilesFieldProps: ignore the initialValue (#86) (#87) (40362f0)

4.0.7-next.4 (2024-01-18)

Bug Fixes

  • useNumberFieldProps: make numberField initializable via options (#85) (dbad7da)

4.0.7-next.3 (2024-01-18)

Bug Fixes

  • useDateFieldProps: make dateField initializable via options (#84) (164487d)

4.0.7-next.2 (2024-01-18)

Bug Fixes

  • checkboxFieldProps: make checkboxField initializable via options (#83) (63afa6d)

4.0.7-next.1 (2024-01-18)

Bug Fixes

  • useFieldProps: enable passing initialValue via options (#82) (4fb0c3f)

4.0.6 (2024-01-17)

Bug Fixes

  • listAtom: compute the dirty flag (#80) (db053d9)

4.0.5 (2024-01-15)

Bug Fixes

4.0.4 (2024-01-14)

Bug Fixes

  • revert to FIV instead of hydrate to prevent HTML mismatch (ba3efe9)

4.0.3 (2024-01-14)

Bug Fixes

4.0.2 (2024-01-14)

Bug Fixes

4.0.2-next.2 (2024-01-14)

Bug Fixes

4.0.2-next.1 (2024-01-14)

Bug Fixes

  • listField: use ListAtomConfig with the invalidItemError (#74) (6d28e0d)

4.0.1 (2024-01-11)

Bug Fixes

  • listAtom: #68 the validateatom of listatom should listen to the validation of in… (#70) (1679827), closes #69 #67 #71

4.0.0 (2024-01-05)

BREAKING CHANGES

  • the ListField no longer uses path access to form fields, instead it works directly with the new listField()
  • The EmptyMessage render prop has been renamed to simply Empty:
<ListField
  field={fields.luckyNumbers}
-  EmptyMessage={() => <p>No lucky numbers</p>}
+  Empty={() => <p>No lucky numbers</p>}
>
  • fix(ListField): Rename render props for add/remove button

BREAKING CHANGE

the AddItemButton and RemoveItemButton props were renamed to AddButton and RemoveButton respectively.

  • docs(ListField): fix nested example

  • fix(listAtom): reset nested forms

  • fix(listField): adding new item to list revalidates field with a change event

  • fix(listField): revalidate the field with change event when the item is removed

  • test & callback wrapper

  • fix: nested listAtom in listAtom validation

4.0.0-next.1 (2024-01-05)

BREAKING CHANGES

  • the ListField no longer uses path access to form fields, instead it works directly with the new listField()
  • The EmptyMessage render prop has been renamed to simply Empty:
<ListField
  field={fields.luckyNumbers}
-  EmptyMessage={() => <p>No lucky numbers</p>}
+  Empty={() => <p>No lucky numbers</p>}
>
  • fix(ListField): Rename render props for add/remove button

BREAKING CHANGE

the AddItemButton and RemoveItemButton props were renamed to AddButton and RemoveButton respectively.

  • docs(ListField): fix nested example

  • fix(listAtom): reset nested forms

  • fix(listField): adding new item to list revalidates field with a change event

  • fix(listField): revalidate the field with change event when the item is removed

  • test & callback wrapper

  • fix: nested listAtom in listAtom validation

3.8.14 (2023-12-21)

Bug Fixes

3.8.13 (2023-12-05)

Bug Fixes

  • CheckboxGroup: option type as checkbox, add tests (d0c7a6f)

3.8.12 (2023-12-05)

Bug Fixes

  • test: add coverage action (962eb86)

3.8.11 (2023-12-05)

Bug Fixes

  • read currentTarget from events (3afd6e3)

3.8.10 (2023-12-05)

Bug Fixes

  • useFieldProps: drop the empty argument as its specific to each field type and not generic (1554612)

3.8.9 (2023-12-05)

Bug Fixes

  • useCheckboxFieldProps: extend to support BooleanField as input (c3c59c0), closes #33

3.8.8 (2023-12-05)

Bug Fixes

  • missing type (52c2d2a)
  • zodField: accept read for dynamic required state in optional method (8524974)

3.8.7 (2023-12-04)

Bug Fixes

  • types: listFieldBuilder with proper type for primitive and fields (8beff9b), closes #56

3.8.6 (2023-12-04)

Bug Fixes

  • required-field: share the default required atom (bd92273)

3.8.5 (2023-12-04)

Bug Fixes

  • types: readable ZodField type (af53ad7), closes #55

3.8.4 (2023-12-02)

Bug Fixes

3.8.3 (2023-12-02)

Bug Fixes

3.8.2 (2023-12-01)

Bug Fixes

3.8.1 (2023-12-01)

Bug Fixes

  • ListItem: document the count child prop (43297e4)

3.8.0 (2023-11-30)

Features

3.7.0 (2023-11-30)

Features

  • ListField: improved builder (35d19aa), closes #40

3.6.4 (2023-11-30)

Bug Fixes

  • initialize advanced fields with empty values (67e8ab5), closes #52

3.6.3 (2023-11-29)

Bug Fixes

  • bump linter and prettier (bd45862)

3.6.2 (2023-11-29)

Bug Fixes

3.6.1 (2023-11-28)

Bug Fixes

  • ListField: add count property (3f3a327)

3.6.0 (2023-10-23)

Features

  • ListField: moveUp & moveDown actions (fixes #48) (bba571e)

3.5.4 (2023-10-23)

Bug Fixes

  • listField: enable adding new items before existing ones (a888c4d)

3.5.3 (2023-10-23)

Bug Fixes

  • sync split hook with field & test use list field actions (4e6fa06)

3.5.2 (2023-10-20)

Bug Fixes

  • #49: use splitAtom instead of immutable object path (95da83a), closes #49
  • listField change update values (79302c4)

3.5.1 (2023-10-20)

Bug Fixes

  • #49: use splitAtom instead of immutable object path (#50) (7fb372b), closes #49

3.5.0 (2023-10-16)

Features

  • clear file input value via atomEffect (#47) (e124aaa)

3.4.0 (2023-07-12)

Features

  • PlaceholderOption: separate placeholder from useOptions fixes #45 #43 (b2f4726)

3.3.3 (2023-07-03)

Bug Fixes

  • Select: optional field can be cleared by clicking on the placeholder (fixes #44) (096deae)

3.3.2 (2023-06-14)

Bug Fixes

  • Select: make immune to react-key render bug when shuffling options (6d52da8)

3.3.1 (2023-06-14)

Bug Fixes

  • exclude story components from build (1f1cb10)

3.3.0 (2023-06-07)

Features

3.2.0 (2023-06-02)

Bug Fixes

Features

3.1.0 (2023-06-01)

Features

3.0.2 (2023-05-18)

Bug Fixes

  • #34: for required field, indicate aria-valid only after validation (334d276), closes #34

3.0.1 (2023-05-18)

Bug Fixes

  • optional zod field as field atom (3b1ea99)

3.0.0 (2023-05-17)

BREAKING CHANGES

  • optional field via .optional() method

fix: optional checkbox in radio & required

  • switch submit value based on required/optional g param
  • optional field via .optional() method (de99234)

BREAKING CHANGES

  • switch submit value based on required/optional g param

closes 29

  • fix: revert checkbox field props

  • chore(release): 3.0.0-next.2

3.0.0-next.2 (2023-05-17)

Bug Fixes

  • revert checkbox field props (09a4d80)

3.0.0-next.2 (2023-05-17)

Bug Fixes

  • revert checkbox field props (09a4d80)

3.0.0-next.1 (2023-05-17)

  • BREAKING CHANGE: optional field via .optional() method (de99234)

BREAKING CHANGES

  • switch submit value based on required/optional g param

closes 29

2.5.14 (2023-05-17)

Bug Fixes

  • zod opt schema undefined by default instead of never (395207e)

2.5.13 (2023-05-17)

Bug Fixes

  • drop schema atom from field (686a517)

2.5.12 (2023-05-16)

Bug Fixes

  • validation on blur when dirty & change when touched (d550dab)

2.5.11 (2023-04-10)

Bug Fixes

2.5.10 (2023-04-08)

Bug Fixes

  • controlled numberFieldProps (487c577)

2.5.9 (2023-04-07)

Bug Fixes

  • debugLabel with atom id instead of unnamed (124886f)

2.5.8 (2023-04-07)

Bug Fixes

  • radio control with checkbox field (20cebc8)

2.5.7 (2023-04-07)

Bug Fixes

  • selectFieldProps reset out-of-bounds values to empty value (9bc978e)

2.5.6 (2023-04-06)

Bug Fixes

  • fileField with array value & SSR support (4d64c50), closes #19

2.5.5 (2023-03-16)

Bug Fixes

  • decouple requirement indicator from the requiredProps hook (b7bcc4d)

2.5.4 (2023-03-16)

Bug Fixes

  • MultiSelect - initialize options value from field (83f1587)

2.5.3 (2023-03-14)

Bug Fixes

  • select initialized for object value (9695c40)

2.5.2 (2023-03-14)

Bug Fixes

  • react warning about select option being selected (004dd89)

2.5.1 (2023-03-14)

Bug Fixes

  • select clears to empty value when form reset (9c1925b)

2.5.0 (2023-03-14)

Features

2.4.2 (2023-03-13)

Bug Fixes

  • placeholder value as -1 (0afa86f)

2.4.1 (2023-03-13)

Bug Fixes

2.5.0-next.1 (2023-03-13)

Features

2.4.1-next.1 (2023-03-12)

Bug Fixes

2.4.0 (2023-03-05)

Bug Fixes

Features

2.3.1 (2023-03-05)

Bug Fixes

2.3.0 (2023-03-05)

Features

2.2.0 (2023-03-05)

Features

2.1.2 (2023-03-05)

Bug Fixes

  • export useOptionFieldProps (a2f84bd)

2.1.1 (2023-03-05)

Bug Fixes

  • normalize option hooks prop type names (389ae92)

2.1.0 (2023-03-04)

Features

  • generic select and radio for primitive fields by coercing schema (f3419f5)

2.0.0 (2023-03-03)

BREAKING CHANGES

  • renamed select&multiselect field as those are not 'real'. For multiselect there is arrayField and the selectField is regular stringField.

selectFieldHook will be made generic to support boolean, number, string, date (all primitive values) selection from list of options.

  • chore(release): 2.0.0-next.1

2.0.0-next.1 (2023-03-03)

Code Refactoring

  • infer field value from field schema (378d1b5)

BREAKING CHANGES

  • renamed select&multiselect field as those are not 'real'. For multiselect there is arrayField and the selectField is regular stringField.

selectFieldHook will be made generic to support boolean, number, string, date (all primitive values) selection from list of options.

  • docs: update recent changes

  • refactor: rename ValidatedField to ZodField

2.0.0-next.1 (2023-03-03)

Code Refactoring

  • infer field value from field schema (378d1b5)

BREAKING CHANGES

  • renamed select&multiselect field as those are not 'real'. For multiselect there is arrayField and the selectField is regular stringField.

selectFieldHook will be made generic to support boolean, number, string, date (all primitive values) selection from list of options.

1.1.2 (2023-03-03)

Bug Fixes

1.1.1 (2023-03-01)

Bug Fixes

  • drop redundant multiselect (5bf2320)
  • useSelectOptions based on useOptions (6e1f282)

1.1.0 (2023-03-01)

Features

  • booleanFIeld input hook and demo (d6957ba)

1.0.11 (2023-03-01)

Bug Fixes

  • selectField with scoped id & document radio group example (f021759)

1.0.10 (2023-03-01)

Bug Fixes

  • exclude stories from build/dist (101c4f7)

1.0.9 (2023-02-28)

Bug Fixes

1.0.8 (2023-02-28)

Bug Fixes

  • checkboxField without params (f264619)
  • field error default children & field prop id as atom key (ae3eaf6)

1.0.7 (2023-02-28)

Bug Fixes

1.0.6 (2023-02-27)

Bug Fixes

  • required textField with min 1 length (eda10d6)
  • selectField w/ required error message (e7e2e71)

1.0.5 (2023-02-27)

Bug Fixes

  • numberField w/ required error message (36c420c)

1.0.4 (2023-02-27)

Bug Fixes

  • fileField w/ configurable required message (97f7ecd)

1.0.3 (2023-02-27)

Bug Fixes

1.0.2 (2023-02-27)

Bug Fixes

  • checkbox field w/ configurable required message (5355f50)

1.0.1 (2023-02-26)

Bug Fixes

  • array field export add/remove button props (c54fd3e)

1.0.0 (2023-02-21)

Bug Fixes

  • chakra-ui/checkbox (33b12cf)
  • number input controlled & clearable (fde3331)
  • optional checkbox (153a710)
  • rating field 0 by default (0b739e4)
  • shorten fieldAtoms to fields in array field (5dac894)

Features

  • array field with empty message (b38106e), closes #1
  • multiselect & flowbite checkboxgroup (d3a5a6f)
  • use field with validation (ae08fb0)

1.0.0-next.1 (2023-02-21)

Bug Fixes

  • chakra-ui/checkbox (33b12cf)
  • number input controlled & clearable (fde3331)
  • optional checkbox (153a710)
  • rating field 0 by default (0b739e4)
  • shorten fieldAtoms to fields in array field (5dac894)

Features

  • array field with empty message (b38106e), closes #1
  • multiselect & flowbite checkboxgroup (d3a5a6f)
  • use field with validation (ae08fb0)