Skip to content

Releases: vbauerster/mpb

mpb v4.5.0

21 Feb 07:48

Choose a tag to compare

mpb v4.4.0

18 Feb 10:24

Choose a tag to compare

mpb v4.3.0

18 Feb 10:22

Choose a tag to compare

mpb v4.2.0

06 Feb 14:22

Choose a tag to compare

  • better windows support
  • for posix terminals, ANSI sequence change from CUU1,EL\r for each line to single CUUn,ED where n is line count. Hopefully should fix blinking effect.
  • for infrequent (long) refresh rates, there is no latency on bar complete event, i.e. bar quits as soon as it has been completed.
  • added spinner decorator
  • as usual it is go module

mpb v4.0.0

30 Jan 21:02

Choose a tag to compare

mpb v4 requires Go 1.10.3+ (or Go 1.9.7+)
mpb v4 is a Go module and thus breaks the import path; use "github.com/vbauerster/mpb/v4" and "github.com/vbauerster/mpb/v4/decor"

mpb 3.3.4

26 Jan 18:58

Choose a tag to compare

Make SetTotal non-blocking, to prevent misuse, such in #34
Some performance optimisations

mpb 3.3.3

15 Dec 08:26

Choose a tag to compare

Fixes:

New features:

mpb 3.3.2

12 Aug 09:46

Choose a tag to compare

New Bar option BarNewLineExtend.
TimeNormalizer, to be used directly with MovingAverageETA.
Signature of Abort method has been changed a bit.
RefillBy deprecated, use SetRefill instead.

mpb 3.3.1

20 Jun 11:36

Choose a tag to compare

mpb 3.3.0

17 Jun 12:03

Choose a tag to compare

This release breaks some decorator function signature, but makes width related parameters optional.
For example before user had to specify width related params, even default ones:

mpb.PrependDecorators(decor.Name("name", 0, 0))

Now if you're ok with defaults, just do:

mpb.PrependDecorators(decor.Name("name"))

Decorator implementation completely decoupled from the core. For example in previous releases if user didn't use ETA decorator, it was calculated by core anyway. Now if you don't use ETA, it is not calculated at all, same applies to all decorators which need calculation.

There was issue #20 reported, which helped me to realize, that ETA decorator was tightly coupled to the core and it is not easy to re-implement it by the user. So now to re-implement ETA all you need is just to provide your own implementation of MovingAverage interface, if you don't like default ewma based implementation.

func MovingAverageETA(style int, average MovingAverage, sb chan time.Time, wcc ...WC) Decorator

Alternative implementation of MovingAverage interface, also provided:

Also I'd like to thank @xakep666, for his human friendly speed decorator pull request.