This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: ipns over pubsub #1559
Merged
Merged
feat: ipns over pubsub #1559
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
310c379
feat: ipns over pubsub
vasco-santos 4c40fc1
fix: updated according to the modification on the api
vasco-santos 66907b5
fix: first pass of code review
vasco-santos 3a4b139
fix: second pass of code review
vasco-santos 9bb8816
fix: code review for tests
vasco-santos 62f25a6
fix: remove libp2p-record for pubsub
vasco-santos b2755a0
fix: code review
hugomrdias 7edade9
fix: code review
vasco-santos fa5b652
chore: upgrade interface-ipfs-core
vasco-santos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,6 +166,11 @@ class IPFS extends EventEmitter { | |
this.log('EXPERIMENTAL pubsub is enabled') | ||
} | ||
if (this._options.EXPERIMENTAL.ipnsPubsub) { | ||
if (!this._options.EXPERIMENTAL.pubsub) { | ||
this.log('EXPERIMENTAL pubsub is enabled to use IPNS pubsub') | ||
this._options.EXPERIMENTAL.pubsub = true | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does go-ipfs do IPNS over PubSub as an experimental flag? Why not just one flag that enables all of PubSub There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Experimental features on Alpha software", how much more bleeding edge can you go 😅 |
||
|
||
this.log('EXPERIMENTAL IPNS pubsub is enabled') | ||
} | ||
if (this._options.EXPERIMENTAL.sharding) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
use smaller package
https://bundlephobia.com/result?p=lodash.get@4.4.2
vs
https://bundlephobia.com/result?p=dlv@1.1.2
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.
Cool, thanks! Will add
dlv
topackage.json
as well.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.
I'm fine with using
dlv
overloadash.get
but all other occurances oflodash.get
need to be replaced as well otherwise we're just adding more to our bundle.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.
If you agree, I can create other PR with all those occurrences changed to
dlv
.