Skip to content

3.0.2

Choose a tag to compare

@elbywan elbywan released this 24 Oct 07:04
· 11 commits to master since this release
1680ef7

3.0.2 (2025-10-24)

🐛 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());
  }
}