From 039a83150c0851b095993bb6e8492ef4cb03bf5b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 19:02:49 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/bright-bottles-wait.md | 10 ---------- CHANGELOG.md | 11 +++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 .changeset/bright-bottles-wait.md diff --git a/.changeset/bright-bottles-wait.md b/.changeset/bright-bottles-wait.md deleted file mode 100644 index b42df32..0000000 --- a/.changeset/bright-bottles-wait.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"eventsource": major ---- - -- **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. diff --git a/CHANGELOG.md b/CHANGELOG.md index ace4346..3d2eb74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index 2f81f5b..6660bbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eventsource", - "version": "4.1.1", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "eventsource", - "version": "4.1.1", + "version": "5.0.0", "license": "MIT", "dependencies": { "eventsource-parser": "^4.0.0" diff --git a/package.json b/package.json index 675bbe1..790754c 100644 --- a/package.json +++ b/package.json @@ -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",