Mpetazzoni Sse.js Versions Save

A flexible Server-Sent Events EventSource polyfill for Javascript

v2.5.0

1 week ago

This release adds more information about the response in the open and error events:

  • the HTTP status code of the response is provided in both as the event's responseCode property
  • the response headers of a successful request are provided as the headers property of the open event

v2.4.1

3 months ago

Patch release to bring the SSE constructor type definition back.

v2.4.0

3 months ago

This releases rebuilds the types definitions, including the missing definition of the start option.

[!WARNING] Do not use this release in a TypeScript project; it mistakely removed the type definition for the SSE constructor. Use v2.4.1 instead.

v2.3.0

3 months ago

This release provides support for the Last-Event-ID header per the Server-Sent Events specification (#50).

v2.2.0

5 months ago

This release includes further bug fixes in event parsing for improved compliance with the SSE specification, and additional fixes to the TypeScript type definitions for the sse.js library.

v2.1.0

6 months ago

This new release of SSE fixes an important event parsing bug when the event stream uses \r\n as the event separator (see #17). This should dramatically improve the compatibility of SSE.js with server-side SSE frameworks.

v2.0.0

7 months ago

SSE.js should now be usable as an ECMAScript module. This is the only change for this new major release.

v1.0.0

9 months ago

First major release of sse.js, offering SSE as a fully-compatible polyfill for EventSource.

See https://www.npmjs.com/package/sse.js/v/1.0.0 for more information.