Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 1, 2025

Bumps wretch from 2.11.0 to 3.0.5.

Release notes

Sourced from wretch's releases.

3.0.5

🎨 Code improvement(s)

  • Add progress option to customize the upload body size computation (2cd547f)
import ProgressAddon from "wretch/addons/progress"
wretch("https://example.com/upload")
.addon(ProgressAddon({
// getUploadTotal allows you to customize the total size of the upload
getUploadTotal(url, opts) {
// Return the total size of the upload in bytes, or 0 if undetermined
},
}))
.get()
.progress((loaded, total) => console.log(${(loaded / total * 100).toFixed(0)}%))

3.0.4

3.0.4 (2025-11-26)

🐛 Bug fix(es)

  • Improve body size computation when tracking upload progress (bfae158), closes #284
import wretch from "wretch"
import FormDataAddon from "wretch/addons/formData"
import ProgressAddon from "wretch/addons/progress"
const testString = Array(1_000).fill("This is a test string.")
const file = new File(testString, "test.txt", { type: "text/plain" })
wretch("https://httpbingo.org/post")
.addon([ProgressAddon(), FormDataAddon])
.formData({
"textfile": file,
})
.onUpload((loaded, total) => {
console.log(Uploaded ${loaded} of ${total})
})
.post()
.res(res => console.log(res.status))
.catch(console.error)

# "total" is now correctly inferred:
Uploaded 0 of 22174
</tr></table> 

... (truncated)

Changelog

Sourced from wretch's changelog.

3.0.5 (2025-11-27)

🎨 Code improvement(s)

  • Add progress option to customize the upload body size computation (2cd547f)

3.0.4 (2025-11-26)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Improve body size computation when tracking upload progress (bfae158), closes #284

3.0.3 (2025-11-10)

🐛 Bug fix(es)

  • Use body size when available to compute upload total bytes (27c0443), closes #278

✅ Test improvement(s)

  • Migrate documentation examples from httpbun.org to htt (df84f73)

3.0.2 (2025-10-24)

🐛 Bug fix(es)

  • Clone the body before assigning to WretchError message (5379037), closes #277

3.0.1 (2025-10-21)

... (truncated)

Commits
  • c381be2 v3.0.5
  • 2cd547f 🎨 Add progress option to customize the upload body size computation
  • 6077eb6 v3.0.4
  • bfae158 🐛 Improve body size computation when tracking upload progress
  • fb8a070 Merge pull request #281 from elbywan/dependabot/npm_and_yarn/multi-12cb0b0c21
  • 49a5e53 ⬆️ Bump glob
  • 25bb06d Merge pull request #280 from elbywan/dependabot/npm_and_yarn/js-yaml-4.1.1
  • 43882e1 ⬆️ Bump js-yaml from 4.1.0 to 4.1.1
  • 77a2d94 v3.0.3
  • df84f73 ✅ Migrate documentation examples from httpbun.org to httpbin...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for wretch since your current version.


Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
wretch [< 2.6, > 2.5.1]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [wretch](https://github.com/elbywan/wretch) from 2.11.0 to 3.0.5.
- [Release notes](https://github.com/elbywan/wretch/releases)
- [Changelog](https://github.com/elbywan/wretch/blob/master/CHANGELOG.md)
- [Commits](elbywan/wretch@2.11.0...3.0.5)

---
updated-dependencies:
- dependency-name: wretch
  dependency-version: 3.0.5
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 1, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 13, 2025

Looks like wretch is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Dec 13, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/cmd/server/frontend/wretch-3.0.5 branch December 13, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants