---
title: "eventsource 5.1.4 Breaking Changes on npm | Since.dev"
description: "What each eventsource release removed, renamed or changed: 21 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/eventsource
last_updated: 2026-12-04
---

# eventsource breaking changes

eventsource 5.1.4 (October 28, 2026) is its newest release with breaking changes. The first: Constructor copies URL objects, so later caller mutations no longer apply in eventsource 5.1.4. Every breaking API change we have recorded in eventsource on npm: 21 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.1.7`, released December 1, 2026. [Source repository](https://github.com/EventSource/eventsource)

Its 5.0.0 release requires Node.js 22.12 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [4.0.0](#v-4-0-0) to [5.1.4](#v-5-1-4): 19 breaking changes in 3 versions.

## eventsource 5.1.4 breaking changes

eventsource 5.1.4, released October 28, 2026: 1 breaking change.

- **Behavior changed**  

The URL passed to the constructor is now copied, so changes made to the caller's URL object afterward no longer change the exposed URL or the reconnection target. Code that relied on mutating the URL after construction must set a new URL... [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.1.4)

## eventsource 5.1.3 breaking changes

eventsource 5.1.3, released October 14, 2026: 1 breaking change.

- **Behavior changed**  

The release now accepts case variations of text/event-stream but rejects other MIME subtypes such as text/event-streaming. Check that your server sends text/event-stream exactly. [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.1.3)

## eventsource 5.0.0 breaking changes

eventsource 5.0.0, released August 10, 2026: 17 breaking changes.

- **Removed**  

Chrome before 84, Safari before 15, Firefox before 105, Edge before 84, and environments without private fields, methods, and accessors are no longer supported. [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.0.0)
- **Removed**  

The CommonJS variant was removed. Node.js 22.12 and later can require() the ESM build, so most CommonJS users should keep working. [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.0.0)
- **Removed**  

Node.js 22.12 or later is now required. Older versions may still work but are not supported or guaranteed. [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.0.0)
- **Behavior changed**  

When both an on\* property handler and an addEventListener() listener exist for the same event, they now run in the order they were registered, not always the on\* handler first. [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.0.0)
- **Behavior changed**  

The client now fails the connection with an error and does not reconnect if 100 MB is buffered without a valid, complete line. Configure a different limit with maxBufferSize. [github.com](https://github.com/EventSource/eventsource/releases/tag/v5.0.0)
- **Signature changed** `AddEventListenerOptions`  

Was interface AddEventListenerOptions extends EventListenerOptions_2; now interface AddEventListenerOptions extends EventListenerOptions. [npmjs.com](https://www.npmjs.com/package/eventsource/v/5.0.0)
- **Signature changed** `ErrorEvent.constructor`  

Was constructor(type: string, errorEventInitDict?: {message?: string | undefined code?: number | undefined}); now constructor(type: string, errorEventInitDict?: {message?: string | undefined; code?: number | undefined;}). [npmjs.com](https://www.npmjs.com/package/eventsource/v/5.0.0)
- **Signature changed** `EventListenerOptions`  

Was interface EventListenerOptions_2; now interface EventListenerOptions. [npmjs.com](https://www.npmjs.com/package/eventsource/v/5.0.0)
- **Signature changed** `EventSource`  

Was class EventSource_2 extends EventTarget; now class EventSource extends EventTarget. [npmjs.com](https://www.npmjs.com/package/eventsource/v/5.0.0)
- **Signature changed** `EventSource.addEventListener`  

Was addEventListener(type: string, listener: (this: EventSource_2, event: MessageEvent) => unknown, options?: boolean | AddEventListenerOptions): void addEventListener\<K extends keyof EventSourceEventMap>(type: K, listener: (this... [npmjs.com](https://www.npmjs.com/package/eventsource/v/5.0.0)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## eventsource 4.0.0 breaking changes

eventsource 4.0.0, released May 13, 2025: 2 breaking changes.

- **Removed**  

Node.js v18 is no longer supported because it is end-of-life. Upgrade to Node.js v20 or higher. [github.com](https://github.com/EventSource/eventsource/releases/tag/v4.0.0)
- **Removed** `FetchLikeInit`  

The FetchLikeInit type is gone. Use EventSourceFetchInit instead. [npmjs.com](https://www.npmjs.com/package/eventsource/v/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
