-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: Add attachments API #5004
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
ed65564
Mostly there
timfish 8db6659
Fix tests
timfish 0dd456f
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish 7388581
Fix test spy and add implementation for creating attachment item
timfish 8d70b13
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish dcef2ab
Load attachments from paths in node
timfish dbd70d1
Few more minor fixes and additions
timfish 9325e24
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish 1398bfc
Parse binary envelopes in tests
timfish 23e1f90
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish 93960c6
Change `_attachmentsFromScope` return type
timfish 23f4b29
Much improved
timfish fc3303c
More simplify
timfish 68e077a
Final newline is optional
timfish 735812e
Fix gatsby test
timfish fe7f49f
Fix node v8/v10
timfish 22a8f07
Fix node session tests
timfish 242292f
Don't override filename if it's supplied
timfish 6d7e979
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish d6a8e57
Improve tests
timfish 0979245
Improve types
timfish 6cc6d60
Couple more minor fixes
timfish 232b75b
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish 99446c7
More type improve
timfish 6c404f1
Spread headers
timfish 2e85356
Remove node attachment loading special case
timfish 2d25f86
Remove the need for custom jest env
timfish 1731945
Fix gatsby tests
timfish 250260b
Pass through hint
timfish 723bfdb
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish 21a04d8
Lint
timfish 870ae81
Merge remote-tracking branch 'upstream/7.x' into feat/attachments
timfish be927c8
Remove erroneous changes
timfish c8d43eb
Review changes
timfish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we changing the func signature here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
serializeEnvelope
now returnsstring | Uint8Array
. In this case it will never actually be aUint8Array
because there's no attachment but bothsendBeacon
andfetch
takebody: string | Uint8Array
so it seemed the best thing to do.