Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

3 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. ### v2.7.4
  2. * Reset colors prior to ending a line, to eliminate flicker when a line
  3. is trucated between start and end color sequences.
  4. ### v2.7.3
  5. * Only create our onExit handler when we're enabled and remove it when we're
  6. disabled. This stops us from creating multiple onExit handlers when
  7. multiple gauge objects are being used.
  8. * Fix bug where if a theme name were given instead of a theme object, it
  9. would crash.
  10. * Remove supports-color because it's not actually used. Uhm. Yes, I just
  11. updated it. >.>
  12. ### v2.7.2
  13. * Use supports-color instead of has-color (as the module has been renamed)
  14. ### v2.7.1
  15. * Bug fix: Calls to show/pulse while the progress bar is disabled should still
  16. update our internal representation of what would be shown should it be enabled.
  17. ### v2.7.0
  18. * New feature: Add new `isEnabled` method to allow introspection of the gauge's
  19. "enabledness" as controlled by `.enable()` and `.disable()`.
  20. ### v2.6.0
  21. * Bug fix: Don't run the code associated with `enable`/`disable` if the gauge
  22. is already enabled or disabled respectively. This prevents leaking event
  23. listeners, amongst other weirdness.
  24. * New feature: Template items can have default values that will be used if no
  25. value was otherwise passed in.
  26. ### v2.5.3
  27. * Default to `enabled` only if we have a tty. Users can always override
  28. this by passing in the `enabled` option explicitly or by calling calling
  29. `gauge.enable()`.
  30. ### v2.5.2
  31. * Externalized `./console-strings.js` into `console-control-strings`.
  32. ### v2.5.1
  33. * Update to `signal-exit@3.0.0`, which fixes a compatibility bug with the
  34. node profiler.
  35. * [#39](https://github.com/iarna/gauge/pull/39) Fix tests on 0.10 and add
  36. a missing devDependency. ([@helloyou2012](https://github.com/helloyou2012))
  37. ### v2.5.0
  38. * Add way to programmatically fetch a list of theme names in a themeset
  39. (`Themeset.getThemeNames`).
  40. ### v2.4.0
  41. * Add support for setting themesets on existing gauge objects.
  42. * Add post-IO callback to `gauge.hide()` as it is somtetimes necessary when
  43. your terminal is interleaving output from multiple filehandles (ie, stdout
  44. & stderr).
  45. ### v2.3.1
  46. * Fix a refactor bug in setTheme where it wasn't accepting the various types
  47. of args it should.
  48. ### v2.3.0
  49. #### FEATURES
  50. * Add setTemplate & setTheme back in.
  51. * Add support for named themes, you can now ask for things like 'colorASCII'
  52. and 'brailleSpinner'. Of course, you can still pass in theme objects.
  53. Additionally you can now pass in an object with `hasUnicode`, `hasColor` and
  54. `platform` keys in order to override our guesses as to those values when
  55. selecting a default theme from the themeset.
  56. * Make the output stream optional (it defaults to `process.stderr` now).
  57. * Add `setWriteTo(stream[, tty])` to change the output stream and,
  58. optionally, tty.
  59. #### BUG FIXES & REFACTORING
  60. * Abort the display phase early if we're supposed to be hidden and we are.
  61. * Stop printing a bunch of spaces at the end of lines, since we're already
  62. using an erase-to-end-of-line code anyway.
  63. * The unicode themes were missing the subsection separator.
  64. ### v2.2.1
  65. * Fix image in readme
  66. ### v2.2.0
  67. * All new themes API– reference themes by name and pass in custom themes and
  68. themesets (themesets get platform support autodetection done on them to
  69. select the best theme). Theme mixins let you add features to all existing
  70. themes.
  71. * Much, much improved test coverage.
  72. ### v2.1.0
  73. * Got rid of ░ in the default platform, noUnicode, hasColor theme. Thanks
  74. to @yongtw123 for pointing out this had snuck in.
  75. * Fiddled with the demo output to make it easier to see the spinner spin. Also
  76. added prints before each platforms test output.
  77. * I forgot to include `signal-exit` in our deps. <.< Thank you @KenanY for
  78. finding this. Then I was lazy and made a new commit instead of using his
  79. PR. Again, thank you for your patience @KenenY.
  80. * Drastically speed up travis testing.
  81. * Add a small javascript demo (demo.js) for showing off the various themes
  82. (and testing them on diff platforms).
  83. * Change: The subsection separator from ⁄ and / (different chars) to >.
  84. * Fix crasher: A show or pulse without a label would cause the template renderer
  85. to complain about a missing value.
  86. * New feature: Add the ability to disable the clean-up-on-exit behavior.
  87. Not something I expect to be widely desirable, but important if you have
  88. multiple distinct gauge instances in your app.
  89. * Use our own color support detection.
  90. The `has-color` module proved too magic for my needs, making assumptions
  91. as to which stream we write to and reading command line arguments.
  92. ### v2.0.0
  93. This is a major rewrite of the internals. Externally there are fewer
  94. changes:
  95. * On node>0.8 gauge object now prints updates at a fixed rate. This means
  96. that when you call `show` it may wate up to `updateInterval` ms before it
  97. actually prints an update. You override this behavior with the
  98. `fixedFramerate` option.
  99. * The gauge object now keeps the cursor hidden as long as it's enabled and
  100. shown.
  101. * The constructor's arguments have changed, now it takes a mandatory output
  102. stream and an optional options object. The stream no longer needs to be
  103. an `ansi`ified stream, although it can be if you want (but we won't make
  104. use of its special features).
  105. * Previously the gauge was disabled by default if `process.stdout` wasn't a
  106. tty. Now it always defaults to enabled. If you want the previous
  107. behavior set the `enabled` option to `process.stdout.isTTY`.
  108. * The constructor's options have changed– see the docs for details.
  109. * Themes are entirely different. If you were using a custom theme, or
  110. referring to one directly (eg via `Gauge.unicode` or `Gauge.ascii`) then
  111. you'll need to change your code. You can get the equivalent of the latter
  112. with:
  113. ```
  114. var themes = require('gauge/themes')
  115. var unicodeTheme = themes(true, true) // returns the color unicode theme for your platform
  116. ```
  117. The default themes no longer use any ambiguous width characters, so even
  118. if you choose to display those as wide your progress bar should still
  119. display correctly.
  120. * Templates are entirely different and if you were using a custom one, you
  121. should consult the documentation to learn how to recreate it. If you were
  122. using the default, be aware that it has changed and the result looks quite
  123. a bit different.