-
Notifications
You must be signed in to change notification settings - Fork 440
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
docs: add migration guide for libp2p@0.46.x #1883
Conversation
Adds migration guide detailing breaking changes in libp2p@0.46.x
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.
Should we also include the option to disable runOnConnectionOpen
for identify queries that was added in #1784 ?
|
||
**Before** | ||
|
||
```js |
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.
Going forward we should really utilize Typescript examples so that they can be compiled and thus reduce the probability of doc errors.
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.
Probably, though it'll involve a lot of boilerplate import
s.
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.
True, but otherwise we lose the benefit of the type safety. Perhaps we can begin with #1777 as a precedent.
I've omitted it here because it's not a breaking change, though I suppose it wouldn't hurt to include new features too. |
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.
We should also enable doc-check
on this doc if we are going to have TS snippets.
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
Adds migration guide detailing breaking changes in libp2p@0.46.x