Skip to content

Conversation

@dependabot
Copy link
Contributor

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

Bumps wretch from 2.7.0 to 3.0.6.

Release notes

Sourced from wretch's releases.

3.0.6

3.0.6 (2025-12-12)

🐛 Bug fix(es)

  • Add Self to return type (e5582d6)
import wretch from "wretch";
import AbortAddon from "wretch/addons/abort";
const base = wretch()
.addon(AbortAddon())
.catcher(404, (error) => { throw error; });
// Previously: ❌ TypeScript error: Property 'signal' does not exist
// Now: 🟢
base.signal(new AbortController()).get("/test");

  • Widen catcherFallback error type (d0a3fbe), closes #290
import wretch from "wretch";
class ApiError extends Error {
constructor(public status: number, message: string) {
super(message);
}
}
const api = wretch()
.customError(async (error) => {
return new ApiError(error.status, error.message);
})
.catcherFallback((error) => {
// Previously 🔴
// Error was typed as "ApiError"
// But if you block the URL in Chrome DevTools (or network is down):
// error is actually TypeError: Failed to fetch
//
// Now: 🟢
// error is properly typed as "unknown"
console.log(error);
});

... (truncated)

Changelog

Sourced from wretch's changelog.

3.0.6 (2025-12-12)

🐛 Bug fix(es)

  • Add Self to return type (e5582d6)
  • Widen catcherFallback error type (d0a3fbe), closes #290

✅ Test improvement(s)

  • Add core snippet testing infrastructure (fcea6f7)
  • Add directive system for snippet test control (106e0d6)
  • Add execution engine and test orchestration (28f60a1)
  • Add extensible plugin system with examples (262a40d)
  • Integrate snippet testing framework and document usage (9cdeb4c)

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

... (truncated)

Commits
  • c249220 v3.0.6
  • d0a3fbe 🐛 Widen catcherFallback error type
  • f538860 Merge pull request #289 from biesbjerg/fix/288-catcher-catcher-fallback-retur...
  • e5582d6 🐛 Add Self to return type
  • 0f1ba14 Merge pull request #286 from elbywan/enhance-snippets
  • a5f1fba Merge pull request #287 from elbywan/copilot/sub-pr-286
  • c0d40f0 fix: add space between if and ( in transformer.ts
  • fa24724 Initial plan
  • 9cdeb4c ✅ Integrate snippet testing framework and document usage
  • 262a40d ✅ Add extensible plugin system with examples
  • 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.


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.7.0 to 3.0.6.
- [Release notes](https://github.com/elbywan/wretch/releases)
- [Changelog](https://github.com/elbywan/wretch/blob/master/CHANGELOG.md)
- [Commits](elbywan/wretch@2.7.0...3.0.6)

---
updated-dependencies:
- dependency-name: wretch
  dependency-version: 3.0.6
  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 26, 2025
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.

1 participant