Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(2.0.0): release v2! (downshift-js#461)
* feat(2.0.0): squashed commits of everything! fix(TypeScript): Change typings (downshift-js#373) BREAKING CHANGE: TypeScript typings are much more complete now. fix(exports): removed statics assignments to default export (downshift-js#390) fix(build): to facilitate better tree-shaking, this is necessary feat(a11y): Improve a11y and add getMenuProps (downshift-js#285) We no longer will validate your `htmlFor` and `id` attributes on labels and inputs. Instead we provide props you can pass if you really want to set those. You can still set those values yourself on the elements, but we wont validate them for you. Closes downshift-js#283 fix(TypeScript): add missing types for setItemCount and unsetItemCount actions (downshift-js#393) fix(TS): add missing types for setState and getMenuProps (downshift-js#394) fix(aria): improve WAI-ARIA compliance (downshift-js#396) Big thanks to @1Copenut for leaving feedback in downshift-js#285 fix(aria): remove unnecessary aria-expanded from the input feat(flow): add flow definitions (downshift-js#399) * [downshift-js#23] Flow definitions * removed factory function * Fix code review notes fix(TypeScript): fix several type definitions (downshift-js#407) * Fixed existing types and added missing types * Added Partial to state Closes downshift-js#406 fix(TS): Change StateChangeOptions to only extend DownshiftState as a Partial (downshift-js#424) * let prettier run * Add contributor * StateChangeOptions now extends only a Partial of DownshiftState fix(flow): more precise types (downshift-js#402) * [downshift-js#23] more precise types * update defintions * feat(breakingChanges): remove the breakingChanges prop Now we'll go with the more expected behavior for controlling selectedItem. BREAKING CHANGE: When controlling `selectedItem`, the inputValue will be set to the `defaultInputValue` rather than `itemToString`. * fix(menu): don't reset downshift if clicking within the menu Closes downshift-js#287 * fix: remove support for prop called `render`. Only support `children` This is done to bring downshift into conformance with the community convention of using the children prop (for example, the React Team chose `children` with the official context API). We'd prefer to reduce cognitive overhead by not having two ways to do the same thing. Closes downshift-js#433 BREAKING CHANGE: If you use the `render` prop, rename it to `children`. * fix(preventDownshiftDefault): accept the property via nativeEvent Closes downshift-js#404 * fix(react-native): custom onPress handlers will now be properly called * docs: add spectrum badge * fix(TS): remove breakingChanges prop * fix(native): Support both onChange and onChangeText props (downshift-js#462) This supports both props that <TextInput /> accepts for supporting text input changed events. Additionally, this moves onChange related tests to their own module. BREAKING CHANGE: If you use the `render` prop, rename it to `children`.
- Loading branch information