v0.3.2
Note
🔑 This release includes enhancements to make authentication and session handling easier.
- You can validate the
request
param in theupgrade
hook andthrow
aResponse
as an error to terminate the upgrade (#91) - You can access a shared context from
request.context
in theupgrade
hook and frompeer.context
in the other hooks to preserve session data (#110, #111 (Note: context can be volatile in some environments likecloudflare-durable
)
🩹 Fixes
- types:
peer.request
always has.headers
if defined (e915f8d) - types: Mark
peer.request
as always defined (8fbb59b)
📖 Documentation
🏡 Chore
- examples: Fix typo (#107)
❤️ Contributors
- Pooya Parsa (@pi0)
- Luke Hagar (@LukeHagar)
- 39sho (@39sho)
- Sandro Circi (@sandros94)
- Jamaluddin Rumi (@jamaluddinrumi)