Skip to content

Releases: rexxars/eventsource-parser

v3.0.6

29 Aug 16:19

Choose a tag to compare

3.0.6 (2025-08-29)

Bug Fixes

  • reintroduce explicit support for node 18 (d845cef)

This release is also available on:

v3.0.5

18 Aug 21:47

Choose a tag to compare

3.0.5 (2025-08-18)

Bug Fixes

  • types: use exact optional property types (a763097)

This release is also available on:

v3.0.3

25 Jun 19:47

Choose a tag to compare

3.0.3 (2025-06-25)

Bug Fixes

  • reintroduce legacy exports for stream module (6be2292)

This release is also available on:

v3.0.2

14 May 18:13

Choose a tag to compare

3.0.2 (2025-05-14)

Bug Fixes

  • drop legacy module export, use shared esm (26ccc1c)

This release is also available on:

v3.0.1

27 Mar 05:14

Choose a tag to compare

3.0.1 (2025-03-27)

Bug Fixes

  • optimize splitLines function (8952917)
  • throw helpful error if passing function to createParser() (4cd3a44)

This release is also available on:

v3.0.0

19 Oct 22:09

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

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

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

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

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: