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

Commit

Permalink
deps: update project deps (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Aug 5, 2023
1 parent 4eeef7e commit ac01bd7
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 36 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: Automerge
on: [ pull_request ]

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: test & maybe release
on:
push:
Expand All @@ -20,6 +17,7 @@ jobs:
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present lint
- run: npm run --if-present dep-check
- run: npm run --if-present doc-check

test-node:
needs: check
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# @libp2p/reframe-content-routing <!-- omit in toc -->
# @libp2p/http-v1-content-routing <!-- omit in toc -->

[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
[![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)
[![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)
[![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)
[![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)

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

Expand All @@ -19,15 +19,15 @@
## Install

```console
$ npm i @libp2p/reframe-content-routing
$ npm i @libp2p/http-v1-content-routing
```

### Browser `<script>` tag

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

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

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

## API Docs

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

## License

Expand Down
28 changes: 11 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{
"name": "@libp2p/reframe-content-routing",
"version": "1.0.2",
"description": "Use a Reframe service to discover content providers",
"name": "@libp2p/http-v1-content-routing",
"version": "0.0.0",
"description": "Use a Routing V1 HTTP service to discover content providers",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-reframe-content-routing#readme",
"homepage": "https://github.com/libp2p/js-http-v1-content-routing#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/libp2p/js-reframe-content-routing.git"
"url": "git+https://github.com/libp2p/js-http-v1-content-routing.git"
},
"bugs": {
"url": "https://github.com/libp2p/js-reframe-content-routing/issues"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
"url": "https://github.com/libp2p/js-http-v1-content-routing/issues"
},
"type": "module",
"types": "./dist/src/index.d.ts",
Expand Down Expand Up @@ -136,22 +132,20 @@
"docs": "aegir docs"
},
"dependencies": {
"@libp2p/interface-content-routing": "^2.0.2",
"@libp2p/interface-peer-info": "^1.0.9",
"@libp2p/interfaces": "^3.3.1",
"@libp2p/logger": "^2.0.7",
"@libp2p/peer-id": "^2.0.3",
"@libp2p/interface": "^0.1.1",
"@libp2p/logger": "^3.0.1",
"@libp2p/peer-id": "^3.0.1",
"@multiformats/multiaddr": "^12.1.2",
"any-signal": "^4.1.1",
"browser-readablestream-to-it": "^2.0.2",
"it-to-buffer": "^4.0.1",
"multiformats": "^11.0.2",
"multiformats": "^12.0.1",
"p-defer": "^4.0.0",
"p-queue": "^7.3.4",
"uint8arrays": "^4.0.3"
},
"devDependencies": {
"@libp2p/peer-id-factory": "^2.0.3",
"@libp2p/peer-id-factory": "^3.0.2",
"aegir": "^40.0.8",
"body-parser": "^1.20.2",
"it-all": "^3.0.1"
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CodeError } from '@libp2p/interfaces/errors'
import { CodeError } from '@libp2p/interface/errors'
import { logger } from '@libp2p/logger'
import { peerIdFromString } from '@libp2p/peer-id'
import { multiaddr } from '@multiformats/multiaddr'
Expand All @@ -8,10 +8,10 @@ import toBuffer from 'it-to-buffer'
import defer from 'p-defer'
import PQueue from 'p-queue'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import type { ContentRouting } from '@libp2p/interface-content-routing'
import type { PeerInfo } from '@libp2p/interface-peer-info'
import type { AbortOptions } from '@libp2p/interfaces'
import type { Startable } from '@libp2p/interfaces/startable'
import type { AbortOptions } from '@libp2p/interface'
import type { ContentRouting } from '@libp2p/interface/content-routing'
import type { PeerInfo } from '@libp2p/interface/peer-info'
import type { Startable } from '@libp2p/interface/startable'
import type { Multiaddr } from '@multiformats/multiaddr'
import type { CID } from 'multiformats/cid'

Expand Down
5 changes: 5 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"entryPoints": [
"./src/index.ts"
]
}

0 comments on commit ac01bd7

Please sign in to comment.