npm react-bootstrap-typeahead 5.0.0

latest releases: 6.3.2, 6.3.1, 6.3.0...
4 years ago

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 hintContainer and replaced with Hint component
  • bsSize prop has been renamed to size (deprecated in v4.2)
  • Remove getInstance (deprecated in v4.2)
  • Increase specificity for multi-select component

Deprecations

  • asyncContainer, menuItemContainer, and tokenContainer deprecated; renamed to withAsync, withItem, and withToken, respectively.
  • selectHintOnEnter prop deprecated; use shouldSelect prop on Hint component or shouldSelectHint prop on TypeaheadInputSingle & TypeaheadInputMulti

Enhancements

  • New useAsync, useItem, and useToken hooks
  • Expose shouldSelectHint prop on input components
  • useHint hook + callback for customizing hint selection (#330)

Internal + Documentation

  • Remove UNSAFE_componentWillReceiveProps (#415)
  • Remove BS3 code from examples
  • Update dependencies
  • Update react-overlays and add RootClose shim component (#415)
  • Move RootClose component to main Typeahead file
  • Remove extraneous type definition
  • Rename and reorganize some files
  • Improve test coverage
  • Update documentation

Don't miss a new react-bootstrap-typeahead release

NewReleases is sending notifications on new releases.