-
Notifications
You must be signed in to change notification settings - Fork 64
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 webtransport component #271
Conversation
@@ -346,6 +346,13 @@ describe('variants', () => { | |||
expect(addr.toString()).to.equal(str) | |||
}) | |||
|
|||
it('webtransport', () => { | |||
const str = '/ip6/2001:8a0:7ac5:4201:3ac9:86ff:fe31:7095/udp/4001/quic/webtransport' |
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.
Is WebTransport always ipv6? If not, please add a ipv4 test as well to make future selves grateful to current selves.
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.
Honest question, does this matter? Is it possible to get parsing failure if an earlier protocol is different? My understanding is as far as this library is concerned it doesn't care if the multiaddr is valid or not. It just parses the multiaddr into parts.
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.
Is it possible to get parsing failure if an earlier protocol is different?
It's hard to say for sure now without a test and impossible to say for the future.
IPv4 is likely to be the most common input so it seems reasonable to have a test that exercises it, which would also then be consistent with the other tests in the file.
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.
LGTM, just needs an ipv4 test alongside the ipv6 one.
## [10.5.0](v10.4.3...v10.5.0) (2022-09-20) ### Features * Add webtransport component ([#271](#271)) ([210f156](210f156))
🎉 This PR is included in version 10.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This adds the webtransport protocol here