-
Notifications
You must be signed in to change notification settings - Fork 320
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
Drop eventsource
polyfill to let users opt in to streaming support
#901
Conversation
Size Change: -1.68 MB (-15%) 👏 Total Size: 9.76 MB
|
@Shaptic Thanks for flagging! I just installed this locally and ran through some smoke tests. Freighter builds and runs as expected 🎉 |
c9daa9b
to
06699dd
Compare
Weekly reminder that merging this would make me a very happy man My life is pain This is the remedy 🎵 |
Also noting that I'd like to have this line considered for addition |
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat's wrong with native code?Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs. Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings. What is filesystem access?Accesses the file system, and could potentially read sensitive data. If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
It's a huge breaking change so I don't want to merge it just yet 😅 would rather have it alongside other big stuff |
If it ain't broke... upgrading to 3 seems like a pain in the ass for little benefit. But I've added the version lock as you requested! |
Done formally as part of v13.0.0 |
What
This omits
eventsource
by default from the bundle so that users can opt in specifically if they want streaming support.Why
This module is quite problematic in certain environments, and it unnecessarily limits the developer experience for those that do not care about streaming support (e.g. just not needing it, or being Soroban-only).
Testing
Confirmation would be deeply appreciated, as all I did was test with a basic example Node project:
Then, we can see the difference before and after installing
eventsource
:The third warning line is included in case the user does not have an
onerror
handler for their stream, to ensure that the error is regularly visible.e.g. @aristidesstaffieri and @piyalbasu, could you check that this branch works in Freighter?