-
0.10.2
:- Bugfixes:
- Fixed a
NullPointerException
(jline/jline3#930) by updating ajline
dependency. (PR #164). Thanks @koppor !
- Fixed a
- Bugfixes:
-
0.10.1
:- Improvements:
- Changed the JPMS module dependency
org.jline
to a more fine-grained moduleorg.jline.terminal
(#158, PR #159). Thanks @brett-smith ! - Added a new builder method
setRenderer
to allow custom renderers (#157). Thanks @drothmaler !
- Changed the JPMS module dependency
- Improvements:
-
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 !
- Make
- Dependency version bump.
- New functionalities:
-
0.9.5
:- Bugfixes:
- Fixed the problem of
ProgressState
not being public, thus makingsetEtaFunction
useless (#147, PR #146). Thanks @deejgregor, @natanfudge ! - Correct handling of ANSI control characters in calculating the display length.
- Fixed the problem of
- New functionalities:
- Added a new
UNICODE_COLORFUL_BAR
style.
- Added a new
- Bugfixes:
-
0.9.4
:- New functionalities:
- In
ProgressBarBuilder
s, 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
ProgressBarBuilder
s, 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 !
- In
- 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.
- New functionalities:
-
0.9.3
:- New functionalities:
- Supports for wrapping around
java.io.OutputStream
s andjava.io.Writer
s (#114). Thanks @azachar ! - Added
continuousUpdate
boolean parameter to various constructors and theProgressUpdateAction
so that long-running processes don't take forever to print something (#121, PR #120). Thanks @gaoagong !
- Supports for wrapping around
- 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 ifisSpeedShown
is true as it will otherwise throw aNullPointerException
during rendering (#121, PR #120). Thanks @gaoagong !
- Dependency bump. Specifically:
- Supports Apple M1 due to jline/jline3#688 (PR #119). Thanks @snuyanzin !
- New functionalities:
-
0.9.2
:- New functionalities:
- Supports for wrapping around
java.io.Reader
s.
- Supports for wrapping around
- Bugfixes:
- Fixed potential
StringIndexOutOfBoundsException
and improved performance intrimDisplayLength
(PR #104). Thanks @heroesleo65 ! - Fixed the bug that incorrectly calculates string display length while displaying that results in last
)
truncated (#105).
- Fixed potential
- Improvements:
- Size now known when wrapping an array (PR #101). Thanks @seanf !
- Better estimation of initial max for spliterators (#102).
- Misc:
- Dependency version bump.
- New functionalities:
-
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.
- Improvements:
-
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.
- Removed redundant
- New functionalities:
-
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.
- Bugfixes:
-
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
Spliterator
s andStream
s. Streams could be either sequential or parallel (#44). Thanks @michaelmior ! - Added support for displaying speed with unit (PR #43). Thanks @dani909 !
- Added support for wrapping around
-
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 thedocs/
folder to it (PR #41). Thanks @koppor ! - Fixed bug (demo code was wrong) in the declarative usage section (PR #39). Thanks @AbhinavVishak !
- Moved
- Fixed the problem of not properly closing the JLine
-
0.7.0
:- Utilized the try-with-resource pattern for the Java imperative syntax, deprecating
ProgressBar#start
andProgressBar#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!
- Brand new
- Utilized the try-with-resource pattern for the Java imperative syntax, deprecating
-
0.6.0
:- Added declarative usage that wraps around
Iterator
andIterable
. - 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 !
- Added declarative usage that wraps around
0.5.5
: Fixed the problem of the progress bar being stuck if it finishes too fast. Fixed the problem ofStringIndexOutOfBoundsException
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 fromint
tolong
. Thanks @vitobellini !0.5.2
: Methods now returnsthis
. This simplifies the initialization: Now you can dopb = 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 toSystem.err
; can be customized in constructor. Thanks @AluisioASG !0.4.1
: Added astepTo
method toProgressBar
s. Thanks @svenmauer !0.4.0
: Migrated from Scala to Java: less dependencies.