2.2.0 (2022-12-03)
🏭 New feature(s)
Add progress addon (2bae524), closes #154
Wretch now accepts a callback to monitor download progress.
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)
- Add a prepare script (17b0a76)
🐛 Bug fix(es)
- Fix a minor Wretch type issue in addons (23ba7b1)