github elbywan/wretch 2.2.0

latest releases: 2.11.0, 2.10.0, 2.9.1...
23 months ago

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)

Don't miss a new wretch release

NewReleases is sending notifications on new releases.