Update dependency downshift to v6 - autoclosed #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.2.12
->6.1.12
Release Notes
downshift-js/downshift
v6.1.12
Compare Source
Bug Fixes
v6.1.11
Compare Source
Bug Fixes
v6.1.10
Compare Source
Bug Fixes
v6.1.9
Compare Source
Bug Fixes
v6.1.8
Compare Source
Bug Fixes
v6.1.7
Compare Source
Bug Fixes
v6.1.6
Compare Source
Bug Fixes
v6.1.5
Compare Source
Bug Fixes
v6.1.4
Compare Source
Bug Fixes
v6.1.3
Compare Source
Bug Fixes
v6.1.2
Compare Source
Bug Fixes
v6.1.1
Compare Source
Bug Fixes
v6.1.0
Compare Source
Features
v6.0.16
Compare Source
Bug Fixes
v6.0.15
Compare Source
Performance Improvements
v6.0.14
Compare Source
Bug Fixes
v6.0.13
Compare Source
Bug Fixes
v6.0.12
Compare Source
Performance Improvements
v6.0.11
Compare Source
Bug Fixes
v6.0.10
Compare Source
Bug Fixes
v6.0.9
Compare Source
Performance Improvements
v6.0.8
Compare Source
Bug Fixes
v6.0.7
Compare Source
Bug Fixes
v6.0.6
Compare Source
Bug Fixes
v6.0.5
Compare Source
Performance Improvements
v6.0.4
Compare Source
Bug Fixes
v6.0.3
Compare Source
Bug Fixes
v6.0.2
Compare Source
Bug Fixes
v6.0.1
Compare Source
Bug Fixes
v6.0.0
Compare Source
BREAKING CHANGES
selectedItem
to acceptnull
in bothuseSelect
anduseCombobox
.To migrate to the new change, update your types or code if necessary.
selectedItem
,defaultSelectedItem
andinitialSelectedItem
now haveItem | null
instead ofItem
type. PR with the changes: https://github.com/downshift-js/downshift/pull/1090itemToString
to acceptnull
for theitem
parameter, inuseSelect
anduseCombobox
+ inDownshift
where this was missing.useMultipleSelection
type foritemToString
stays the same as it can't receivenull
asitem
.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: https://github.com/downshift-js/downshift/pull/1075 https://github.com/downshift-js/downshift/pull/1105type
to the onChange (onInputValueChange, onHighlightedIndexChange, onSelectedItemChange, onIsOpenChange) handler parameters, as specified in the documentation. Also updated the TS typings to reflect this +onStateChange
- thetype
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: https://github.com/downshift-js/downshift/pull/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:
where
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:https://github.com/downshift-js/downshift/pull/11099
[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:https://github.com/downshift-js/downshift/issues/7199
v5.4.7
Compare Source
Bug Fixes
v5.4.6
Compare Source
Bug Fixes
v5.4.5
Compare Source
Bug Fixes
v5.4.4
Compare Source
Bug Fixes
v5.4.3
Compare Source
Bug Fixes
v5.4.2
Compare Source
Bug Fixes
v5.4.1
Compare Source
Bug Fixes
v5.4.0
Compare Source
Features
v5.3.0
Compare Source
Features
v5.2.7
Compare Source
Bug Fixes
v5.2.6
Compare Source
Bug Fixes
v5.2.5
Compare Source
Performance Improvements
v5.2.4
Compare Source
Bug Fixes
v5.2.3
Compare Source
Bug Fixes
v5.2.2
Compare Source
Bug Fixes
v5.2.1
Compare Source
Bug Fixes
v5.2.0
Compare Source
Features
v5.1.1
Compare Source
Bug Fixes
getSelectedItemProps
(#1002) (5ad8864)v5.1.0
Compare Source
Features
v5.0.7
Compare Source
Bug Fixes
v5.0.6
Compare Source
Bug Fixes
scrollIntoView
definitions to hooks (#983) (75b2fb6)v5.0.5
Compare Source
Bug Fixes
v5.0.4
Compare Source
Bug Fixes
v5.0.3
Compare Source
Bug Fixes
v5.0.2
Compare Source
Bug Fixes
v5.0.1
Compare Source
Bug Fixes
v5.0.0
Compare Source
BREAKING CHANGES
FunctionClearKeysSoFar
from state change types and TS typings. In useSelect, once the timeout for keeping the character keys in memory has expired,FunctionSetInputValue
will be used. We are doing this as we are renamingkeysSoFar
withinputValue
.To migrate to the new change, simply check for
FunctionSetInputValue
with empty string asinputValue
instead of checking forFunctionClearKeysSoFar
instateReducer
.getA11yStatusMessage
andgetA11ySelectionMessage
will be called with the same props as thegetA11yStatusMessage
in<Downshift>
, apart frompreviousResultCount
. In the TS typings it's now marked as optional, and all functions have the same interface definition,A11yStatusMessageOptions
.To migrate to the new changes, in
useSelect
anduseCombobox
, if you useditems
as parameters in any of the a11y message functions, now you should useresultCount
as probably you only neededitems.length
from it anyway.Also typings
UseSelectA11yMessageOptions
andUseComboboxA11yMessageOptions
have been removed. UseA11yStatusMessageOptions
instead.Code Changes: tests have been enhanced by using
user input
fromRTL
and they now look better and cleaner. Also covered more use cases better. Code has been refactored as well, and bundle size slightly reduced.Functional Improvement: better focus management for both
useSelect
anduseCombobox
.Fixes https://github.com/downshift-js/downshift/issues/832.
Closes https://github.com/downshift-js/downshift/issues/892
Closes https://github.com/downshift-js/downshift/issues/891
Closes https://github.com/downshift-js/downshift/issues/873
v4.1.0
Compare Source
Features
v4.0.11
Compare Source
Bug Fixes
v4.0.10
Compare Source
Bug Fixes
v4.0.9
Compare Source
Bug Fixes
v4.0.8
Compare Source
Bug Fixes
v4.0.7
Compare Source
Bug Fixes
v4.0.6
Compare Source
Bug Fixes
v4.0.5
Compare Source
Bug Fixes
v4.0.4
Compare Source
Bug Fixes
v4.0.3
Compare Source
Bug Fixes
v4.0.2
Compare Source
Bug Fixes
v4.0.1
Compare Source
Bug Fixes
v4.0.0
Compare Source
Bug Fixes
Features
BREAKING CHANGES
useSelect
andDownshift
. See PR for details.v3.4.8
Compare Source
Bug Fixes
v3.4.7
Compare Source
Bug Fixes
v3.4.6
Compare Source
Bug Fixes
v3.4.5
Compare Source
Performance Improvements
v3.4.4
Compare Source
Bug Fixes
v3.4.3
Compare Source
Bug Fixes
getItemProps
(#833) (fabffff)v3.4.2
Compare Source
Bug Fixes
getToggleButtonProps
(#829) (9cf3838)v3.4.1
Compare Source
Bug Fixes
v3.4.0
Compare Source
Features
v3.3.7
Compare Source
Bug Fixes
v3.3.6
Compare Source
Bug Fixes
v3.3.5
Compare Source
Bug Fixes
v3.3.4
Compare Source
Performance Improvements
v3.3.3
Compare Source
Bug Fixes
v3.3.2
Compare Source
Bug Fixes
v3.3.1
Compare Source
Bug Fixes
v3.3.0
Compare Source
Features
v3.2.14
Compare Source
Bug Fixes
v3.2.13
Compare Source
Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.