generated from ChainSafe/typescript-lib-template
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: remove default stream close event (#81)
* fix!: remove default stream close event BREAKING CHANGE: there is no "end" event when stream is closing in case you depended on it The current implementation sends its own event when an async iterable ends, this is bad as the implemented SSE protocol doesn't expect that message, it's an application level thing. It should be up to the application to send such a message or just close the SSE stream. Remove that event (Possibly a breaking change if anyone relied on it). For example, that caused an error in our project from our handler receving that message and crashing cause it's an unknown message type whose body is not even JSON as our application expects. Contributed on behalf of [Swimm](https://swimm.io/) * fix tests Signed-off-by: Marin Petrunic <[email protected]> * update ci nodejs version Signed-off-by: Marin Petrunic <[email protected]> --------- Signed-off-by: Marin Petrunic <[email protected]> Co-authored-by: Marin Petrunic <[email protected]>
- Loading branch information
1 parent
3495dbc
commit 311c920
Showing
4 changed files
with
34 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "fastify-sse-v2", | ||
"version": "3.1.2", | ||
"packageManager": "[email protected]", | ||
"description": "Fastify plugin for sending server side events.", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters