- Reset colors prior to ending a line, to eliminate flicker when a line is trucated between start and end color sequences.
- Only create our onExit handler when we’re enabled and remove it when we’re disabled. This stops us from creating multiple onExit handlers when multiple gauge objects are being used.
- Fix bug where if a theme name were given instead of a theme object, it would crash.
- Remove supports-color because it’s not actually used. Uhm. Yes, I just updated it. >.>
- Use supports-color instead of has-color (as the module has been renamed)
- Bug fix: Calls to show/pulse while the progress bar is disabled should still update our internal representation of what would be shown should it be enabled.
- New feature: Add new
isEnabled method to allow introspection of the gauge’s “enabledness” as controlled by
- Bug fix: Don’t run the code associated with
disable if the gauge is already enabled or disabled respectively. This prevents leaking event listeners, amongst other weirdness.
- New feature: Template items can have default values that will be used if no value was otherwise passed in.
- Default to
enabled only if we have a tty. Users can always override this by passing in the
enabled option explicitly or by calling calling
- Update to
email@example.com, which fixes a compatibility bug with the node profiler.
- #39 Fix tests on 0.10 and add a missing devDependency. (@helloyou2012)
- Add way to programmatically fetch a list of theme names in a themeset (
- Add support for setting themesets on existing gauge objects.
- Add post-IO callback to
gauge.hide() as it is somtetimes necessary when your terminal is interleaving output from multiple filehandles (ie, stdout & stderr).
- Fix a refactor bug in setTheme where it wasn’t accepting the various types of args it should.
- Add setTemplate & setTheme back in.
- Add support for named themes, you can now ask for things like ‘colorASCII’ and ‘brailleSpinner’. Of course, you can still pass in theme objects. Additionally you can now pass in an object with
platform keys in order to override our guesses as to those values when selecting a default theme from the themeset.
- Make the output stream optional (it defaults to
setWriteTo(stream[, tty]) to change the output stream and, optionally, tty.
BUG FIXES & REFACTORING
- Abort the display phase early if we’re supposed to be hidden and we are.
- Stop printing a bunch of spaces at the end of lines, since we’re already using an erase-to-end-of-line code anyway.
- The unicode themes were missing the subsection separator.
- All new themes API– reference themes by name and pass in custom themes and themesets (themesets get platform support autodetection done on them to select the best theme). Theme mixins let you add features to all existing themes.
- Much, much improved test coverage.
- Got rid of ░ in the default platform, noUnicode, hasColor theme. Thanks to @yongtw123 for pointing out this had snuck in.
- Fiddled with the demo output to make it easier to see the spinner spin. Also added prints before each platforms test output.
- I forgot to include
signal-exit in our deps. <.< Thank you @KenanY for finding this. Then I was lazy and made a new commit instead of using his PR. Again, thank you for your patience @KenenY.
- Drastically speed up travis testing.
- Change: The subsection separator from ⁄ and / (different chars) to >.
- Fix crasher: A show or pulse without a label would cause the template renderer to complain about a missing value.
- New feature: Add the ability to disable the clean-up-on-exit behavior. Not something I expect to be widely desirable, but important if you have multiple distinct gauge instances in your app.
- Use our own color support detection. The
has-color module proved too magic for my needs, making assumptions as to which stream we write to and reading command line arguments.
This is a major rewrite of the internals. Externally there are fewer changes: