The parser now takes an object of callbacks instead of an onParse callback. This means you do not have to check the type of the event in the onEvent callback, but instead provide separate callbacks for each event type.
The ParsedEvent type has been renamed to EventSourceMessage and the type attribute has been removed.
The EventSourceCallback type has been removed in favor of the ParserCallbacks interface.
The ReconnectInterval type has been removed in favor of providing the interval directly to the onRetry callback.
The ParseEvent type has been removed in favor of providing separate callbacks for each event type.
The parser has been rewritten to be more specification compliant. Certain rare edge cases may now be handled differently. Mixed CRLF and LF line endings will now be handled correctly. retry fields now have to be completely valid integers to be parsed.
Features
provide onError, onComment, and onRetry callbacks (#15) (c544729)
The parser now takes an object of callbacks instead of an onParse callback. This means you do not have to check the type of the event in the onEvent callback, but instead provide separate callbacks for each event type.
The ParsedEvent type has been renamed to EventSourceMessage and the type attribute has been removed.
The EventSourceCallback type has been removed in favor of the ParserCallbacks interface.
BREAKING CHNAGE: The ReconnectInterval type has been removed in favor of providing the interval directly to the onRetry callback.
The ParseEvent type has been removed in favor of providing separate callbacks for each event type.
The parser has been rewritten to be more specification compliant. Certain rare edge cases may now be handled differently. Mixed CRLF and LF line endings will now be handled correctly. retry fields now have to be completely valid integers to be parsed.
Features
provide onError, onComment, and onRetry callbacks (#15) (c544729)
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 merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/12538
**Author:** [@dependabot[bot]](https://github.com/apps/dependabot)
**Created:** 4/7/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `dependabot/npm_and_yarn/dev/eventsource-parser-3.0.1`
---
### 📝 Commits (1)
- [`49ea6d2`](https://github.com/open-webui/open-webui/commit/49ea6d2828b7605f42755ac4223e17ca993a0962) build(deps): bump eventsource-parser from 1.1.2 to 3.0.1
### 📊 Changes
**2 files changed** (+7 additions, -6 deletions)
<details>
<summary>View changed files</summary>
📝 `package-lock.json` (+6 -5)
📝 `package.json` (+1 -1)
</details>
### 📄 Description
Bumps [eventsource-parser](https://github.com/rexxars/eventsource-parser) from 1.1.2 to 3.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/rexxars/eventsource-parser/releases">eventsource-parser's releases</a>.</em></p>
<blockquote>
<h2>v3.0.1</h2>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v3.0.0...v3.0.1">3.0.1</a> (2025-03-27)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>optimize <code>splitLines</code> function (<a href="https://github.com/rexxars/eventsource-parser/commit/8952917a6f5b3d8c97175d00980538edc96b611d">8952917</a>)</li>
<li>throw helpful error if passing function to <code>createParser()</code> (<a href="https://github.com/rexxars/eventsource-parser/commit/4cd3a443f21c441be29e524637a3a603d4425a12">4cd3a44</a>)</li>
</ul>
<hr />
<p>This release is also available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/eventsource-parser/v/3.0.1"><code>npm package (@latest dist-tag)</code></a></li>
</ul>
<h2>v3.0.0</h2>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v2.0.1...v3.0.0">3.0.0</a> (2024-10-19)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li>The parser now takes an object of callbacks instead of an <code>onParse</code> callback. This means you do not have to check the type of the event in the <code>onEvent</code> callback, but instead provide separate callbacks for each event type.</li>
<li>The <code>ParsedEvent</code> type has been renamed to <code>EventSourceMessage</code> and the <code>type</code> attribute has been removed.</li>
<li>The <code>EventSourceCallback</code> type has been removed in favor of the <code>ParserCallbacks</code> interface.</li>
<li>The <code>ReconnectInterval</code> type has been removed in favor of providing the interval directly to the <code>onRetry</code> callback.</li>
<li>The <code>ParseEvent</code> type has been removed in favor of providing separate callbacks for each event type.</li>
<li>The parser has been rewritten to be more specification compliant. Certain <em>rare</em> edge cases may now be handled differently. Mixed CRLF and LF line endings will now be handled correctly. <code>retry</code> fields now have to be completely valid integers to be parsed.</li>
</ul>
<h3>Features</h3>
<ul>
<li>provide <code>onError</code>, <code>onComment</code>, and <code>onRetry</code> callbacks (<a href="https://redirect.github.com/rexxars/eventsource-parser/issues/15">#15</a>) (<a href="https://github.com/rexxars/eventsource-parser/commit/c54472901ddf0674b38deb164013feade31d9869">c544729</a>)</li>
</ul>
<h3>Migration guide</h3>
<p>See migration guide: <a href="https://github.com/rexxars/eventsource-parser/blob/main/MIGRATE-v3.md">https://github.com/rexxars/eventsource-parser/blob/main/MIGRATE-v3.md</a></p>
<hr />
<p>This release is also available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/eventsource-parser/v/3.0.0"><code>npm package (@latest dist-tag)</code></a></li>
</ul>
<h2>v2.0.1</h2>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v2.0.0...v2.0.1">2.0.1</a> (2024-08-07)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>include root-level legacy export in published files (<a href="https://github.com/rexxars/eventsource-parser/commit/c814b4bc03fc0f72729a88a829c33e243c2c3cc8">c814b4b</a>)</li>
</ul>
<hr />
<p>This release is also available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/eventsource-parser/v/2.0.1"><code>npm package (@latest dist-tag)</code></a></li>
</ul>
<h2>v2.0.0</h2>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v1.1.2...v2.0.0">2.0.0</a> (2024-08-07)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rexxars/eventsource-parser/blob/main/CHANGELOG.md">eventsource-parser's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v3.0.0...v3.0.1">3.0.1</a> (2025-03-27)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>optimize <code>splitLines</code> function (<a href="https://github.com/rexxars/eventsource-parser/commit/8952917a6f5b3d8c97175d00980538edc96b611d">8952917</a>)</li>
<li>throw helpful error if passing function to <code>createParser()</code> (<a href="https://github.com/rexxars/eventsource-parser/commit/4cd3a443f21c441be29e524637a3a603d4425a12">4cd3a44</a>)</li>
</ul>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v2.0.1...v3.0.0">3.0.0</a> (2024-10-19)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li>The parser now takes an object of callbacks instead of an <code>onParse</code> callback. This means you do not have to check the type of the event in the <code>onEvent</code> callback, but instead provide separate callbacks for each event type.</li>
<li>The <code>ParsedEvent</code> type has been renamed to <code>EventSourceMessage</code> and the <code>type</code> attribute has been removed.</li>
<li>The <code>EventSourceCallback</code> type has been removed in favor of the <code>ParserCallbacks</code> interface.</li>
</ul>
<p>BREAKING CHNAGE: The <code>ReconnectInterval</code> type has been removed in favor of providing the interval directly to the <code>onRetry</code> callback.</p>
<ul>
<li>The <code>ParseEvent</code> type has been removed in favor of providing separate callbacks for each event type.</li>
<li>The parser has been rewritten to be more specification compliant. Certain <em>rare</em> edge cases may now be handled differently. Mixed CRLF and LF line endings will now be handled correctly. <code>retry</code> fields now have to be completely valid integers to be parsed.</li>
</ul>
<h3>Features</h3>
<ul>
<li>provide <code>onError</code>, <code>onComment</code>, and <code>onRetry</code> callbacks (<a href="https://redirect.github.com/rexxars/eventsource-parser/issues/15">#15</a>) (<a href="https://github.com/rexxars/eventsource-parser/commit/c54472901ddf0674b38deb164013feade31d9869">c544729</a>)</li>
</ul>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v2.0.0...v2.0.1">2.0.1</a> (2024-08-07)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>include root-level legacy export in published files (<a href="https://github.com/rexxars/eventsource-parser/commit/c814b4bc03fc0f72729a88a829c33e243c2c3cc8">c814b4b</a>)</li>
</ul>
<h2><a href="https://github.com/rexxars/eventsource-parser/compare/v1.1.2...v2.0.0">2.0.0</a> (2024-08-07)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li>BREAKING: minimum node.js version is now v18</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>BREAKING: minimum node.js version is now v18 (<a href="https://github.com/rexxars/eventsource-parser/commit/d652333674e6e26ecd23e0b85cc83f57e06d894e">d652333</a>)</li>
<li>enable legacy exports (<a href="https://github.com/rexxars/eventsource-parser/commit/b88e02cdfb3cf2e503eb9dc51e8115121fee7eea">b88e02c</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/25417c04ab286f418287359a7d87c4ceb49c7e89"><code>25417c0</code></a> chore(release): 3.0.1 [skip ci]</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/ddb496513cf721e2803dd18386e01d5c9ad58ea6"><code>ddb4965</code></a> ci: always run tests on bun</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/dc8b9886a06b694d72567c7fa6bba7742dc3c954"><code>dc8b988</code></a> refactor: use native class prop assignment</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/8952917a6f5b3d8c97175d00980538edc96b611d"><code>8952917</code></a> fix: optimize <code>splitLines</code> function</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/4cd3a443f21c441be29e524637a3a603d4425a12"><code>4cd3a44</code></a> fix: throw helpful error if passing function to <code>createParser()</code></li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/07d564bdf6e5ae32457030881179ff2f6408c93e"><code>07d564b</code></a> chore(release): 3.0.0 [skip ci]</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/c54472901ddf0674b38deb164013feade31d9869"><code>c544729</code></a> feat!: provide <code>onError</code>, <code>onComment</code>, and <code>onRetry</code> callbacks (<a href="https://redirect.github.com/rexxars/eventsource-parser/issues/15">#15</a>)</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/0436c7e972c3c89a42d1ed1e20ecc68214e05c3e"><code>0436c7e</code></a> docs: link to eventsource-client</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/fe2896faff787058fae1b40f0354fe06c3a93771"><code>fe2896f</code></a> ci: add optional testing of deno and bun</li>
<li><a href="https://github.com/rexxars/eventsource-parser/commit/9dddec8e8d14acf6ced111c54c8ed6b5715d69c7"><code>9dddec8</code></a> ci: rename ci workflow to test</li>
<li>Additional commits viewable in <a href="https://github.com/rexxars/eventsource-parser/compare/v1.1.2...v3.0.1">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
</details>
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12538
Author: @dependabot[bot]
Created: 4/7/2025
Status: ❌ Closed
Base:
dev← Head:dependabot/npm_and_yarn/dev/eventsource-parser-3.0.1📝 Commits (1)
49ea6d2build(deps): bump eventsource-parser from 1.1.2 to 3.0.1📊 Changes
2 files changed (+7 additions, -6 deletions)
View changed files
📝
package-lock.json(+6 -5)📝
package.json(+1 -1)📄 Description
Bumps eventsource-parser from 1.1.2 to 3.0.1.
Release notes
Sourced from eventsource-parser's releases.
... (truncated)
Changelog
Sourced from eventsource-parser's changelog.
Commits
25417c0chore(release): 3.0.1 [skip ci]ddb4965ci: always run tests on bundc8b988refactor: use native class prop assignment8952917fix: optimizesplitLinesfunction4cd3a44fix: throw helpful error if passing function tocreateParser()07d564bchore(release): 3.0.0 [skip ci]c544729feat!: provideonError,onComment, andonRetrycallbacks (#15)0436c7edocs: link to eventsource-clientfe2896fci: add optional testing of deno and bun9dddec8ci: rename ci workflow to testDependabot 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.