-
Notifications
You must be signed in to change notification settings - Fork 67
Upgrade to ipfs@0.41 #381
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
Upgrade to ipfs@0.41 #381
Conversation
@terichadbourne so I've created two PRs for us to see the differences between the two options that I see moving forward:
|
IMHO, I prefer the second option since it reduces the complexity of the code a lot. We need to consider that the last lessons of the tutorials would get much more complex with a lot of for loops if we don't use something like |
f5b70c8
to
bf86a3e
Compare
bf86a3e
to
b5ffffd
Compare
UpdateRegarding all the points mentioned in #385 (comment) I think I've addressed them all except for:
|
@terichadbourne ready for review, will address the "warning" message in another PR |
@alanshaw Thanks for offering to give this one a proof! Note that we'll also be adding a few callouts that appear only to folks who already visited the previous version of the affected tutorials, so what you're seeing is the text for new visitors. |
Just a quick drive by comment...I'm hesitant to use Also because, where possible, I'd like to avoid buffering content into memory because:
https://blog.ipfs.io/2020-02-01-async-await-refactor/#1-streaming-by-default |
Any sense of how long "eventually" will be @alanshaw? I'd argue that if "using a thing that lets you nicely turn stuff into an array" is the preferred/easier method we want to teach, then rather than rip out the Probably worth us both working through the content in full to see how it flows before we decide. |
Not at all. It is currently at stage 2.
That's fair, and I have no desire to make lessons harder, but if we're going to be turning stuff into an array and then looping over it we should consider just using a for loop instead (for example). I'll take a look tomorrow but I expect @zebateira has made sensible choices already. |
...there's also the small problem of |
@zebateira You had mentioned something about CID formatting in a chat recently. Just confirming the the format logged below is genuinely what's returned by IPFS, not you making it prettier or wrapping it in |
Gosh I missed that. I guess we can make it global just like ipfs. @terichadbourne thoughts? Given this I think we should remove the |
@terichadbourne What I mentioned is that I am formatting it to show |
Fixed! |
Co-Authored-By: Teri Chadbourne <terichadbourne@users.noreply.github.com>
@terichadbourne I think I went over all your suggestions now! Let me know if there's anything else missing. |
Co-Authored-By: Teri Chadbourne <terichadbourne@users.noreply.github.com>
To be the same as the MFS 10
Co-Authored-By: Teri Chadbourne <terichadbourne@users.noreply.github.com>
Co-Authored-By: Teri Chadbourne <terichadbourne@users.noreply.github.com>
Co-Authored-By: Teri Chadbourne <terichadbourne@users.noreply.github.com>
Closes #347