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

feat: give SigV4 its own header formatter to avoid import of entire eventstream-codec package #1233

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Apr 4, 2024

Issue #, if available:
fixes #1159

Description of changes:
temporarily duplicates the header formatting functionality from evenstream-codec to signature-v4 so that sigv4 does not have to import the entire eventstream-codec package and transitively the large-ish aws-crypto packages.

when Node.js 14 support is dropped, our typescript config will support submodules (package.json:exports) and then the headerMarshaller functionality can be reunified as a single submodule of e.g. @smithy/core.

@kuhe kuhe requested review from a team as code owners April 4, 2024 15:38
@kuhe kuhe requested a review from haydenbaker April 4, 2024 15:38
@kuhe
Copy link
Contributor Author

kuhe commented Apr 4, 2024

this reduces bundle size as shown in #1159 and also reduces the number of files loaded in a non-bundled Node.js program by ~10 or 10% when not using an eventstream-featuring client.

@kuhe kuhe merged commit 9961e59 into smithy-lang:main Apr 4, 2024
7 checks passed
@dreamorosi
Copy link

Thank you for this PR, appreciate it!

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

Successfully merging this pull request may close these issues.

SignatureV4 module loads unneeded dependencies
3 participants