- Accept ink 5. The only breaking change is that ink requires node > 18. ink-tab still accept older node version with ink 4 though.
- [BREAKING] require ink 4. See ink 4.0.0 release to upgrade.
ink-tab
did not change aside from that.
Fix TS types
Possiblility to override active tab colors
Fix react peerDep
Remove babel-plugin-typescript-to-proptypes
Remove prop-types
package from dependencies
Change types to handle "children" due to @types/react change
Add the showIndex
on the Tabs
component. It allows you to disable showing tab indexes.
Add the defaultValue
on the Tabs
component. It allows you to set initial opened tab to any tab you want instead of the first one. Thanks to @zarezadeh (#29)
- Upgrade dependencies to ink
^3.0.0
hasFocus
has been renamed toisFocused
to match ink API.- Drop support for node < 10 (ink does not supports them anyway).
- Smaller build
- Fix issue with typescript and Component. See #23
Version 3.0.0 maintains API compatibility with 2.x but due to major internal changes and potential behavior differences across nearly all API surfaces, semver dictates a major version bump.
- Moved to typescript 😃
- Added the
hasFocus
props.
Fixed type module node ( Thanks to @aequasi )
Add typescript definition files #17. (Thanks to @sw-yx )
Fix issue with ink >= 2.4.0 preventing keypress events to be triggered. See vadimdemedes/ink#243
Fix issue from 2.1.2 where the tabs did appear in column instead of in row.
Add better proptypes of TabsWithStdin to avoid issue with StdinContext & nodemon. Fixes #9
- Fix small issue with proptypes and default width parameters
- [Minor BC Break] Need ink ^2.1.0 (use automatic keypress event, added in 2.0.4)
- Fix issue with CTRL-C and multiple instances
- Use the
width
parameter when flexDirection is set tocolumn(-reverse)
to set the separator width - Expose a
keyMap
object to override default keyMap
Remove unmaintained keypress in favor of node "readline"
- [Breaking] Use
ink
v2 (and thus React + react-reconcilier) - [Breaking] drop support for Node < 8. (ink 2 is dropping support anyway)
- Use Babel 7.
- Upgrade peerDependency to ink ^0.5.0 See #4
- Upgrade dependency to ink ^0.5.0 See #4
- Tab index now starts at 1 ("1. 2. 3." instead of "0. 1. 2.")
- Cycle through tabs when hitting bounds
- Navigation through tabs with TAB (move to next tab) and SHIFT+TAB (move to previous tab)
- Navigation with "META" + Tab number
Fixed a bug when hitting bounds of tabs
Allow version 0.4.x of ink
Initial version, working version of ink-tab