Skip to content

Commit 27101f3

Browse files
authored
deps!: upgrade to Helia 5.x.x and libp2p 2.x.x
Bumps [@libp2p/logger](https://github.com/libp2p/js-libp2p) from 4.0.20 to 5.0.0. - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@logger-v4.0.20...utils-v5.0.0) --- updated-dependencies: - dependency-name: "@libp2p/logger" dependency-type: direct:production update-type: version-update:semver-major ... Updates all libp2p deps to the latest version. Temporarily uses the `next` version of Helia, this can be changed once the `5.x.x` release occurs. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> BREAKING CHANGE: requires [email protected] and [email protected]
1 parent 0b8ec69 commit 27101f3

File tree

21 files changed

+589
-313
lines changed

21 files changed

+589
-313
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updates:
55
schedule:
66
interval: daily
77
time: "10:00"
8-
open-pull-requests-limit: 10
8+
open-pull-requests-limit: 20
99
commit-message:
1010
prefix: "deps"
1111
prefix-development: "deps(dev)"

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
</a>
55
</p>
66

7+
# helia-delegated-routing-v1-http-api
8+
79
[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)
810
[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)
911
[![codecov](https://img.shields.io/codecov/c/github/ipfs/helia-delegated-routing-v1-http-api.svg?style=flat-square)](https://codecov.io/gh/ipfs/helia-delegated-routing-v1-http-api)
@@ -15,24 +17,24 @@
1517

1618
This repo contains a server implementation of the IPFS [Delegated Routing V1 HTTP API](https://specs.ipfs.tech/routing/http-routing-v1/) along with a client that can be used to interact with any compliant server implementation.
1719

18-
## Packages
20+
# Packages
1921

20-
- [`/packages/client`](./packages/client) A Delegated Routing V1 HTTP API client
21-
- [`/packages/interop`](./packages/interop) Interop tests for the Delegated Routing V1 HTTP API server powered by Helia
22-
- [`/packages/server`](./packages/server) A Delegated Routing V1 HTTP API server powered by Helia
22+
- [`packages/client`](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages/client) A Delegated Routing V1 HTTP API client
23+
- [`packages/interop`](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages/interop) Interop tests for the Delegated Routing V1 HTTP API server powered by Helia
24+
- [`packages/server`](https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages/server) A Delegated Routing V1 HTTP API server powered by Helia
2325

24-
## API Docs
26+
# API Docs
2527

2628
- <https://ipfs.github.io/helia-delegated-routing-v1-http-api>
2729

28-
## License
30+
# License
2931

3032
Licensed under either of
3133

32-
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
33-
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
34+
- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/helia-delegated-routing-v1-http-api/blob/main/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
35+
- MIT ([LICENSE-MIT](https://github.com/ipfs/helia-delegated-routing-v1-http-api/blob/main/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
3436

35-
## Contribute
37+
# Contribute
3638

3739
Contributions welcome! Please check out [the issues](https://github.com/ipfs/helia-delegated-routing-v1-http-api/issues).
3840

package.json

Lines changed: 4 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -37,95 +37,12 @@
3737
},
3838
"devDependencies": {
3939
"aegir": "^44.1.1",
40-
"npm-run-all": "^4.1.5"
40+
"npm-run-all": "^4.1.5",
41+
"patch-package": "^8.0.0",
42+
"rimraf": "^6.0.1"
4143
},
4244
"type": "module",
4345
"workspaces": [
4446
"packages/*"
45-
],
46-
"release": {
47-
"branches": [
48-
"main"
49-
],
50-
"plugins": [
51-
[
52-
"@semantic-release/commit-analyzer",
53-
{
54-
"preset": "conventionalcommits",
55-
"releaseRules": [
56-
{
57-
"breaking": true,
58-
"release": "major"
59-
},
60-
{
61-
"revert": true,
62-
"release": "patch"
63-
},
64-
{
65-
"type": "feat",
66-
"release": "minor"
67-
},
68-
{
69-
"type": "fix",
70-
"release": "patch"
71-
},
72-
{
73-
"type": "docs",
74-
"release": "patch"
75-
},
76-
{
77-
"type": "test",
78-
"release": "patch"
79-
},
80-
{
81-
"type": "deps",
82-
"release": "patch"
83-
},
84-
{
85-
"scope": "no-release",
86-
"release": false
87-
}
88-
]
89-
}
90-
],
91-
[
92-
"@semantic-release/release-notes-generator",
93-
{
94-
"preset": "conventionalcommits",
95-
"presetConfig": {
96-
"types": [
97-
{
98-
"type": "feat",
99-
"section": "Features"
100-
},
101-
{
102-
"type": "fix",
103-
"section": "Bug Fixes"
104-
},
105-
{
106-
"type": "chore",
107-
"section": "Trivial Changes"
108-
},
109-
{
110-
"type": "docs",
111-
"section": "Documentation"
112-
},
113-
{
114-
"type": "deps",
115-
"section": "Dependencies"
116-
},
117-
{
118-
"type": "test",
119-
"section": "Tests"
120-
}
121-
]
122-
}
123-
}
124-
],
125-
"@semantic-release/changelog",
126-
"@semantic-release/npm",
127-
"@semantic-release/github",
128-
"@semantic-release/git"
129-
]
130-
}
47+
]
13148
}

packages/client/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
</a>
55
</p>
66

7+
# @helia/delegated-routing-v1-http-api-client
8+
79
[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)
810
[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)
911
[![codecov](https://img.shields.io/codecov/c/github/ipfs/helia-delegated-routing-v1-http-api.svg?style=flat-square)](https://codecov.io/gh/ipfs/helia-delegated-routing-v1-http-api)
@@ -13,6 +15,21 @@
1315
1416
# About
1517

18+
<!--
19+
20+
!IMPORTANT!
21+
22+
Everything in this README between "# About" and "# Install" is automatically
23+
generated and will be overwritten the next time the doc generator is run.
24+
25+
To make changes to this section, please update the @packageDocumentation section
26+
of src/index.js or src/index.ts
27+
28+
To experiment with formatting, please run "npm run docs" from the root of this
29+
repo and examine the changes made.
30+
31+
-->
32+
1633
A client implementation of the IPFS [Delegated Routing V1 HTTP API](https://specs.ipfs.tech/routing/http-routing-v1/) that can be used to interact with any compliant server implementation.
1734

1835
## Example
@@ -50,3 +67,32 @@ const libp2p = await createLibp2p({
5067
// later this will use the configured HTTP gateway
5168
await libp2p.peerRouting.findPeer(peerIdFromString('QmFoo'))
5269
```
70+
71+
# Install
72+
73+
```console
74+
$ npm i @helia/delegated-routing-v1-http-api-client
75+
```
76+
77+
# API Docs
78+
79+
- <https://ipfs.github.io/helia-delegated-routing-v1-http-api/modules/_helia_delegated_routing_v1_http_api_client.html>
80+
81+
# License
82+
83+
Licensed under either of
84+
85+
- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/helia-delegated-routing-v1-http-api/blob/main/packages/client/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
86+
- MIT ([LICENSE-MIT](https://github.com/ipfs/helia-delegated-routing-v1-http-api/blob/main/packages/client/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
87+
88+
# Contribute
89+
90+
Contributions welcome! Please check out [the issues](https://github.com/ipfs/helia-delegated-routing-v1-http-api/issues).
91+
92+
Also see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.
93+
94+
Please be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
95+
96+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
97+
98+
[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)

packages/client/package.json

Lines changed: 105 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
"version": "3.0.1",
44
"description": "A Delegated Routing V1 HTTP API client",
55
"license": "Apache-2.0 OR MIT",
6-
"homepage": "https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/master/packages/client#readme",
6+
"homepage": "https://github.com/ipfs/helia-delegated-routing-v1-http-api/tree/main/packages/client#readme",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/ipfs/helia-delegated-routing-v1-http-api.git"
1010
},
1111
"bugs": {
1212
"url": "https://github.com/ipfs/helia-delegated-routing-v1-http-api/issues"
1313
},
14+
"publishConfig": {
15+
"access": "public",
16+
"provenance": true
17+
},
1418
"keywords": [
1519
"IPFS"
1620
],
@@ -35,6 +39,91 @@
3539
"sourceType": "module"
3640
}
3741
},
42+
"release": {
43+
"branches": [
44+
"main"
45+
],
46+
"plugins": [
47+
[
48+
"@semantic-release/commit-analyzer",
49+
{
50+
"preset": "conventionalcommits",
51+
"releaseRules": [
52+
{
53+
"breaking": true,
54+
"release": "major"
55+
},
56+
{
57+
"revert": true,
58+
"release": "patch"
59+
},
60+
{
61+
"type": "feat",
62+
"release": "minor"
63+
},
64+
{
65+
"type": "fix",
66+
"release": "patch"
67+
},
68+
{
69+
"type": "docs",
70+
"release": "patch"
71+
},
72+
{
73+
"type": "test",
74+
"release": "patch"
75+
},
76+
{
77+
"type": "deps",
78+
"release": "patch"
79+
},
80+
{
81+
"scope": "no-release",
82+
"release": false
83+
}
84+
]
85+
}
86+
],
87+
[
88+
"@semantic-release/release-notes-generator",
89+
{
90+
"preset": "conventionalcommits",
91+
"presetConfig": {
92+
"types": [
93+
{
94+
"type": "feat",
95+
"section": "Features"
96+
},
97+
{
98+
"type": "fix",
99+
"section": "Bug Fixes"
100+
},
101+
{
102+
"type": "chore",
103+
"section": "Trivial Changes"
104+
},
105+
{
106+
"type": "docs",
107+
"section": "Documentation"
108+
},
109+
{
110+
"type": "deps",
111+
"section": "Dependencies"
112+
},
113+
{
114+
"type": "test",
115+
"section": "Tests"
116+
}
117+
]
118+
}
119+
}
120+
],
121+
"@semantic-release/changelog",
122+
"@semantic-release/npm",
123+
"@semantic-release/github",
124+
"@semantic-release/git"
125+
]
126+
},
38127
"scripts": {
39128
"clean": "aegir clean",
40129
"lint": "aegir lint",
@@ -45,26 +134,26 @@
45134
"release": "aegir release"
46135
},
47136
"dependencies": {
48-
"@libp2p/interface": "^1.1.1",
49-
"@libp2p/logger": "^4.0.4",
50-
"@libp2p/peer-id": "^4.0.4",
51-
"@multiformats/multiaddr": "^12.1.3",
137+
"@libp2p/interface": "^2.0.1",
138+
"@libp2p/logger": "^5.0.1",
139+
"@libp2p/peer-id": "^5.0.1",
140+
"@multiformats/multiaddr": "^12.3.1",
52141
"any-signal": "^4.1.1",
53-
"browser-readablestream-to-it": "^2.0.3",
54-
"ipns": "^9.0.0",
55-
"it-first": "^3.0.3",
56-
"it-map": "^3.0.4",
57-
"it-ndjson": "^1.0.4",
58-
"multiformats": "^13.0.0",
59-
"p-defer": "^4.0.0",
142+
"browser-readablestream-to-it": "^2.0.7",
143+
"ipns": "^10.0.0",
144+
"it-first": "^3.0.6",
145+
"it-map": "^3.1.1",
146+
"it-ndjson": "^1.0.7",
147+
"multiformats": "^13.2.3",
148+
"p-defer": "^4.0.1",
60149
"p-queue": "^8.0.1",
61-
"uint8arrays": "^5.0.1"
150+
"uint8arrays": "^5.1.0"
62151
},
63152
"devDependencies": {
64-
"@libp2p/peer-id-factory": "^4.0.4",
153+
"@libp2p/crypto": "^5.0.1",
65154
"aegir": "^44.1.1",
66-
"body-parser": "^1.20.2",
67-
"it-all": "^3.0.2"
155+
"body-parser": "^1.20.3",
156+
"it-all": "^3.0.6"
68157
},
69158
"sideEffects": false
70159
}

0 commit comments

Comments
 (0)