Skip to content

Releases: rexxars/eventsource-parser

v3.0.0

19 Oct 22:09
Compare
Choose a tag to compare

3.0.0 (2024-10-19)

⚠ BREAKING CHANGES

  • The parser now takes an object of callbacks instead of an onParse callback. This means you do not have to check the type of the event in the onEvent callback, but instead provide separate callbacks for each event type.
  • The ParsedEvent type has been renamed to EventSourceMessage and the type attribute has been removed.
  • The EventSourceCallback type has been removed in favor of the ParserCallbacks interface.
  • The ReconnectInterval type has been removed in favor of providing the interval directly to the onRetry callback.
  • The ParseEvent type has been removed in favor of providing separate callbacks for each event type.
  • The parser has been rewritten to be more specification compliant. Certain rare edge cases may now be handled differently. Mixed CRLF and LF line endings will now be handled correctly. retry fields now have to be completely valid integers to be parsed.

Features

  • provide onError, onComment, and onRetry callbacks (#15) (c544729)

Migration guide

See migration guide: https://github.com/rexxars/eventsource-parser/blob/main/MIGRATE-v3.md


This release is also available on:

v2.0.1

07 Aug 15:35
Compare
Choose a tag to compare

2.0.1 (2024-08-07)

Bug Fixes

  • include root-level legacy export in published files (c814b4b)

This release is also available on:

v2.0.0

07 Aug 15:21
Compare
Choose a tag to compare

2.0.0 (2024-08-07)

⚠ BREAKING CHANGES

  • BREAKING: minimum node.js version is now v18

Bug Fixes

  • BREAKING: minimum node.js version is now v18 (d652333)
  • enable legacy exports (b88e02c)

This release is also available on:

v1.1.2

13 Feb 05:25
Compare
Choose a tag to compare

1.1.2 (2024-02-13)

Bug Fixes

  • add field typesVersions in package.json (efcde97), closes #7

This release is also available on:

v1.1.1

20 Sep 10:15
Compare
Choose a tag to compare

1.1.1 (2023-09-20)

Bug Fixes

  • publish only source and dist folders (af08bcb)

This release is also available on:

v1.1.0

20 Sep 10:08
Compare
Choose a tag to compare

1.1.0 (2023-09-20)

Features

  • implement and expose EventSourceParserStream class (aac9c6f)

Bug Fixes

  • exclude pattern for tests (04fc73e)

This release is also available on:

v1.0.0

23 Mar 19:29
Compare
Choose a tag to compare

1.0.0 (2023-03-23)

⚠ BREAKING CHANGES

  • improve ESM/CJS compatibility, require node 14 or higher

Code Refactoring

  • improve ESM/CJS compatibility, require node 14 or higher (26d630e)

This release is also available on: