eventsource-parser
Advanced tools
Changelog
3.0.0 (2024-10-19)
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.ParsedEvent
type has been renamed to EventSourceMessage
and the type
attribute has been removed.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.
ParseEvent
type has been removed in favor of providing separate callbacks for each event type.retry
fields now have to be completely valid integers to be parsed.