Skip to content

@stackline/sse 1.0.0

Choose a tag to compare

@alexandroit alexandroit released this 16 Aug 19:30
· 13 commits to main since this release

@stackline/sse 1.0.0

A zero-dependency Server-Sent Events toolkit covering the complete stream lifecycle: fetch, reconnect, parse, decode, encode, and serve.

Highlights

  • WHATWG-compatible incremental parser for strings and fragmented UTF-8 bytes
  • Async iteration over Response, Web Streams, async iterables, and iterables
  • Resumable Fetch client with retries, jitter, Retry-After, and connect, idle, and total timeouts
  • Injection-resistant text and JSON encoders
  • Backpressure-aware server helpers and heartbeat support
  • Migration-compatible exports for eventsource-parser and @microsoft/fetch-event-source
  • ESM, CommonJS, browser global, and TypeScript 3.9 through 7 declarations
  • Zero runtime dependencies and bounded parser memory by default

Verified

  • Node.js 14.17 through 24
  • Windows, macOS, Linux, Deno 1 and 2, and Bun
  • 69 runtime test groups with 100% statement, line, and function coverage
  • CodeQL, dependency audit, package linting, type-surface analysis, deterministic fuzzing, and clean-install smoke tests

The attached npm tarball is the exact artifact tested by GitHub Actions. SHA512SUMS and a CycloneDX SBOM are included for independent verification.

Documentation: https://alexandro.net/docs/vanilla/sse/