All Versions
11
Latest Version
Avg Release Cycle
18 days
Latest Release
1222 days ago

Changelog History
Page 1

  • v6.0.7 Changes

    December 11, 2020

    6.0.7 (2020-12-11)

    ๐Ÿ› Bug Fixes

    • isOrContainsNode: check if child is instance of Node (#1195) (c55571f), closes #1155
  • v6.0.6 Changes

    September 05, 2020

    6.0.6 (2020-09-05)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ‘‰ useCombobox: select item on blur only when menu is open (#1170) (d1299c4)
  • v6.0.5 Changes

    August 15, 2020

    6.0.5 (2020-08-15)

    ๐ŸŽ Performance Improvements

  • v6.0.4 Changes

    August 15, 2020

    6.0.4 (2020-08-15)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ‘‰ useCombobox: dispatch on Enter keydown event (#1150) (541e560)
  • v6.0.3 Changes

    August 06, 2020

    6.0.3 (2020-08-06)

    ๐Ÿ› Bug Fixes

    • ๐Ÿš€ release: manually release a patch version (#1141) (35ff654)
    • ๐Ÿš€ release: manually release a patch version (#1142) (4ce10e7)
  • v6.0.2 Changes

    July 22, 2020

    6.0.2 (2020-07-22)

    ๐Ÿ› Bug Fixes

    • ๐Ÿš€ release: manually release a patch version (#1128) (f4d446c)
    • Typescript: fix stateReducer() return type for hooks (#1126) (7fb1537)
  • v6.0.1 Changes

    July 22, 2020

    6.0.1 (2020-07-22)

    ๐Ÿ› Bug Fixes

    • Typescript: fix UseComboboxDispatchAction type (#1124) (11d2d3f)
  • v6.0.0 Changes

    July 21, 2020

    6.0.0 (2020-07-21)

    ๐Ÿ’ฅ BREAKING CHANGES

    • โšก๏ธ Update TS typings for selectedItem to accept null in both useSelect and useCombobox.

    โšก๏ธ To migrate to the new change, update your types or code if necessary. selectedItem, defaultSelectedItem and initialSelectedItem now have Item | null instead of Item type. PR with the changes: #1090

    • โšก๏ธ Update TS typings for itemToString to accept null for the item parameter, in useSelect and useCombobox + in Downshift where this was missing. useMultipleSelection type for itemToString stays the same as it can't receive null as item.

    โšก๏ธ To migrate to the new change, update your types or code if necessary. itemToString: (item: Item) => string -> itemToString: (item: Item | null) => string}. PR with the changes: #1075 #1105

    • ๐Ÿ“š Pass type to the onChange (onInputValueChange, onHighlightedIndexChange, onSelectedItemChange, onIsOpenChange) handler parameters, as specified in the documentation. Also updated the TS typings to reflect this + onStateChange - the type parameter was passed but it was not reflected in the TS types.

    โšก๏ธ To migrate to the new change, update your types or code if necessary, better to view the changes in the PR: #985. Important: please update to the 6.0.2 version since it contains a couple of fixes for the changes in this Breaking Change. Final changes:

    stateReducer?: (state: UseComboboxState\<Item\>,actionAndChanges: UseComboboxStateChangeOptions\<Item\>, // UseComboboxStateChangeOptions has the correct typings) =\> Partial\<UseComboboxState\<Item\>\> // this now reflects the correct return, which is the partial state.onSelectedItemChange?: (changes: UseComboboxStateChange\<Item\>) =\> void // changes have partial state + typeonIsOpenChange?: (changes: UseComboboxStateChange\<Item\>) =\> voidonHighlightedIndexChange?: (changes: UseComboboxStateChange\<Item\>) =\> voidonStateChange?: (changes: UseComboboxStateChange\<Item\>) =\> voidonInputValueChange?: (changes: UseComboboxStateChange\<Item\>) =\> void
    

    where

    export interface UseComboboxStateChangeOptions\<Item\>extends UseComboboxDispatchAction\<Item\> { // type and optional parameters needed to compute the next statechanges: Partial\<UseComboboxState\<Item\>\> // partial state changes proposed by the hook}export interface UseComboboxDispatchAction\<Item\> {type: UseComboboxStateChangeTypesshiftKey?: booleangetItemNodeFromIndex?: (index: number) =\> HTMLElementinputValue?: stringindex?: numberhighlightedIndex?: numberselectedItem?: Item | nullselectItem?: boolean}export interface UseComboboxStateChange\<Item\>extends Partial\<UseComboboxState\<Item\>\> {type: UseComboboxStateChangeTypes}
    

    ๐Ÿ’ฅ BREAKING BEHAVIOURS

    [useCombobox]: When an item is highlighted by keyboard and user closes the menu using mouse/touch, the item is not selected anymore. The only selection on Blur happens using either Tab / Shift+Tab. PR with the changes: #1109

    [useCombobox & downshift]: When pressing Escape and the menu is open, only close the menu. When the menu is closed and there is an item selected and/or text in the input, clear the selectedItem and the inputValue. PR with the changes: #719

  • v5.4.7 Changes

    July 20, 2020

    5.4.7 (2020-07-20)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ‘‰ useSelect: ensure the initial selected item is scrolled into view on first open (#1113) (d7bf498)
  • v5.4.6 Changes

    July 08, 2020

    5.4.6 (2020-07-08)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ‘‰ useCombobox: fix onSelectedItemChange not triggering with controlled selectedItem in React.StrictMode (#1107) (5353265)