Back to Explore

Azure/fetch-event-source

GitHub
1 watchersOpen source

Last release:

A TypeScript/JavaScript library that provides a better way to consume server-sent events (EventSource) using the Fetch API. It lets you use full fetch features such as custom method, headers, and request bodies, gives access to the response for validation, and provides control over retry strategy and connection behavior.

Project status

  • Maintenance status: Published updates appear infrequent since v2.0.1 (2021-04-25), which is over 5 years ago relative to 2026-09-10, suggesting the package is largely in maintenance mode for releases, though there has been an upstream push on 2026-02-28 that may indicate some ongoing work.
  • Update cadence (apparent): Major versions v1.0.0 to v1.0.2 came in late 2020, then v2.0.0 in 2020-12, and v2.0.1 in 2021-04. After that, no additional published updates are shown in the evidence, so cadence is effectively stalled for npm releases.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.1

    v2.0.1 primarily introduces support for ES module imports. The release notes only mention ESM import support, but the code diff also shows a significant packaging/build rework (new CJS and ESM output layouts, updated package.json entry points) plus some TypeScript/build dependency changes.

    BreakingFeatures
  • v2.0.0

    v2.0.0 rewrites the SSE response parsing to improve performance and better match the WHATWG EventSource stream interpretation rules. It also changes `EventSourceMessage` initialization semantics and `onmessage` dispatch behavior, including concatenation of multiple `data:` fields and updated handling of empty `id` values for reconnects.

    Breaking
  • v1.0.2

    Release v1.0.2 focuses on documentation updates and small parsing logic adjustments in src/parse.ts. The stated code change replaces truthy/falsy checks with explicit comparisons for specific values, to make the parsing behavior more predictable.

  • v1.0.1

    v1.0.1 makes the default response validation more permissive for `Content-Type` when using server-sent events. Instead of requiring an exact `text/event-stream` match, it now accepts `text/event-stream` with additional directives such as `charset` and `boundary`.

  • v1.0.0

    v1.0.0 is the initial release of this project. Since the release notes only state "Initial release", no specific features, fixes, breaking changes, or upgrade steps are documented here.