github elbywan/wretch 2.6.0

latest releases: 2.11.0, 2.10.0, 2.9.1...
16 months ago

2.6.0 (2023-06-28)

⬆️ Version update(s)

  • Bump engine.io and socket.io (3ef1738)
  • Bump socket.io-parser from 4.2.2 to 4.2.3 (b42aa0f)
  • Upgrade dependencies (b183cf7)

🏭 New feature(s)

wretch(url)
  .catcher(404, err => redirect("/routes/notfound", err.message))
  .catcher(500, err => flashMessage("internal.server.error"))
  // this fallback will trigger for any error except if already caught by other means (like above for 404s and 505s)
  .catcherFallback(err => {
    log("Uncaught error:", err)
    throw err
  })

📝 Documentation update(s)

  • Update node-fetch code snippet (3b6ac7e), closes #179

Don't miss a new wretch release

NewReleases is sending notifications on new releases.