Skip to content

Latest commit

 

History

History
138 lines (125 loc) · 8.96 KB

CHANGELOG.md

File metadata and controls

138 lines (125 loc) · 8.96 KB

Changelog

  • 0.10.2:

    • Bugfixes:
      • Fixed a NullPointerException (jline/jline3#930) by updating a jline dependency. (PR #164). Thanks @koppor !
  • 0.10.1:

    • Improvements:
      • Changed the JPMS module dependency org.jline to a more fine-grained module org.jline.terminal (#158, PR #159). Thanks @brett-smith !
      • Added a new builder method setRenderer to allow custom renderers (#157). Thanks @drothmaler !
  • 0.10.0:

    • New functionalities:
      • Make me.tongfei.progressbar a Java 9 module (#149, #153, #154). Thanks @clo-vis, @Kamillaova, @bowbahdoe !
      • Enables the builder pattern for ProgressBarStyle (PR #152). Thanks @PakhomovAlexander !
    • Dependency version bump.
  • 0.9.5:

    • Bugfixes:
      • Fixed the problem of ProgressState not being public, thus making setEtaFunction useless (#147, PR #146). Thanks @deejgregor, @natanfudge !
      • Correct handling of ANSI control characters in calculating the display length.
    • New functionalities:
      • Added a new UNICODE_COLORFUL_BAR style.
  • 0.9.4:

    • New functionalities:
      • In ProgressBarBuilders, one can now switch whether to show the remaining time, or to provide a custom function to compute the remaining time (if the progress is not linear) (#131). Thanks @MagnusErikssonAB !
      • In ProgressBarBuilders, one can now set .clearDisplayOnFinish() to clear the display on terminals when a progress is complete (#135). Thanks @mattparkins !
      • Added a method ProgressBar::isIndefinite to check if a progress bar's max is unknown (#140). Thanks @lt3stus3el !
    • Bugfixes:
      • Fixed the bug of not drawing after resetting or stepping back caused by #91 (#124). Thanks @Bricktheworld !
      • Suppress exceptions thrown in Spliterator.estimateSize and continue as if indefinite (#141). Thanks @seanf !
    • Dependency version bump.
  • 0.9.3:

    • New functionalities:
      • Supports for wrapping around java.io.OutputStreams and java.io.Writers (#114). Thanks @azachar !
      • Added continuousUpdate boolean parameter to various constructors and the ProgressUpdateAction so that long-running processes don't take forever to print something (#121, PR #120). Thanks @gaoagong !
    • Performance improvements:
      • Improved performance in rendered string building (PR #107). Thanks @heroesleo65 !
      • Improved performance in ConsoleProgressBarConsumer::accept (PR #106). Thanks @heroesleo65 !
    • Bugfixes:
      • Displays a progress bar immediately after it starts, regardless of whether it has made any progress (#117). Thanks @azachar !
      • Closing a progress bar will now force the progress bar to refresh (PR #110). Thanks @kmtong !
      • Using a default DecimalFormat object if isSpeedShown is true as it will otherwise throw a NullPointerException during rendering (#121, PR #120). Thanks @gaoagong !
    • Dependency bump. Specifically:
  • 0.9.2:

    • New functionalities:
      • Supports for wrapping around java.io.Readers.
    • Bugfixes:
      • Fixed potential StringIndexOutOfBoundsException and improved performance in trimDisplayLength (PR #104). Thanks @heroesleo65 !
      • Fixed the bug that incorrectly calculates string display length while displaying that results in last ) truncated (#105).
    • Improvements:
      • Size now known when wrapping an array (PR #101). Thanks @seanf !
      • Better estimation of initial max for spliterators (#102).
    • Misc:
      • Dependency version bump.
  • 0.9.1:

    • Improvements:
      • Correct rendering of East Asian full-width characters as defined in Unicode TR11 (#75). Thanks @ImSejin and @fangyuzhong2016 !
      • Only renders the progress bar when progress is made (#91). This improves the performance of progress bars. Thanks @elanzini !
      • Added setMaxRenderedLength method to builders (#71). Thanks @koppor !
    • Misc:
      • Updates JUnit 4 to JUnit 5 (PR #93). Thanks @michaelsiepmann !
      • Dependency version bump.
  • 0.9.0:

    • New functionalities:
      • Supports the parallel display of multiple progress bars (PR #69), fixing #11. Thanks @vehovsky !
      • Supports pausing and resuming progress bars (PR #56, PR #63), fixing #17. Thanks @mesat !
      • Supports direct wrapping around arrays (#62).
      • Supports customized max length for progress bars (#71). Thanks @koppor and @cloudnotify !
    • Bugfixes:
      • Fixes the bug of dividing-by-zero when extra message is too long on indefinite progress bars (PR #85), fixing #84. Thanks @AndreiNekrasOn and @rharder !
    • Misc:
      • Removed redundant jline-terminal-jansi dependency (#77). Thanks @zbateson !
      • Added references to Kotlin extensions (#72). Thanks @heinrichreimer !
      • Changed the permission level of some methods in DefaultProgressBarRenderer to "protected" to make it more extensible (#81). Thanks @ksvladimir !
      • Dependency version bump.
  • 0.8.1:

    • Bugfixes:
      • Fixed the bug of possible negative suffix length (PR #58). Thanks @kristofarkas !
      • Fixed the issue of stepping by -1 when wrapped input stream is depleted (#60, PR #61). Thanks @mordechaim !
      • Default value for initial max in progress bar builders should be -1, not 0 (#60, PR #61). Thanks @mordechaim !
    • Dependency version bump.
  • 0.8.0:

    • Supports loggers (PR #54) by factoring out progress bar consumers and renderers. This allows progress bars to be used with logging libraries such as SLF4J, hence fixing #12 and #18. Thanks @alexpeelman !
    • Dependency version bump.
  • 0.7.4:

    • Fixes the bug of slow exit with fast jobs (#50, PR #51). Thanks @meawoppl @denisrosset !
    • Dependency version bump.
  • 0.7.3:

    • Added support for customizing the decimal format of speed display (PR #49). Thanks @wfxr !
  • 0.7.2:

    • Added support for wrapping around Spliterators and Streams. Streams could be either sequential or parallel (#44). Thanks @michaelmior !
    • Added support for displaying speed with unit (PR #43). Thanks @dani909 !
  • 0.7.1:

    • Fixed the problem of not properly closing the JLine Terminal object (#40). Thanks @voseldop !
    • Suppressed JLine warning if a dumb terminal is created (partially fixed #42). Thanks @BuZZ-DEE !
    • Documentation:
      • Moved CHANGELOG.md to the home directory and created a symlink in the docs/ folder to it (PR #41). Thanks @koppor !
      • Fixed bug (demo code was wrong) in the declarative usage section (PR #39). Thanks @AbhinavVishak !
  • 0.7.0:

    • Utilized the try-with-resource pattern for the Java imperative syntax, deprecating ProgressBar#start and ProgressBar#stop.
    • Introduced units for progress bar that enables showing the total amount of work in some unit (e.g. MB / GB) (#33).
    • Introduced the builder pattern for constructing progress bars (instead of lots of different constructors).
    • Added declarative usage that wraps around InputStream, which enables tracking the progress of reading a large file or stream (#34).
    • Progress bars are now colorful by default using ANSI color codes.
    • Documentation:
      • Brand new mkdocs Material-style documentation!
  • 0.6.0:

    • Added declarative usage that wraps around Iterator and Iterable.
    • Updated jline dependency to JLine 3.
    • Fixed problem in IntelliJ console. Thanks @saidaspen, @albancolley, @felixdivo, @AbhinavVishak !
    • Fixed warning about encoding during Maven build. Thanks @khmarbaise !
    • Fixed Java version in Maven build. Thanks @ccamel !
  • 0.5.5: Fixed the problem of the progress bar being stuck if it finishes too fast. Fixed the problem of StringIndexOutOfBoundsException error when the console width is too small. Thanks @bwittwer, @rholdberh and @bubyakin !
  • 0.5.4: Added indefinite progress bar support.
  • 0.5.3: Type of max/current of a progress bar is changed from int to long. Thanks @vitobellini !
  • 0.5.2: Methods now returns this. This simplifies the initialization: Now you can do pb = new ProgressBar(...).start(). Extra messages that are too long are trimmed properly. Thanks @mattcg !
  • 0.5.1: Fixed the refresh problem when progress ended. Added style (Unicode block characters / pure ASCII) support.
  • 0.5.0: Separated the progress bar thread from the main thread for better performance. Fixed the character offset issue. Thanks @rualpe !
  • 0.4.3: Changed the symbols to box-drawing characters; more fine-grained display. Thanks @hrj !
  • 0.4.2: Default output stream is changed to System.err; can be customized in constructor. Thanks @AluisioASG !
  • 0.4.1: Added a stepTo method to ProgressBars. Thanks @svenmauer !
  • 0.4.0: Migrated from Scala to Java: less dependencies.