Releases: ericgio/react-bootstrap-typeahead
v5.1.3
v5.1.2
v5.1.1
v5.1.0
This release consists primarily of bug fixes in the useAsync hook. As part of that, there is a small backwards-compatible change to the API, hence a minor release. The delay prop in AsyncTypeahead can now be updated, whereas before it could only be set during the initial mount.
Bug Fixes
- Fix
useAsyncbugs (#561)
Internal, Docs, + Examples
- Use Fragment in example
- Add hooks linter and fix issues
v5.0.0
v5.0 is a fairly extensive rewrite that brings the library more up-to-date with all the changes that React has introduced in the past year or so. Deprecated lifecycles and functions are finally gone; many components were rewritten with hooks, some of which have been exposed as part of the public API to make customization easier or more flexible. This version also drops official support for Bootstrap 3.
Breaking Changes
Please see the upgrade guide for more details on migrating from v4 to v5.
- React >= 16.8 is required
- Drop official support for Bootstrap 3
- Remove remaining references to
findDOMNode(#415) - Remove
hintContainerand replaced withHintcomponent bsSizeprop has been renamed tosize(deprecated in v4.2)- Remove
getInstance(deprecated in v4.2) - Increase specificity for multi-select component
Deprecations
asyncContainer,menuItemContainer, andtokenContainerdeprecated; renamed towithAsync,withItem, andwithToken, respectively.selectHintOnEnterprop deprecated; useshouldSelectprop onHintcomponent orshouldSelectHintprop onTypeaheadInputSingle&TypeaheadInputMulti
Enhancements
- New
useAsync,useItem, anduseTokenhooks - Expose
shouldSelectHintprop on input components useHinthook + callback for customizing hint selection (#330)
Internal + Documentation
- Remove
UNSAFE_componentWillReceiveProps(#415) - Remove BS3 code from examples
- Update dependencies
- Update
react-overlaysand addRootCloseshim component (#415) - Move
RootClosecomponent to main Typeahead file - Remove extraneous type definition
- Rename and reorganize some files
- Improve test coverage
- Update documentation
v5.0.0-rc.3
Features
- Add
useAsync&useTokenhooks asyncContainer,menuItemContainer, andtokenContainerHOCs deprecated in favor ofwithAsync,withItem, andwithToken
Internal + Documentation
- Drop
.reactextension from filenames - Update docs to reflect new features
- Reshuffle some files
v5.0.0-rc.2
Features
- Expose
shouldSelectHintprop on input components (TypeaheadInputSingle+TypeaheadInputMulti)
Internal + Documentation
- Update dependencies
- Update
renderInputdocumentation - Clarify and expand
shouldSelectdocumentation - Remove
hintContainerand adduseItemto docs - Remove
bsSizefrom docs
v5.0.0-rc.1
Breaking Changes
- Remove
getInstance(deprecated in v4.2) - Increase specificity of multi-input CSS rules to avoid accidental breaking (#542, #544; Thanks @evrimfeyyaz!)
Enhancements
- Add
useHinthook + callback for customizing hint selection (#330) - Deprecate
selectHintOnEnterin favor of generalized callback - Add
useItemhook
Internal + Documentation
- Add documentation for new features
- Improve test coverage
- Remove extraneous type definition
- Add upgrade instructions for v5.0
- Remove references to BS4 since it's now the default