Releases: ericgio/react-bootstrap-typeahead
Releases · ericgio/react-bootstrap-typeahead
v2.0.1
v2.0.0
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 inAsyncTypeahead
(#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 generalinputProps
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 ofbabel-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
No code changes; re-published to resolve #261
v2.0.0-rc.3
v2.0.0-rc.2
Bug Fixes
- Fix cursor nightmare once and for all? (#257)
v2.0.0-rc.1
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
Breaking Changes
rbt-token-close-button
renamed torbt-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
v2.0.0-alpha.4
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 ofbabel-preset-2015
- Update dependencies
- npm prepublish -> prepublishOnly
v2.0.0-alpha.3
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