Skip to content

Releases: joshmossas/event-source-plus

v0.1.15

20 Nov 15:12

Choose a tag to compare

What's Changed

  • chore: update dev dependencies by @joshmossas in #35
  • bugfix: add support for receiving partial character chunks by @joshmossas in #36 (prevent unicode truncation)

Full Changelog: v0.1.14...v0.1.15

v0.1.14

20 Nov 06:58

Choose a tag to compare

What's Changed

  • bugfix: prevent timeout from trigger duplicate onAbort, if abort() had already been called by @joshmossas in #30
  • bugfix: prevent content-type error from override fetch error by @joshmossas in #32
  • chore: make reading res in hooks more reliable by @joshmossas in #33

Full Changelog: v0.1.12...v0.1.14

v0.1.12

03 Aug 12:00

Choose a tag to compare

What's Changed

  • Feature: onAbort() now provides context about how the connection was closed by @joshmossas in #28

Full Changelog: v0.1.11...v0.1.12

v0.1.11

06 Jun 03:36

Choose a tag to compare

What's Changed

  • fix bug where last-event-id will not update after reconnecting more than once by @joshmossas in #26

Full Changelog: v0.1.10...v0.1.11

v0.1.10

05 Jun 19:23

Choose a tag to compare

What's Changed

  • docs: add more detailed docs concerning supported runtimes by @joshmossas in #23
  • feature: add reconnect() and onAbort() methods to EventSourceController by @joshmossas in #25
  • Retry Strategies are no longer considered a "beta" feature. They are now considered "stable".

Reconnect and OnAbort Methods

With this release the EventSourceController returned by listen() now has a reconnect() and onAbort() method.

  • Reconnect() - This method does exactly what it sounds like. It reconnects to the server. If an existing connection already exists it will close the old one and open a new one.
  • OnAbort() - This method is used to register a listener that will trigger when the connection is aborted.

More details on these changes can be found in the updated docs

Full Changelog: v0.1.8...v0.1.10

v0.1.8

05 Nov 15:54

Choose a tag to compare

What's Changed

  • chore: update dev dependencies and bump pnpm version by @joshmossas in #20
  • feature: add option to customize retry strategy by @joshmossas in #21

Customizing Retry Strategy

Thanks to a suggestion from @alt1o an option has been added to allow you to customize the retry strategy to only retry when an error occurs. This is useful for short lived streams with a fixed length such those commonly used by LLM applications. Currently this option is marked as a beta feature to give time for further testing. For documentation see here

Full Changelog: v0.1.7...v0.1.8

v0.1.7

15 Oct 17:39

Choose a tag to compare

What's Changed

  • docs: add comments to all of the properties in EventSourcePlusOptions by @joshmossas in #18

Shout out to @sgerke-1L who noticed a missplaced comment intended for the custom fetch option

Full Changelog: v0.1.6...v0.1.7

v0.1.6

08 Oct 16:43

Choose a tag to compare

What's Changed

Full Changelog: v0.1.5...v0.1.6

v0.1.5

08 Oct 03:27

Choose a tag to compare

What's Changed

  • feature: support injection of custom fetch implementation by @joshmossas in #15 (closes #9)
  • chore: update libs + fix broken integration test by @joshmossas in #16

Full Changelog: v0.1.4...v0.1.5

v0.1.4

27 Sep 07:59

Choose a tag to compare

What's Changed

  • Upgrade ofetch to v1.4.0
  • Upgrade dev dependencies to latest

Full Changelog: v0.1.3...v0.1.4