Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sse): detect buffering and warn user #1256

Merged
merged 9 commits into from
Jan 31, 2025
Merged

Conversation

DayTF
Copy link
Contributor

@DayTF DayTF commented Jan 30, 2025

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

@DayTF DayTF force-pushed the fix/detect-sse-buffering branch from 6323305 to bbc4d7e Compare January 30, 2025 15:07
eventSource.addEventListener(
'open',
() => eventSource.addEventListener('open', () => this.onEventOpenAgain()),
{ once: true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you change it to once here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prepare a migration to EventSource@v3, as it is removed from that version
EventSource@v3 is necessary for Deno runtime, which some users/lumberjacks have shown interest into

Copy link
Contributor

@realSpok realSpok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ✅ PR title

  • ✅ PR linked to the clickup task

  • ✅ The PR tackle one subject only

  • ✅ Destination branch

  • ✅ Code review

    • ℹ️ Use pure functions when possible
    • ✅ Performance concerns
    • ✅ Security concerns
    • ✅ Check that nothing introduces a breaking change, including the types
  • ✅ Automatic tests

    • ✅ Unit tests
    • ⤬ Integration tests
  • ✅ Manual tests

    • ✅ Test the functionality
    • ✅ Test error cases

Copy link

codeclimate bot commented Jan 31, 2025

Code Climate has analyzed commit 5df2e60 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (98% is the threshold).

This pull request will bring the total coverage in the repository to 97.2%.

View more on Code Climate.

@DayTF DayTF merged commit dc4fdf4 into main Jan 31, 2025
22 checks passed
@DayTF DayTF deleted the fix/detect-sse-buffering branch January 31, 2025 10:05
forest-bot added a commit that referenced this pull request Jan 31, 2025
## [1.13.7](https://github.com/ForestAdmin/agent-nodejs/compare/[email protected]@1.13.7) (2025-01-31)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.12.25 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.13.7 🎉

The release is available on [email protected]

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Jan 31, 2025
## [1.58.5](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-31)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))

### Features

* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
forest-bot added a commit that referenced this pull request Jan 31, 2025
## [1.36.7](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-31)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))

### Features

* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.58.5 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.36.7 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.4.4 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.61.3](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.1.50](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.61.3 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.10.1](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
forest-bot added a commit that referenced this pull request Feb 5, 2025
# [1.6.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.11.7](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.16.7](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
forest-bot added a commit that referenced this pull request Feb 5, 2025
# [1.48.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.50 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.4.18](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.1.24](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.10.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Feb 5, 2025
## [1.4.8](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-02-05)

### Bug Fixes

* **sse:** detect buffering and warn user ([#1256](#1256)) ([dc4fdf4](dc4fdf4))
* **user-permission:** don't cache rejected promises ([#1248](#1248)) ([10bd993](10bd993))

### Features

* add environment and project name in caller ([#1200](#1200)) ([819f5f6](819f5f6))
* **mongoose:** allow to enable debug mode ([#1251](#1251)) ([db36f93](db36f93))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.6.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants