Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .changeset/bright-bottles-wait.md

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# 📓 Changelog

## 5.0.0

### Major Changes

- [#349](https://github.com/EventSource/eventsource/pull/349) [`b195e70`](https://github.com/EventSource/eventsource/commit/b195e70a5f54548eba80b067e0937fb1d37b8c85) Thanks [@rexxars](https://github.com/rexxars)! - - **BREAKING CHANGE:** The client now fails the connection, emitting an error without reconnecting, if the parser buffers 100 MB without receiving a valid, complete EventSource line. Configure a different limit with `maxBufferSize`; ideally, servers should emit smaller chunks or newlines more frequently.
- **BREAKING CHANGE:** Node.js 22.12 or later is now required. Older Node.js versions may still work, but are not supported or guaranteed going forward because Node.js 20 is out of LTS.
- **BREAKING CHANGE:** The separate CommonJS variant is no longer published. Node.js 22.12 and later transparently supports `require()` of ESM, so most CommonJS consumers should continue to work. This removes the dual-package hazard.
- **BREAKING CHANGE:** Chrome versions before 84, Safari before 15, Firefox before 105, Edge before 84, and JavaScript environments without private fields, methods, and accessors are no longer supported.
- **BREAKING CHANGE:** When both an `on*` property handler and an `addEventListener()` listener are registered for the same event, they now run in registration order instead of always running the `on*` handler first. Code that relied on the old order can observe a different callback sequence.
- Unref reconnection timers where the runtime supports it, so pending reconnects do not keep the process alive.

## 4.1.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eventsource",
"version": "4.1.1",
"version": "5.0.0",
"description": "WhatWG/W3C compliant EventSource client for Node.js and browsers",
"sideEffects": false,
"type": "module",
Expand Down