Skip to content

Commit

Permalink
feat(2.0.0): release v2! (downshift-js#461)
Browse files Browse the repository at this point in the history
* 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
Kent C. Dodds authored and Rendez committed Sep 30, 2018
1 parent 92fa005 commit dbdd7f9
Show file tree
Hide file tree
Showing 53 changed files with 1,613 additions and 1,042 deletions.
41 changes: 40 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@
"profile": "http://michaelball.co",
"contributions": [
"bug",
"code"
"code",
"test"
]
},
{
Expand Down Expand Up @@ -772,6 +773,35 @@
"name": "Cameron Edwards",
"avatar_url": "https://avatars3.githubusercontent.com/u/5456216?v=4",
"profile": "http://cameronpedwards.com",
"contributions": [
"code",
"test"
]
},
{
"login": "stereobooster",
"name": "stereobooster",
"avatar_url": "https://avatars2.githubusercontent.com/u/179534?v=4",
"profile": "https://github.com/stereobooster",
"contributions": [
"code",
"test"
]
},
{
"login": "1Copenut",
"name": "Trevor Pierce",
"avatar_url": "https://avatars0.githubusercontent.com/u/934879?v=4",
"profile": "https://github.com/1Copenut",
"contributions": [
"review"
]
},
{
"login": "franklixuefei",
"name": "Xuefei Li",
"avatar_url": "https://avatars1.githubusercontent.com/u/1334982?v=4",
"profile": "http://xuefei-frank.com",
"contributions": [
"code"
]
Expand All @@ -784,6 +814,15 @@
"contributions": [
"code"
]
},
{
"login": "dovidweisz",
"name": "D[oa]vid Weisz",
"avatar_url": "https://avatars0.githubusercontent.com/u/6895497?v=4",
"profile": "https://github.com/dovidweisz",
"contributions": [
"code"
]
}
]
}
12 changes: 12 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[ignore]
.*/node_modules/

[include]
./test

[libs]

[lints]
all=error

[options]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ cypress/screenshots
# when working with contributors
package-lock.json
yarn.lock
flow-coverage/
Loading

0 comments on commit dbdd7f9

Please sign in to comment.