Skip to content

Bump wretch from 2.7.0 to 3.0.8 - #736

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/wretch-3.0.8
Closed

Bump wretch from 2.7.0 to 3.0.8#736
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/wretch-3.0.8

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Bumps wretch from 2.7.0 to 3.0.8.

Release notes

Sourced from wretch's releases.

3.0.8

3.0.8 (2026-05-23)

⚠️ Potential TypeScript breaking change

This may surface new typescript errors in existing code that previously compiled with overly narrow types. In practice, this means code that assumed the result was always Data may now need to handle additional catcher return values.

Although this can be a type-level breaking change, it is a correctness fix: the previous typings were incomplete and did not match actual runtime behavior.

👉 This change does not affect runtime behavior.


🐛 Bug fix(es)

  • Fix catcher return type inference (f78f32a), closes #313

wretch now reflects catcher callback return types in the final promise type.

For example, this is now inferred correctly:

const result = await wretch(url)
  .get()
  .notFound(() => "notFound" as const)
  .json<Data>()

And result is now typed as:

Data | "notFound"

Catchers with no return value are now reflected as undefined, and the same typing improvement also applies through .resolve() and deferred catchers configured with .defer().

// a slightly more exhaustive example
const result = await wretch("https://example.com")
  .catcher(404, () => "404" as const)
  .catcher([401, 403, 407], () => "401/403/407" as const)
  .catcherFallback(() => "fallback" as const)
  .defer(w => w.catcher(404, () => "deferred" as const))
  .get()
  .notFound(() => "notFound" as const)
  .internalError(() => "internalError" as const)
  .error("custom", () => "customError" as const)
  .fetchError(() => "Fetch error" as const)
  .json<{ data: unknown }>()
</tr></table>

... (truncated)

Changelog

Sourced from wretch's changelog.

3.0.8 (2026-05-23)

⬆️ Version update(s)

🐛 Bug fix(es)

  • Fix catcher return type inference (f78f32a), closes #313

✅ Test improvement(s)

  • Properly typecheck tests (5af0e78)

3.0.7 (2026-03-07)

⬆️ Version update(s)

  • Bump fastify from 5.6.1 to 5.7.3 (153cae9)
  • Bump lodash from 4.17.21 to 4.17.23 (2355d02)
  • Bump qs from 6.14.0 to 6.14.2 (02ca86e)
  • Upgrade dependencies (f677f28)

🏭 New feature(s)

  • Allow multiple error ids on catchers (dc93190)

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)

... (truncated)

Commits
  • 76821f8 v3.0.8
  • 56165dc ⬆️ Upgrade dependencies
  • 14185e9 ⬆️ Add min-release-age guard
  • 81831c6 Merge pull request #314 from elbywan/narrow-catcher-return-type
  • 5af0e78 ✅ Properly typecheck tests
  • f78f32a 🐛 Fix catcher return type inference
  • 0b90bc4 v3.0.7
  • f677f28 ⬆️ Upgrade dependencies
  • b655993 Merge pull request #285 from ecancino/catcher-errors
  • 1abd52f docs(readme): Fix the failing snippet
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by 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 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.8.
- [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.8)

---
updated-dependencies:
- dependency-name: wretch
  dependency-version: 3.0.8
  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 May 25, 2026
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions Bot added the Stale label Jun 25, 2026
@github-actions github-actions Bot closed this Jul 3, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/wretch-3.0.8 branch July 3, 2026 10:16
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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants