Releases: mpetazzoni/sse.js
sse.js v2.5.0
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 theopen
event
sse.js v2.4.1
Patch release to bring the SSE constructor type definition back.
sse.js v2.4.0
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.
sse.js v2.3.0
This release provides support for the Last-Event-ID
header per the Server-Sent Events specification (#50).
sse.js v2.2.0
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.
sse.js v2.1.0
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.
sse.js v2.0.0
SSE
.js should now be usable as an ECMAScript module. This is the only change for this new major release.
sse.js v1.0.0
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.