-
Notifications
You must be signed in to change notification settings - Fork 587
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
[Poll]Universal Clients or Runtime Clients? #372
Comments
The poll 👆allows multiple votes and should be updated The option doesn't seem to be available apex/gh-polls#38 |
You might have already considered this, and I can't speak to how easy it would be to maintain, but have you considered doing both? The Slack packages on npm are a great example of a package structured with this kind of thinking in mind: They originally had just a They've since refactored into three packages: However, they've also got a fourth package: It's literally a single file that re-exports a bunch of stuff, with some renaming when needed. They're also written in TypeScript, and I've not had any issues w/ them i.e type conflicts. Overall, in an ideal world I think it'd be super cool to have both, just b/c of the easy of use factor.
That's my only issue w/ having a package that contains both node + browser versions: I currently just use In saying, I imagine regardless you'd provide the |
Hi @G-Rath, Thank you for your insight. I like the idea of have a monolithic package that re-export all the clients packages. Regarding deploying to lambda with rudimentary bundler, since the code size will never be bigger than V2 SDK in theory(because V2 is already a runtime-algonositic library). It should be fine. |
Resolving as we decided to go ahead with Universal Clients |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
We are discussing the possibility to ship only universal packages (like
@aws-sdk/client-*
) instead of separated service clients for runtime like@aws-sdk/client-*-node
and@aws-sdk/client-*-browser
. It would contain acjs
package for Nodejs runtime and anesm
distribution for browser runtime. The universal package will have dependencies from both Nodejs-specific clients and browser-specific clients.What change would happen after this change:
Readable | Blob
)Please select ONE option below to show us your preference and comment the reasons for your choice below.
The text was updated successfully, but these errors were encountered: