Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eventsource-parser

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventsource-parser - npm Package Versions

2

3.0.0

Diff

Changelog

Source

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.

BREAKING CHNAGE: 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)
rexxars
published 3.0.0-beta.0 •

rexxars
published 2.0.1 •

Changelog

Source

2.0.1 (2024-08-07)

Bug Fixes

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

Changelog

Source

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)
rexxars
published 1.1.2 •

Changelog

Source

1.1.2 (2024-02-13)

Bug Fixes

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

Changelog

Source

1.1.1 (2023-09-20)

Bug Fixes

  • publish only source and dist folders (af08bcb)
rexxars
published 1.1.0 •

Changelog

Source

1.1.0 (2023-09-20)

Features

  • implement and expose EventSourceParserStream class (aac9c6f)

Bug Fixes

  • exclude pattern for tests (04fc73e)
rexxars
published 1.0.0 •

Changelog

Source

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)
rexxars
published 0.1.0 •

Changelog

Source

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)
rexxars
published 0.0.5 •

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc