Skip to content

fix(deps-dev): bump eventsource-parser from 3.1.1 to 4.1.3 - #629

Merged
christso merged 2 commits into
mainfrom
dependabot/bun/eventsource-parser-4.1.3
Nov 16, 2026
Merged

christso merged 2 commits into
mainfrom
dependabot/bun/eventsource-parser-4.1.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps eventsource-parser from 3.1.1 to 4.1.3.

Release notes

Sourced from eventsource-parser's releases.

v4.1.3

Patch Changes

  • #47 06e67ff Thanks @​Claire-ovo! - Avoid quadratic scanning of chunks containing many CR-terminated lines or a distant CR after LF-terminated lines.

v4.1.2

Patch Changes

v4.1.1

Patch Changes

  • #41 dd82654 Thanks @​sahiinthehood! - Handle leading byte-order marks across empty input chunks and split raw UTF-8 BOM chunks so the first event is not dropped.

v4.1.0

Minor Changes

  • #39 0482048 Thanks @​rexxars! - Added an onId callback that reports ID fields when an event block ends, including blocks without data.

v4.0.0

Major Changes

  • #33 39cf365 Thanks @​rexxars! - Require Node.js 22.12 or higher, drop the CommonJS build, and discard invalid lines instead of buffering them

    Breaking changes

    • Node.js 18 and 20 are no longer supported. engines now requires >=22.12, and the browserslist target moved from node >= 18 to node >= 22.12. Older versions may keep working, but they are no longer tested or guaranteed.
    • The CommonJS build has been removed. The main field and the require export conditions are gone, so the package resolves to ./dist/index.js and ./dist/stream.js only. Node 22.12 and above supports require(esm) transparently, so require('eventsource-parser') continues to work there.
    • The root stream.js file has been removed. It re-exported ./dist/stream.cjs for React Native and other bundlers without package exports support. Import eventsource-parser/stream instead, and make sure your bundler resolves the exports field.
    • Invalid lines are now discarded as soon as the parser can tell they cannot become a valid SSE field, rather than being buffered until the line terminator arrives. onError is not called for these, and no line, field, or value is retained. Only lines that are complete when found to be invalid still produce a ParseError with type: 'unknown-field'. This also means reset({consume: true}) no longer reports pending data that was already discarded.
    • Partial comment lines (starting with :) are only buffered when an onComment callback is configured. Without one, they are discarded like any other line the parser has no use for.

    Other changes

    • A leading byte order mark is now stripped whether it arrives as a decoded U+FEFF (for example from a TextDecoder created with ignoreBOM) or as the raw three byte 0xEF 0xBB 0xBF sequence. Previously only the raw form was handled.
    • The README documented an invalid-field error type that the parser never emitted. The ErrorType union is unchanged; the documentation now correctly refers to unknown-field.
Changelog

Sourced from eventsource-parser's changelog.

4.1.3

Patch Changes

  • #47 06e67ff Thanks @​Claire-ovo! - Avoid quadratic scanning of chunks containing many CR-terminated lines or a distant CR after LF-terminated lines.

4.1.2

Patch Changes

4.1.1

Patch Changes

  • #41 dd82654 Thanks @​sahiinthehood! - Handle leading byte-order marks across empty input chunks and split raw UTF-8 BOM chunks so the first event is not dropped.

4.1.0

Minor Changes

  • #39 0482048 Thanks @​rexxars! - Added an onId callback that reports ID fields when an event block ends, including blocks without data.

4.0.0

Major Changes

  • #33 39cf365 Thanks @​rexxars! - Require Node.js 22.12 or higher, drop the CommonJS build, and discard invalid lines instead of buffering them

    Breaking changes

    • Node.js 18 and 20 are no longer supported. engines now requires >=22.12, and the browserslist target moved from node >= 18 to node >= 22.12. Older versions may keep working, but they are no longer tested or guaranteed.
    • The CommonJS build has been removed. The main field and the require export conditions are gone, so the package resolves to ./dist/index.js and ./dist/stream.js only. Node 22.12 and above supports require(esm) transparently, so require('eventsource-parser') continues to work there.
    • The root stream.js file has been removed. It re-exported ./dist/stream.cjs for React Native and other bundlers without package exports support. Import eventsource-parser/stream instead, and make sure your bundler resolves the exports field.
    • Invalid lines are now discarded as soon as the parser can tell they cannot become a valid SSE field, rather than being buffered until the line terminator arrives. onError is not called for these, and no line, field, or value is retained. Only lines that are complete when found to be invalid still produce a ParseError with type: 'unknown-field'. This also means reset({consume: true}) no longer reports pending data that was already discarded.
    • Partial comment lines (starting with :) are only buffered when an onComment callback is configured. Without one, they are discarded like any other line the parser has no use for.

    Other changes

    • A leading byte order mark is now stripped whether it arrives as a decoded U+FEFF (for example from a TextDecoder created with ignoreBOM) or as the raw three byte 0xEF 0xBB 0xBF sequence. Previously only the raw form was handled.
    • The README documented an invalid-field error type that the parser never emitted. The ErrorType union is unchanged; the documentation now correctly refers to unknown-field.
Commits
  • f46b557 chore: version packages (#49)
  • 2098588 ci: declare npm as the package manager (#48)
  • 06e67ff perf: avoid quadratic scanning of CR-containing chunks (#47)
  • 8877059 chore: upgrade dev dependencies (#46)
  • dd51dd3 chore: version packages (#45)
  • 12fc382 fix: enforce buffer limits while processing a chunk (#44)
  • 1115b1c docs: improve constrast on readme badges
  • a7885df chore: version packages (#43)
  • c372920 refactor: handle BOM over multiple leading chunks
  • dd82654 fix: preserve leading BOM after empty input chunks
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [eventsource-parser](https://github.com/rexxars/eventsource-parser) from 3.1.1 to 4.1.3.
- [Release notes](https://github.com/rexxars/eventsource-parser/releases)
- [Changelog](https://github.com/rexxars/eventsource-parser/blob/main/CHANGELOG.md)
- [Commits](rexxars/eventsource-parser@v3.1.1...v4.1.3)

---
updated-dependencies:
- dependency-name: eventsource-parser
  dependency-version: 4.1.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7407984
Status: ✅  Deploy successful!
Preview URL: https://307b7eeb.allagents.pages.dev
Branch Preview URL: https://dependabot-bun-eventsource-p.allagents.pages.dev

View logs

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 16, 2026
@christso
christso merged commit 26f58d9 into main Nov 16, 2026
10 checks passed
@christso
christso deleted the dependabot/bun/eventsource-parser-4.1.3 branch November 16, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant