Skip to content

v0.1.0

Choose a tag to compare

@joshmossas joshmossas released this 01 Jun 21:26
· 80 commits to master since this release

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.