Closed ibc closed 9 months ago
Since this is a breaking change for Rust API anyway, maybe rename
announced_ip
toannounced_hostname
since it is not guaranteed to always be an IP? Makes sense otherwise.
It should be announced_address
instead (to match the naming used in WebRTC).
However I'd prefer if we don't rename it in Rust now. It would be a bit unexpected to have announced_ip
in Node and announced_address
in Rust. Do you mind if we do this in the future in a new version with breaking changes?
However I'd prefer if we don't rename it in Rust now. It would be a bit unexpected to have announced_ip in Node and announced_address in Rust. Do you mind if we do this in the future in a new version with breaking changes?
We can also rename it in Node.js, but also keep the old field for backwards compatibility reasons. Ugly, I know, but we can get people upgrade to it already and maybe even print warnings in logs of those who didn't upgrade to the new field name.
Not critical or a blocker of course.
We can also rename it in Node.js, but also keep the old field for backwards compatibility reasons. Ugly, I know, but we can get people upgrade to it already and maybe even print warnings in logs of those who didn't upgrade to the new field name.
This deserves a separate story since it's huger than expected:
Fixes #1321
As explained in the ticket, only Rust changes are needed since in Node (and Worker)
announcedIp
was already defined as optional string.