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

Commit ac01bd7

Browse files
authored
deps: update project deps (#20)
1 parent 4eeef7e commit ac01bd7

File tree

6 files changed

+30
-36
lines changed

6 files changed

+30
-36
lines changed

.github/workflows/automerge.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# File managed by web3-bot. DO NOT EDIT.
2-
# See https://github.com/protocol/.github/ for details.
3-
41
name: Automerge
52
on: [ pull_request ]
63

.github/workflows/js-test-and-release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# File managed by web3-bot. DO NOT EDIT.
2-
# See https://github.com/protocol/.github/ for details.
3-
41
name: test & maybe release
52
on:
63
push:
@@ -20,6 +17,7 @@ jobs:
2017
- uses: ipfs/aegir/actions/cache-node-modules@master
2118
- run: npm run --if-present lint
2219
- run: npm run --if-present dep-check
20+
- run: npm run --if-present doc-check
2321

2422
test-node:
2523
needs: check

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# @libp2p/reframe-content-routing <!-- omit in toc -->
1+
# @libp2p/http-v1-content-routing <!-- omit in toc -->
22

33
[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
44
[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
5-
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-reframe-content-routing.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-reframe-content-routing)
6-
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-reframe-content-routing/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-reframe-content-routing/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
5+
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-http-v1-content-routing.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-http-v1-content-routing)
6+
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-http-v1-content-routing/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-http-v1-content-routing/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
77

8-
> Use a Reframe service to discover content providers
8+
> Use a Routing V1 HTTP service to discover content providers
99
1010
## Table of contents <!-- omit in toc -->
1111

@@ -19,15 +19,15 @@
1919
## Install
2020

2121
```console
22-
$ npm i @libp2p/reframe-content-routing
22+
$ npm i @libp2p/http-v1-content-routing
2323
```
2424

2525
### Browser `<script>` tag
2626

27-
Loading this module through a script tag will make it's exports available as `Libp2pReframeContentRouting` in the global namespace.
27+
Loading this module through a script tag will make it's exports available as `Libp2pHttpV1ContentRouting` in the global namespace.
2828

2929
```html
30-
<script src="https://unpkg.com/@libp2p/reframe-content-routing/dist/index.min.js"></script>
30+
<script src="https://unpkg.com/@libp2p/http-v1-content-routing/dist/index.min.js"></script>
3131
```
3232

3333
## Example
@@ -51,7 +51,7 @@ for await (const provider of node.contentRouting.findProviders('cid')) {
5151

5252
## API Docs
5353

54-
- <https://libp2p.github.io/js-reframe-content-routing>
54+
- <https://libp2p.github.io/js-http-v1-content-routing>
5555

5656
## License
5757

package.json

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{
2-
"name": "@libp2p/reframe-content-routing",
3-
"version": "1.0.2",
4-
"description": "Use a Reframe service to discover content providers",
2+
"name": "@libp2p/http-v1-content-routing",
3+
"version": "0.0.0",
4+
"description": "Use a Routing V1 HTTP service to discover content providers",
55
"license": "Apache-2.0 OR MIT",
6-
"homepage": "https://github.com/libp2p/js-reframe-content-routing#readme",
6+
"homepage": "https://github.com/libp2p/js-http-v1-content-routing#readme",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/libp2p/js-reframe-content-routing.git"
9+
"url": "git+https://github.com/libp2p/js-http-v1-content-routing.git"
1010
},
1111
"bugs": {
12-
"url": "https://github.com/libp2p/js-reframe-content-routing/issues"
13-
},
14-
"engines": {
15-
"node": ">=16.0.0",
16-
"npm": ">=7.0.0"
12+
"url": "https://github.com/libp2p/js-http-v1-content-routing/issues"
1713
},
1814
"type": "module",
1915
"types": "./dist/src/index.d.ts",
@@ -136,22 +132,20 @@
136132
"docs": "aegir docs"
137133
},
138134
"dependencies": {
139-
"@libp2p/interface-content-routing": "^2.0.2",
140-
"@libp2p/interface-peer-info": "^1.0.9",
141-
"@libp2p/interfaces": "^3.3.1",
142-
"@libp2p/logger": "^2.0.7",
143-
"@libp2p/peer-id": "^2.0.3",
135+
"@libp2p/interface": "^0.1.1",
136+
"@libp2p/logger": "^3.0.1",
137+
"@libp2p/peer-id": "^3.0.1",
144138
"@multiformats/multiaddr": "^12.1.2",
145139
"any-signal": "^4.1.1",
146140
"browser-readablestream-to-it": "^2.0.2",
147141
"it-to-buffer": "^4.0.1",
148-
"multiformats": "^11.0.2",
142+
"multiformats": "^12.0.1",
149143
"p-defer": "^4.0.0",
150144
"p-queue": "^7.3.4",
151145
"uint8arrays": "^4.0.3"
152146
},
153147
"devDependencies": {
154-
"@libp2p/peer-id-factory": "^2.0.3",
148+
"@libp2p/peer-id-factory": "^3.0.2",
155149
"aegir": "^40.0.8",
156150
"body-parser": "^1.20.2",
157151
"it-all": "^3.0.1"

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CodeError } from '@libp2p/interfaces/errors'
1+
import { CodeError } from '@libp2p/interface/errors'
22
import { logger } from '@libp2p/logger'
33
import { peerIdFromString } from '@libp2p/peer-id'
44
import { multiaddr } from '@multiformats/multiaddr'
@@ -8,10 +8,10 @@ import toBuffer from 'it-to-buffer'
88
import defer from 'p-defer'
99
import PQueue from 'p-queue'
1010
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
11-
import type { ContentRouting } from '@libp2p/interface-content-routing'
12-
import type { PeerInfo } from '@libp2p/interface-peer-info'
13-
import type { AbortOptions } from '@libp2p/interfaces'
14-
import type { Startable } from '@libp2p/interfaces/startable'
11+
import type { AbortOptions } from '@libp2p/interface'
12+
import type { ContentRouting } from '@libp2p/interface/content-routing'
13+
import type { PeerInfo } from '@libp2p/interface/peer-info'
14+
import type { Startable } from '@libp2p/interface/startable'
1515
import type { Multiaddr } from '@multiformats/multiaddr'
1616
import type { CID } from 'multiformats/cid'
1717

typedoc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"entryPoints": [
3+
"./src/index.ts"
4+
]
5+
}

0 commit comments

Comments
 (0)