Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

fix!: use @helia/delegated-routing-v1-http-api-client internally #27

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

achingbrain
Copy link
Member

Refactors the internal implementation to use the @helia/delegated-routing-v1-http-api-client instead of a hand-rolled version.

Replaces any older references to "Reframe" with the new name of "Delegated Routing V1 HTTP API". Phew.

BREAKING CHANGE: the module has been renamed as the spec has been renamed

Refactors the internal implementation to use the [@helia/delegated-routing-v1-http-api-client](https://www.npmjs.com/package/@helia/delegated-routing-v1-http-api-client)
instead of a hand-rolled version.

BREAKING CHANGE: the module has been renamed as the spec has been renamed
@achingbrain achingbrain merged commit 5bd026e into main Oct 26, 2023
17 checks passed
@achingbrain achingbrain deleted the fix/use-delegated-routing-client branch October 26, 2023 16:16

This is a [ContentRouting](https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.content_routing.ContentRouting.html)
implementation that makes use of the [@helia/delegated-routing-v1-http-api-client](https://www.npmjs.com/package/@helia/delegated-routing-v1-http-api-client)
to use servers that implement the snappily-titled [Delegated Routing V1 HTTP API](Delegated Routing V1 HTTP API)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we mean to link to https://specs.ipfs.tech/routing/http-routing-v1/ ?


const node = await createLibp2p({
contentRouters: [
reframeContentRouting('https://cid.contact/reframe')
delgatedRoutingV1HTTPAPIContentRouting('https://example.org')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When ipshipyard/waterworks-community#1 lands (EOW week I expect), delegated-ipfs.dev will be a good default.

github-actions bot pushed a commit that referenced this pull request Oct 27, 2023
## [2.0.0](v1.0.2...v2.0.0) (2023-10-27)

### ⚠ BREAKING CHANGES

* the module has been renamed as the spec has been renamed

### Bug Fixes

* use @helia/delegated-routing-v1-http-api-client internally ([#27](#27)) ([5bd026e](5bd026e))

### Trivial Changes

* fix build ([543ebc6](543ebc6))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants