Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release 4.0.0 #860

Merged
merged 6 commits into from
Dec 20, 2019
Merged

feat: release 4.0.0 #860

merged 6 commits into from
Dec 20, 2019

Conversation

silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented Dec 18, 2019

Release useCombobox hook, adapts the TS typings and improves the docsite.

The useCombobox should be the way forward when it comes to building an autocomplete component.
Structure the docsite as a Hooks menu with a submenu for each hook. Each hook should be represented on a full page.
Details in #812.

BREAKING CHANGE: Remove DownshiftInterface as it's not required anymore to make Downshift props generic.You can pass your generic to the Downshift props as <Downshift<MyItem> {...props} />. #748

BREAKING CHANGE: Change TS typings for useSelect, in getter props, to specify that most of them will require refKey in case the user renders a custom React component with a ref prop that has a different name than ref (like innerRef for instance). #812

  getToggleButtonProps: (options?: UseSelectGetMenuPropsOptions) => any
  getLabelProps: (options?: UseSelectGetLabelPropsOptions) => any
  getMenuProps: (options?: UseSelectGetToggleButtonPropsOptions) => any
  getItemProps: (options: UseSelectGetItemPropsOptions<Item>) => any

Each new UseSelect type is like:

export interface UseSelectGetToggleButtonPropsOptions
  extends GetPropsWithRefKey,
    GetToggleButtonPropsOptions {}

silviuaavram and others added 6 commits December 18, 2019 15:17
* start implementation

* more code reuse

* create useCombobox

* start implementation for handlers

* remove not needed call

* input handlers

* progress on handlers

* fix close on toggle button click

* remove unneeded state change types

* add example to docsite

* focus input at toggle click + reactNative

* add setInputValue

* rename root to combobox + tests

* add icon to button

* add item tests

* add more menu tests

* finished input tests + initial state

* finish testing

* don't apply handlers if disabled

* add tests for disabled cases

* apply mozilla button close fix

* initial default values small refactor

* improvements for docs

* updates to the docs and readme

* readme updates

* prop types validation not on production

* readme correction

* add ts typings
@codecov-io
Copy link

codecov-io commented Dec 18, 2019

Codecov Report

Merging #860 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #860    +/-   ##
======================================
  Coverage     100%   100%            
======================================
  Files           8     12     +4     
  Lines         702    886   +184     
  Branches      158    184    +26     
======================================
+ Hits          702    886   +184
Impacted Files Coverage Δ
src/hooks/useSelect/index.js 100% <ø> (ø) ⬆️
src/hooks/useSelect/reducer.js 100% <ø> (ø) ⬆️
src/downshift.js 100% <ø> (ø) ⬆️
src/hooks/useCombobox/testUtils.js 100% <100%> (ø)
src/hooks/useCombobox/reducer.js 100% <100%> (ø)
src/hooks/useSelect/testUtils.js 100% <100%> (ø) ⬆️
src/hooks/useCombobox/index.js 100% <100%> (ø)
src/hooks/useSelect/utils.js 100% <100%> (ø) ⬆️
src/hooks/utils.js 100% <100%> (ø) ⬆️
src/hooks/useCombobox/utils.js 100% <100%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1d45829...c3de327. Read the comment docs.

@silviuaavram
Copy link
Collaborator Author

🎉 This PR is included in version 3.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@silviuaavram
Copy link
Collaborator Author

omg not again.

anyway. removed tag, release and unpublished it from npm.

tomorrow will do a manual release of the proper 4.0.0 version.

This was referenced Dec 20, 2019
silviuaavram added a commit that referenced this pull request Dec 21, 2019
There was an issue with a major release, so this manual-releases.md
change is to release a new major version.

Reference: #860

BREAKING CHANGE: TypeScript typings have changed for both `useSelect` and `Downshift`. See PR for details.
@silviuaavram
Copy link
Collaborator Author

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants