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
On this page
Latest version 5.1.7, released December 1, 2026. Source repository
Its 5.0.0 release requires Node.js 22.12 or later. Node.js end of life dates.
eventsource 5.1.4 breaking changes
- 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
eventsource 5.1.3 breaking changes
- 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
eventsource 5.0.0 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 - 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 - Removed
Node.js 22.12 or later is now required. Older versions may still work but are not supported or guaranteed. github.com - 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 - 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 - Signature changed
AddEventListenerOptions
Was interface AddEventListenerOptions extends EventListenerOptions_2; now interface AddEventListenerOptions extends EventListenerOptions. npmjs.com - 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 - Signature changed
EventListenerOptions
Was interface EventListenerOptions_2; now interface EventListenerOptions. npmjs.com - Signature changed
EventSource
Was class EventSource_2 extends EventTarget; now class EventSource extends EventTarget. npmjs.com - 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
And 7 more in this version. Sign up to see every change
eventsource 4.0.0 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 - Removed
FetchLikeInit
The FetchLikeInit type is gone. Use EventSourceFetchInit instead. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.