github elbywan/wretch 3.0.7

6 hours ago

3.0.7 (2026-03-07)

🏭 New feature(s)

  • Allow multiple error ids on catchers (dc93190)
// Previously:
const api = wretch("https://api.example.com")
  .catcher(401, err => redirect("/login"))
  .catcher(403, err => redirect("/login"))
  .catcher(407, err => redirect("/login"))

// Now we can write:
const api = wretch("https://api.example.com")
  .catcher([401, 403, 407], err => redirect("/login"))

⬆️ 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)

Don't miss a new wretch release

NewReleases is sending notifications on new releases.