Skip to content

Releases: fent/node-streamspeed

v2.0.1

17 Nov 10:04
Compare
Choose a tag to compare

Bug Fixes

  • fix getting group speed on stream end for node v14 (dc92887)

v2.0.0

11 Apr 18:13
Compare
Choose a tag to compare

Bug Fixes

  • fix Infinity speed that would happen when data was read on same ms (2a6edfd)

Code Refactoring

Features

  • toHuman(0) now returns "0B" (ad9350c)
  • add precision option to toHuman() (27917b7)
  • add StreamSpeed#getSpeed() to get current speed (868f2e9)
  • add StreamSpeed#getStreamSpeed() (04603bb)
  • default to calculating speed over a range of time (595d0ce)

Performance Improvements

  • improve performance when adding/removing streams (66952bd)

BREAKING CHANGES

    • new StreamSpeed(timeUnit) - new StreamSpeed({ timeUnit })
  • Speed is now calculated based on total data read over a range of
    time, defaults to 1sec. Previously there were 2 speeds, current speed
    and average speed. Current speed was calculated based on amount of
    data received in latest read over the time difference between latest
    read and last read.
  • speed event now only emits one speed.
  • toHumman(timeUnit) -> toHuman({ timeUnit })
  • const, let not supported in node < 6

v1.1.1

11 Apr 18:16
Compare
Choose a tag to compare
chore(release): 1.1.1

v1.1.0

11 Apr 18:16
Compare
Choose a tag to compare
1.1.0

v1.0.1

11 Apr 18:16
Compare
Choose a tag to compare
1.0.1

v1.0.0

11 Apr 18:16
Compare
Choose a tag to compare
1.0.0

v0.2.3

11 Apr 18:16
Compare
Choose a tag to compare
0.2.3

v0.2.2

11 Apr 18:16
Compare
Choose a tag to compare
0.2.2

v0.2.1

11 Apr 18:16
Compare
Choose a tag to compare
0.2.1

v0.2.0

11 Apr 18:16
Compare
Choose a tag to compare
Release v0.2.0