Skip to content

Commit 8efd119

Browse files
tabcatachingbrain
andauthored
feat: ipns libp2p fetch (#906)
Adds `@libp2p/fetch` functionality to the pubsub router of `helia/ipns`. The pubsub router will libp2p/fetch the latest local record from new pubsub peers if libp2p.services.fetch is found. https://specs.ipfs.tech/ipns/ipns-pubsub-router/#layering-persistence-onto-libp2p-pubsub Closes #893 --------- Co-authored-by: Alex Potsides <alex@achingbrain.net>
1 parent 397f2d8 commit 8efd119

3 files changed

Lines changed: 556 additions & 49 deletions

File tree

packages/ipns/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,21 @@
7575
"dependencies": {
7676
"@helia/interface": "^6.1.1",
7777
"@libp2p/crypto": "^5.1.7",
78+
"@libp2p/fetch": "^4.1.0",
7879
"@libp2p/interface": "^3.2.0",
7980
"@libp2p/kad-dht": "^16.1.0",
8081
"@libp2p/keychain": "^6.0.5",
8182
"@libp2p/logger": "^6.0.5",
83+
"@libp2p/peer-collections": "^7.0.14",
8284
"@libp2p/utils": "^7.0.5",
85+
"any-signal": "^4.2.0",
86+
"delay": "^7.0.0",
8387
"interface-datastore": "^9.0.2",
8488
"ipns": "^10.1.2",
8589
"multiformats": "^13.4.1",
8690
"progress-events": "^1.0.1",
8791
"protons-runtime": "^6.0.1",
92+
"race-signal": "^2.0.0",
8893
"uint8arraylist": "^2.4.8",
8994
"uint8arrays": "^5.1.0"
9095
},

0 commit comments

Comments
 (0)