Releases: joshmossas/event-source-plus
Releases · joshmossas/event-source-plus
v0.1.1
What's Changed
- Bugfix: allow undefined values in header object by @joshmossas in #7
Full Changelog: v0.1.0...v0.1.1
v0.1.0
What's Changed
Aync header function support
The header function syntax can now return a promise.
new EventSourcePlus("https://example.com", {
headers: async () => {
// this works now
const token = await getSomeToken();
return {
Authorization: token
}
}
})
This should help remove boilerplate in places when your authentication library uses async functions to retrieve session tokens, and jwts.
Minor Version Bump
Version is being bumped to 0.1.0
this will allow for patches and bug fixes without it being treated as a breaking change. We'll stay on 0.1.x
until a breaking change occurs.