Compare commits
4 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 3ba37bcf15 | |
Derrick Hammer | 7e023efa87 | |
Derrick Hammer | a61b0d4771 | |
Derrick Hammer | 3befddd410 |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/kernel-ipfs/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-07-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add ipni fallback ([a61b0d4](https://git.lumeweb.com/LumeWeb/kernel-ipfs/commit/a61b0d4771e885092bb47216f5fd525fa27caf4b))
|
||||
|
||||
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/kernel-ipfs/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-07-29)
|
||||
|
||||
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/kernel-ipfs/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-07-29)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-ipfs",
|
||||
"version": "0.1.0-develop.10",
|
||||
"version": "0.1.0-develop.11",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/kernel-ipfs",
|
||||
"version": "0.1.0-develop.10",
|
||||
"version": "0.1.0-develop.11",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@helia/ipns": "^1.1.3",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"@lumeweb/kernel-swarm-client": "0.1.0-develop.5",
|
||||
"@lumeweb/libhyperproxy": "^0.0.2-develop.2",
|
||||
"@lumeweb/libkernel": "0.1.0-develop.31",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.43",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.44",
|
||||
"@peculiar/webcrypto": "^1.4.3",
|
||||
"blockstore-idb": "^1.1.1",
|
||||
"datastore-core": "^9.2.0",
|
||||
|
@ -3211,9 +3211,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@lumeweb/presetter-kernel-module-preset": {
|
||||
"version": "0.1.0-develop.43",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/presetter-kernel-module-preset/-/presetter-kernel-module-preset-0.1.0-develop.43.tgz",
|
||||
"integrity": "sha512-cRbE+P1R+qc2nUZZRjRcNuqab9bf8cecMp2QGAiqc/OM3C8VsSRatquB77wO+3VyyYNLbo71SBQ2TIxx1q6Mow==",
|
||||
"version": "0.1.0-develop.44",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/presetter-kernel-module-preset/-/presetter-kernel-module-preset-0.1.0-develop.44.tgz",
|
||||
"integrity": "sha512-e5vMyTQW/gS93mt9qWqvJTcRYS0Dhi+PdpZR3FMO8y7CEp6f56dwKGz60EXOQOQVBDUqDuipf2KXRDnf0/gjDw==",
|
||||
"dependencies": {
|
||||
"@lumeweb/node-library-preset": "0.2.7",
|
||||
"buffer": "^6.0.3",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-ipfs",
|
||||
"version": "0.1.0-develop.10",
|
||||
"version": "0.1.0-develop.11",
|
||||
"type": "module",
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
|
@ -25,7 +25,7 @@
|
|||
"@lumeweb/kernel-swarm-client": "0.1.0-develop.5",
|
||||
"@lumeweb/libhyperproxy": "^0.0.2-develop.2",
|
||||
"@lumeweb/libkernel": "0.1.0-develop.31",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.43",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.44",
|
||||
"@peculiar/webcrypto": "^1.4.3",
|
||||
"blockstore-idb": "^1.1.1",
|
||||
"datastore-core": "^9.2.0",
|
||||
|
|
|
@ -18,6 +18,7 @@ import { delegatedPeerRouting } from "@libp2p/delegated-peer-routing";
|
|||
import { create as createIpfsHttpClient } from "ipfs-http-client";
|
||||
import { DELEGATE_LIST } from "./constants.js";
|
||||
import { multiaddr } from "@multiformats/multiaddr";
|
||||
import { ipniContentRouting } from "@libp2p/ipni-content-routing";
|
||||
|
||||
function getDelegateConfig(): any {
|
||||
const delegateString =
|
||||
|
@ -49,7 +50,10 @@ export function libp2pConfig(proxy: MultiSocketProxy): Libp2pOptions<{
|
|||
connectionEncryption: [noise()],
|
||||
streamMuxers: [yamux(), mplex()],
|
||||
peerDiscovery: [bootstrap(bootstrapConfig)],
|
||||
contentRouters: [delegatedContentRouting(client)],
|
||||
contentRouters: [
|
||||
delegatedContentRouting(client),
|
||||
ipniContentRouting("https://cid.contact"),
|
||||
],
|
||||
peerRouters: [delegatedPeerRouting(client)],
|
||||
services: {
|
||||
identify: identifyService(),
|
||||
|
|
Loading…
Reference in New Issue