-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: support paths in @helia/ipns (#410)
Fixes #402 Adds support for publishing/resolving paths. Eg: - `/ipfs/QmFoo/deep/link.txt` - `/ipns/example.com/deep/link.html` BREAKING CHANGE: to support paths in `@helia/ipns`, the return type of `ipns.resolve` is now `{ path: string, cid: CID }` instead of just `CID` **Before** ```typescript const cidFromPeerId = await ipns.resolve(peerId) const cidFromDnsLink = await ipns.resolve(domainName) ``` **After** ```typescript const { cid, path } = await ipns.resolve(peerId) const { cid, path } = await ipns.resolve(domainName) ``` --------- Co-authored-by: achingbrain <[email protected]>
- Loading branch information
1 parent
94b0cd1
commit ca8d5eb
Showing
8 changed files
with
304 additions
and
49 deletions.
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
Oops, something went wrong.