Skip to content

2.2.0

Compare
Choose a tag to compare
@elbywan elbywan released this 03 Dec 10:24
· 67 commits to master since this release

2.2.0 (2022-12-03)

馃彮 New feature(s)

Add progress addon (2bae524), closes #154

Wretch now accepts a callback to monitor download progress.

馃敆 Documentation.

import ProgressAddon from "wretch/addons/progress"
 
wretch("some_url")
  // Register the addon
  .addon(ProgressAddon())
  .get()
  // Log the progress as a percentage of completion
  .progress((loaded, total) => console.log(`${(loaded / total * 100).toFixed(0)}%`))

猬嗭笍 Version update(s)

  • Bump dependencies including outdated rollup plugins (bcbcdc5)
  • Bump engine.io from 6.2.0 to 6.2.1 (6a93854)
  • Bump fastify from 4.9.2 to 4.10.2 (8ae9122)

馃帹 Code improvement(s)

馃悰 Bug fix(es)

  • Fix a minor Wretch type issue in addons (23ba7b1)