Skip to content

v0.3.2

Compare
Choose a tag to compare
@pi0 pi0 released this 22 Jan 11:16
· 5 commits to main since this release

compare changes

Note

🔑 This release includes enhancements to make authentication and session handling easier.

  • You can validate the request param in the upgrade hook and throw a Response as an error to terminate the upgrade (#91)
  • You can access a shared context from request.context in the upgrade hook and from peer.context in the other hooks to preserve session data (#110, #111 (Note: context can be volatile in some environments like cloudflare-durable)

🩹 Fixes

  • types: peer.request always has .headers if defined (e915f8d)
  • types: Mark peer.request as always defined (8fbb59b)

📖 Documentation

  • Fix typos (#84, #85)
  • Add tip for using destr for JSON parsing (#109)

🏡 Chore

  • examples: Fix typo (#107)

❤️ Contributors