Skip to content

Conversation

@dependabot
Copy link
Contributor

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

Bumps wretch from 2.11.0 to 3.0.2.

Release notes

Sourced from wretch's releases.

3.0.2

🐛 Bug fix(es)

  • Clone the body before assigning to WretchError message (5379037), closes #277
try {
  // ..blah
} catch (err: unknown)
  if (err instanceof WretchError)
    // Should now work fine, used to crash with an error of type: "body has already been read"
    console.log(await err.response.json());
  }
}

3.0.1

3.0.1 (2025-10-21)

🐛 Bug fix(es)

  • Fix malformed package.json key (ddf3b4c)

📝 Documentation update(s)

  • Fix typescript API links (831598a)

3.0.0

This major version represents a significant evolution of the library.

After extensive development, v3 delivers a smaller, faster, and more powerful fetch wrapper with improved type safety, smarter defaults, and exciting new features.

✨ What's New

🚀 Embracing Modern JavaScript

Wretch v3 now requires Node.js 22 or higher, allowing us to fully embrace the native Web APIs that are now built into the runtime. This means zero polyfill overhead - fetch, FormData, URLSearchParams, AbortController, and the Performance API are all used directly from Node.js.

The result? A significantly smaller bundle size and better performance thanks to highly optimized native implementations.

🎯 Better Error Handling with .customError()

Say goodbye to .errorType() and hello to the new .customError() method! This new helper function provides full TypeScript support for custom error properties, giving you complete control over error parsing.

Instead of being limited to predefined error types, you can now transform and parse errors exactly how you need them:

interface ApiError {
  code: number
</tr></table> 

... (truncated)

Changelog

Sourced from wretch's changelog.

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)

🐛 Bug fix(es)

  • Fix malformed package.json key (ddf3b4c)

📝 Documentation update(s)

  • Fix typescript API links (831598a)

3.0.0 (2025-10-19)

⬆️ Version update(s)

🎨 Code improvement(s)

  • Add automated npm publishing workflow (745b8a0)
  • Golf bytes (b0316f1)
  • Improve .customError typings (6efdb24)
  • Remove deno related docuentation and tests (1ceac88)
  • Remove global config and dead code (bdb8134)
  • Use proto to manage tools (23f22e4)

🐛 Bug fix(es)

  • Fix custom error conflicting with catchers (0486e49)

🏁 Performance update(s)

... (truncated)

Commits
  • 1680ef7 v3.0.2
  • 5379037 🐛 Clone the body before assigning to WretchError message
  • 66c0f09 v3.0.1
  • ddf3b4c 🐛 Fix malformed package.json key
  • 831598a 📝 Fix typescript API links
  • 5528b73 v3.0.0
  • 4347e4b 🏭 Add request parameter to .customError transformer
  • 745b8a0 🎨 Add automated npm publishing workflow
  • 299bd90 🏁 Improve snippet testing
  • aa8ef0a :feature: Add .toFetch method
  • 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 1, 2025
Bumps [wretch](https://github.com/elbywan/wretch) from 2.11.0 to 3.0.2.
- [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.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/cmd/server/frontend/wretch-3.0.2 branch from 36d3239 to 19ca9c8 Compare November 7, 2025 00:20
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 1, 2025

Superseded by #233.

@dependabot dependabot bot closed this Dec 1, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/cmd/server/frontend/wretch-3.0.2 branch December 1, 2025 13:38
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