Back to Explore

Azure/fetch-event-source

GitHub
1 watchersOpen source

Last release: 4/25/2021

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

  • Likely still maintained to some degree, with the upstream having a recent push timestamp (2026-02-28), but the last published versioned updates in the provided history are from 2021 (v2.0.1), suggesting fewer formal updates since then.
  • Update/release cadence appears quiet in practice: from v2.0.1 (2021-04-25) to the last known published update is about 5 years, with earlier changes concentrated in 2020.

AI summary generated Today

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

Recent updates

  • v2.0.1

    4/25/2021

    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

    12/25/2020

    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

    11/27/2020

    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

    11/18/2020

    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

    11/18/2020

    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.