progressbar.js v0.8.0 Release Notes

Release Date: 2015-04-08 // almost 9 years ago
  • API breaking change for step function! If you haven't used option.attachment , nothing has changed. Most likely you don't need to change anything.

    ✅ Thanks to @prodigitalson who provided fixes to step function and added a lot of tests.

    All changes:

    API breaking change to step function:

    🚀 Before this release, Shape was passed as an attachment to Path. If you overrode the attachment, there was no way to get reference to the Shape inside step function.
    Before:

    step: function(state, attachment) { // Do step}
    

    Now you can always reference to the Shape or Path inside the step function. Reference to self is passed as second parameter. User's custom attachment is now passed as the third parameter
    After:

    step: function(state, self, attachment) { // self is reference to Shape or Path// Do step} 
    

    🔦 Expose SVG path element as .path attribute for Path objects. That is consistent with Shape objects.

    👉 Make it possible to pass selector as a string to Path object. Earlier only direct element was accepted.

    ✅ More tests