diff --git a/README.md b/README.md index 2baef35d..f4f8c766 100644 --- a/README.md +++ b/README.md @@ -893,6 +893,7 @@ const account = useAccount() // or useAccount('Account 2') to use an account oth // `account.author.wallets` only auto-generates an `eth` wallet by default. // `account.chainProviders` is the canonical chain config for wallets, NFT lookups, and other chain reads. // Defaults use multiple explicit Ethereum RPCs for `.eth` / `.bso` author-name resolution. +// Defaults use multiple HTTP routers for IPFS/IPNS delegated routing. // `account.nameResolversChainProviders` optionally overrides only the RPCs used for that resolution. console.log(account.author.wallets.eth) @@ -905,6 +906,15 @@ const ethResolverRpcUrls = [ 'https://eth-pokt.nodies.app', ] +const httpRoutersOptions = [ + 'https://peers.pleb.bot', + 'https://routing.lol', + 'https://peers.forumindex.com', + 'https://peers.plebpubsub.xyz', + 'https://routerofbitsocial.xyz', + 'https://bsotracker.online', +] + const author: {...account.author, displayName: 'John'} const editedAccount = { ...account, @@ -913,6 +923,10 @@ const editedAccount = { ...account.chainProviders, eth: { urls: [...ethResolverRpcUrls, 'ethers.js'], chainId: 1 }, }, + pkcOptions: { + ...account.pkcOptions, + httpRoutersOptions, + }, nameResolversChainProviders: { eth: { urls: ethResolverRpcUrls, chainId: 1 }, }, diff --git a/llms-full.txt b/llms-full.txt index e96541ad..614cc887 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -923,6 +923,7 @@ const account = useAccount() // or useAccount('Account 2') to use an account oth // `account.author.wallets` only auto-generates an `eth` wallet by default. // `account.chainProviders` is the canonical chain config for wallets, NFT lookups, and other chain reads. // Defaults use multiple explicit Ethereum RPCs for `.eth` / `.bso` author-name resolution. +// Defaults use multiple HTTP routers for IPFS/IPNS delegated routing. // `account.nameResolversChainProviders` optionally overrides only the RPCs used for that resolution. console.log(account.author.wallets.eth) @@ -935,6 +936,15 @@ const ethResolverRpcUrls = [ 'https://eth-pokt.nodies.app', ] +const httpRoutersOptions = [ + 'https://peers.pleb.bot', + 'https://routing.lol', + 'https://peers.forumindex.com', + 'https://peers.plebpubsub.xyz', + 'https://routerofbitsocial.xyz', + 'https://bsotracker.online', +] + const author: {...account.author, displayName: 'John'} const editedAccount = { ...account, @@ -943,6 +953,10 @@ const editedAccount = { ...account.chainProviders, eth: { urls: [...ethResolverRpcUrls, 'ethers.js'], chainId: 1 }, }, + pkcOptions: { + ...account.pkcOptions, + httpRoutersOptions, + }, nameResolversChainProviders: { eth: { urls: ethResolverRpcUrls, chainId: 1 }, }, @@ -3164,6 +3178,24 @@ Avoid GitHub MCP and browser MCP servers for this project because they add signi Source: https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/CHANGELOG.md ```markdown +## [0.1.21](https://github.com/bitsocialnet/bitsocial-react-hooks/compare/v0.1.20...v0.1.21) (2026-06-24) + + +### Bug Fixes + +* **accounts:** handle empty account comment lookups ([#65](https://github.com/bitsocialnet/bitsocial-react-hooks/issues/65)) ([eb1bd79](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/eb1bd797180c620eed611cffd879abdb5c793578)) + + + +## [0.1.20](https://github.com/bitsocialnet/bitsocial-react-hooks/compare/v0.1.19...v0.1.20) (2026-06-24) + + +### Bug Fixes + +* **accounts:** enrich local account comment authors ([cac2376](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/cac237656b25ac5611fa861528845463f761998d)) + + + ## [0.1.19](https://github.com/bitsocialnet/bitsocial-react-hooks/compare/v0.1.18...v0.1.19) (2026-06-18) diff --git a/llms.txt b/llms.txt index 6fa50335..0fba8d31 100644 --- a/llms.txt +++ b/llms.txt @@ -38,5 +38,5 @@ This file is generated by `scripts/generate-llms-files.mjs`. Do not hand-edit it ## Optional -- [Changelog](https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/CHANGELOG.md): * resolve community name lookups ([ffef83c](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/ffef83cc7b27a59fca4b0788732ff0bfc213496e)) +- [Changelog](https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/CHANGELOG.md): * **accounts:** handle empty account comment lookups ([#65](https://github.com/bitsocialnet/bitsocial-react-hooks/issues/65)) ([eb1bd79](https://github.com/bitsocialnet/bitsocial-react-hooks/commit/eb1bd797180c620eed6... - [TODO](https://github.com/bitsocialnet/bitsocial-react-hooks/blob/master/docs/TODO.md): - e2e test to publish to an electron sub - async useAuthorAddress hook (because resolving ETH address synchronously is too slow) - implement sort by active - implement showing your own pending replies in a comment (wh... diff --git a/package.json b/package.json index 9c7dd8d0..aa3a02dc 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "publishConfig": { "access": "public" }, - "version": "0.1.21", + "version": "0.1.22", "packageManager": "yarn@4.13.0", "files": [ "CHANGELOG.md", @@ -48,7 +48,7 @@ }, "dependencies": { "@bitsocial/bso-resolver": "0.0.8", - "@pkcprotocol/pkc-js": "0.0.48", + "@pkcprotocol/pkc-js": "0.0.53", "@pkcprotocol/pkc-logger": "0.1.0", "assert": "2.0.0", "ethers": "5.8.0", diff --git a/src/stores/accounts/account-generator.test.ts b/src/stores/accounts/account-generator.test.ts index ca587b04..45b868fd 100644 --- a/src/stores/accounts/account-generator.test.ts +++ b/src/stores/accounts/account-generator.test.ts @@ -1,6 +1,7 @@ import accountGenerator, { DEFAULT_ETH_RPC_URL, DEFAULT_ETH_RPC_URLS, + DEFAULT_HTTP_ROUTER_URLS, getDefaultChainProviders, getDefaultPkcOptions, } from "./account-generator"; @@ -24,6 +25,15 @@ describe("account-generator", () => { expect(chainProviders).toBeDefined(); expect(chainProviders.eth).toBeDefined(); expect(chainProviders.matic).toBeDefined(); + expect(opts.httpRoutersOptions).toEqual(DEFAULT_HTTP_ROUTER_URLS); + expect(DEFAULT_HTTP_ROUTER_URLS).toEqual([ + "https://peers.pleb.bot", + "https://routing.lol", + "https://peers.forumindex.com", + "https://peers.plebpubsub.xyz", + "https://routerofbitsocial.xyz", + "https://bsotracker.online", + ]); expect(opts.resolveAuthorAddresses).toBe(false); expect(opts.validatePages).toBe(false); } finally { diff --git a/src/stores/accounts/account-generator.ts b/src/stores/accounts/account-generator.ts index 4629f67b..53389298 100644 --- a/src/stores/accounts/account-generator.ts +++ b/src/stores/accounts/account-generator.ts @@ -21,6 +21,14 @@ export const DEFAULT_ETH_RPC_URLS = [ "https://1rpc.io/eth", "https://eth-pokt.nodies.app", ]; +export const DEFAULT_HTTP_ROUTER_URLS = [ + "https://peers.pleb.bot", + "https://routing.lol", + "https://peers.forumindex.com", + "https://peers.plebpubsub.xyz", + "https://routerofbitsocial.xyz", + "https://bsotracker.online", +]; // default chain providers const chainProviders: ChainProviders = { @@ -101,12 +109,7 @@ export const getDefaultPkcOptions = () => { "https://plebpubsub.xyz/api/v0", "https://rannithepleb.com/api/v0", ], - httpRoutersOptions: [ - "https://routing.lol", - "https://peers.pleb.bot", - "https://peers.plebpubsub.xyz", - "https://peers.forumindex.com", - ], + httpRoutersOptions: [...DEFAULT_HTTP_ROUTER_URLS], ...overwritePkcOptions, }); }; diff --git a/yarn.lock b/yarn.lock index 50512f9d..4d38f316 100644 --- a/yarn.lock +++ b/yarn.lock @@ -319,7 +319,7 @@ __metadata: resolution: "@bitsocial/bitsocial-react-hooks@workspace:." dependencies: "@bitsocial/bso-resolver": "npm:0.0.8" - "@pkcprotocol/pkc-js": "npm:0.0.48" + "@pkcprotocol/pkc-js": "npm:0.0.53" "@pkcprotocol/pkc-logger": "npm:0.1.0" "@testing-library/dom": "npm:10.4.1" "@testing-library/react": "npm:16.3.2" @@ -3536,9 +3536,9 @@ __metadata: languageName: node linkType: hard -"@pkcprotocol/pkc-js@npm:0.0.48": - version: 0.0.48 - resolution: "@pkcprotocol/pkc-js@npm:0.0.48" +"@pkcprotocol/pkc-js@npm:0.0.53": + version: 0.0.53 + resolution: "@pkcprotocol/pkc-js@npm:0.0.53" dependencies: "@enhances/with-resolvers": "npm:0.0.5" "@helia/block-brokers": "npm:5.2.4" @@ -3598,7 +3598,7 @@ __metadata: uuid: "npm:13.0.0" ws: "npm:8.20.0" zod: "npm:4.3.6" - checksum: 10c0/eaf9c5e2a83cc6cc108bbb239f6f0461a63830ddb003ebce6aea5423478a24fbc3de9cc1560e97969af41cedcfa05167f04ccae19bd379629e2dfc1b9c5f0836 + checksum: 10c0/b3b0bb6a53c5d53dd7198745e4899d888919620c2b05dfeb5baf9d16499d50f22ea18955a658f290277354fe839890e5a4d939d802349bc373dc4f97d4a71161 languageName: node linkType: hard