Skip to content

Releases: ericgio/react-bootstrap-typeahead

v2.0.1

28 Nov 21:49
Compare
Choose a tag to compare

Bug Fixes

  • Add/remove body container className instead of replacing (#273)

Internal

  • More specific propTypes for defaultSelected and selected (#270)

v2.0.0

20 Nov 08:59
Compare
Choose a tag to compare

Major internal rewrite of the component. Breaking changes to the public API are relatively minimal, but please read the upgrade guide or the notes below to see how you may be affected.

Breaking Changes

  • Require isLoading prop to track request state in AsyncTypeahead (#164)
  • Major DOM restructure to merge rendering of input in single- and multi-select states, among other things.
  • Major CSS refactor related to the above. Renamed class names & prefixes and consolidated CSS files into one for simplicity.

Deprecations

  • name prop is deprecated in favor of more general inputProps

Bug Fixes

  • "Too much recursion" on nearly-empty lists (#142)
  • Controlled input behavior (#198)
  • initialItem behavior (#203)
  • Fix bodyContainer + dropup positioning
  • Fix cross-browser input rendering
  • Stop multiple property being set on input (#215)
  • Fix react-highlighter node not registering click (#219)
  • Fix cursor jumping issue (#229)
  • Remove manual onClickOutside in Token (fixes TypeError on unmounted tokens)
  • Fix breaking change in react-overlays@0.8.3 (#258)
  • Fix async example allowing duplicate selections (#242)
  • Add onClick handler to input (#217)
  • Fix async clear-on-select issue (#193)

Enhancements + Feature Requests

  • Auto-highlight only result (#77)
  • Allow selecting hint on enter (#188)
  • Add inputProps prop (#33, #79, #138)
  • Add onKeyDown prop
  • onMenuShow & onMenuHide hooks (#210)
  • Add CSS class names for scoping when bodyContainer=true (#205)
  • Mimic focus state
  • Better support for Bootstrap 4
  • Give precedence to labelKey when it's a function (#213)
  • Package Size (#214)
    • Reduced main bundle by (~25%)
    • Reduced example bundle by (~65%)
  • Improve accessibility (#236)
    • Make the clear button keyboard-accessible
    • Add status field for screen readers
    • Make token remove button selectable and removeable via keyboard
    • Update labels for ClearButton
    • Add aria-hidden attribute to input hint
    • Prevent token remove button from being focusable
  • Clarify position prop in API docs
  • Add async pagination example (#221)
  • React 16 fully supported (#259, #251, #239)
  • Remove react-highlighter dependency and use internal version
  • Ignore diacritics in Highlighter
  • Updates to documentation

Internal

  • Move non-rendering logic into container
  • Add a bunch of tests
  • Abstract hinting functionality
  • Merge single- and multi-select inputs
  • Move prop warnings into custom propTypes
  • Update dependencies
  • Improve cursor position behavior
  • Use Sass for styles
  • Pass input node ref up to top level
  • Check that renderMenu is a function
  • Break out of switch statement instead of returning
  • react-prop-types -> prop-types-extra
  • Use babel-preset-env instead of babel-preset-2015
  • npm prepublish -> prepublishOnly
  • Drop CI testing on Node 4
  • Code style changes
  • Use ClearButton in Token
  • Move keycodes file to /constants
  • Move issue template into .github directory
  • Example code style changes

v2.0.0-rc.4

01 Nov 22:39
Compare
Choose a tag to compare
v2.0.0-rc.4 Pre-release
Pre-release

No code changes; re-published to resolve #261

v2.0.0-rc.3

01 Nov 17:55
Compare
Choose a tag to compare
v2.0.0-rc.3 Pre-release
Pre-release

Bug Fixes

  • outline: none when top-level component is active/focused

Feature Requests + Enhancements

  • React 16 fully supported (#259, #251, #239)
  • Remove react-highlighter dependency and use internal version
  • Ignore diacritics in Highlighter
  • Updates to documentation

v2.0.0-rc.2

31 Oct 07:08
Compare
Choose a tag to compare
v2.0.0-rc.2 Pre-release
Pre-release

Bug Fixes

  • Fix cursor nightmare once and for all? (#257)

v2.0.0-rc.1

30 Oct 19:12
Compare
Choose a tag to compare
v2.0.0-rc.1 Pre-release
Pre-release

Breaking Changes

  • Require isLoading prop to track request state (#164)
  • Move 'form-control' classname back to input level (CSS/DOM change)

Bug Fixes

  • Fix breaking change in react-overlays@0.8.3 (#258)
  • Fix more cursor position bugs
  • Fix async example allowing duplicate selections (#242)
  • Add onClick handler to input (#217)
  • Fix async clear-on-select (#193)

Enhancements + Feature Requests

  • Move accessibility status to util method + tests (#236)
  • Prevent token remove button from being focusable (#236)
  • Add async pagination example (#221)

Internal

  • Example code style changes

v2.0.0-alpha.6

23 Oct 20:43
Compare
Choose a tag to compare
v2.0.0-alpha.6 Pre-release
Pre-release

Breaking Changes

  • rbt-token-close-button renamed to rbt-token-remove-button + updated CSS

Bug Fixes

  • Remove manual onClickOutside in Token (fixes TypeError on unmounted tokens)
  • Fix example CSS

Enhancements + Feature Requests

  • Package Size (#214)
    • Reduced main bundle by (~25%)
    • Reduced example bundle by (~65%)
  • Improve accessibility (#236)
    • Make the clear button keyboard-accessible
    • Add status field for screen readers
    • Make token remove button selectable and removeable via keyboard
    • Update labels for ClearButton
    • Add aria-hidden attribute to input hint
  • Clarify position prop in API docs

Internal

  • Code style changes
  • Use ClearButton in Token
  • Move keycodes file to /constants
  • Move issue template into .github directory

v2.0.0-alpha.5

19 Oct 16:53
Compare
Choose a tag to compare
v2.0.0-alpha.5 Pre-release
Pre-release

Bug Fixes

  • Fix cursor jumping issue (#229)

Internal

  • Allow React and ReactDOM 16 as peer dependencies (#239)
  • Explicitly require react-highlighter@0.4.1
  • Drop CI testing on Node 4

v2.0.0-alpha.4

12 Oct 17:34
Compare
Choose a tag to compare
v2.0.0-alpha.4 Pre-release
Pre-release

Bug Fixes

  • Stop multiple property being set on input (#215)
  • Fix react-highlighter node doesn't register click (#219)
  • Fix example docs

Internal

  • Break out of switch statement instead of returning
  • Fix broken test
  • react-prop-types -> prop-types-extra
  • Use babel-preset-env instead of babel-preset-2015
  • Update dependencies
  • npm prepublish -> prepublishOnly

v2.0.0-alpha.3

28 Jul 08:06
Compare
Choose a tag to compare
v2.0.0-alpha.3 Pre-release
Pre-release

Bug Fixes

  • Fix cross-browser input rendering

Enhancements + Feature Requests

  • Give precedence to labelKey when it's a function (#213)

Internal

  • Reconfigure addCustomOption.js and add test
  • Improve cursor position behavior
  • Use Sass for styles
  • Pass input node ref up to top level
  • Check that renderMenu is a function