-
Notifications
You must be signed in to change notification settings - Fork 12
feat: (BREAKING CHANGE) new record definition #8
feat: (BREAKING CHANGE) new record definition #8
Conversation
(Don't know why, but I do not have permissions for requesting review in here) |
The right teams probably weren't added to the repo. @libp2p/dx can you make sure the right teams are added to this repo? |
Team @libp2p/javascript-team has been added with |
// converted to bytes for JavaScript | ||
optional bytes author = 3; | ||
|
||
// optional bytes author = 3; |
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 there are reason for keeping these lines in here? People can always use git history to look up the changes.
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.
Well, I personally left them as a reason for keeping timeReceived with identifier 5.
optional string timeReceived = 5
In go side, they removed it first, but then reverted to comment it.
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.
Bah, okay, fair enough.
Since this is a breaking change, do we know what the impact of this is on js-ipfs since it's the primary package level consumer downstream? |
We will need to go through every single module using this module and:
I think that in this case, it is better to create the breaking change instead of maintaining all the current logic and just change the logic here, as we would have unexpected behaviors from what consumers expect. Here is the list of the modules using this: https://www.npmjs.com/package/libp2p-record Two of those modules are already deprecated, so we will only have to modify 3 of them |
Yeah, I agree, and this looks good. |
The commit message format doesn't really conform to the JS Guidelines. The "breaking change" information should not be in the header (though it could be I guess), but there should be a section in the body. The section from the body will then also show up in the changelog, which I think is important. The commit message should contain all the information on what this breaking change is about and how you need to change your code. A good start is already the original pull request message. |
Thanks @vmx I will add to the commit message body the breaking change information, when merging it. |
BREAKING CHANGE: having the libp2p-record protobuf definition compliant with go-libp2p-record. Author and signature were removed.
e3e7d2f
to
6b108ad
Compare
PR for having the
libp2p-record
protobuf definition compliant with go-libp2p-record.At first,
go-libp2p-record
was compliant with this. However, in the meantime it was changed in the following commits:All in all,
author
andsignature
were removed, as well as all the logic inherent to the signature.Note: this is a breaking change