Skip to content

Commit 97dfba9

Browse files
authored
chore: add packages from libp2p/js-libp2p-interfaces (#1823)
A lift & shift of all package from the libp2p/js-libp2p-interfaces repo.
1 parent b641490 commit 97dfba9

File tree

315 files changed

+23464
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+23464
-35
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
node_modules
2+
build
23
dist
34
.docs
45
.coverage
6+
node_modules
57
package-lock.json
68
yarn.lock
7-
.vscode
9+
.vscode

LICENSE

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This project is dual licensed under MIT and Apache-2.0.
2+
3+
MIT: https://www.opensource.org/licenses/mit
4+
Apache-2.0: https://www.apache.org/licenses/license-2.0

LICENSE-APACHE

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
2+
3+
http://www.apache.org/licenses/LICENSE-2.0
4+
5+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

LICENSE-MIT

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
The MIT License (MIT)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

interop/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"main": "index.js",
88
"author": "Glen De Cauwsemaecker <[email protected]> / @marcopolo",
99
"license": "MIT",
10-
"engines": {
11-
"node": ">=18"
12-
},
1310
"scripts": {
1411
"start": "node index.js",
1512
"build": "aegir build",

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"dep-check": "aegir run dep-check",
3333
"release": "run-s build npm:release",
3434
"npm:release": "aegir exec npm -- publish",
35-
"release:rc": "aegir release-rc"
35+
"release:rc": "aegir release-rc",
36+
"docs": "NODE_OPTIONS=--max_old_space_size=4096 aegir docs"
3637
},
3738
"devDependencies": {
3839
"aegir": "^39.0.5"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
## [@libp2p/interface-address-manager-v3.0.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v3.0.0...@libp2p/interface-address-manager-v3.0.1) (2023-05-04)
2+
3+
4+
### Dependencies
5+
6+
* bump aegir from 38.1.8 to 39.0.5 ([#393](https://github.com/libp2p/js-libp2p-interfaces/issues/393)) ([31f3797](https://github.com/libp2p/js-libp2p-interfaces/commit/31f3797b24f7c23f3f16e9db3a230bd5f7cd5175))
7+
8+
## [@libp2p/interface-address-manager-v3.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v2.0.5...@libp2p/interface-address-manager-v3.0.0) (2023-04-21)
9+
10+
11+
### ⚠ BREAKING CHANGES
12+
13+
* add libp2p events (#373)
14+
15+
### Features
16+
17+
* add libp2p events ([#373](https://github.com/libp2p/js-libp2p-interfaces/issues/373)) ([071c718](https://github.com/libp2p/js-libp2p-interfaces/commit/071c718808902858818ca86167b51b242b67a5a5))
18+
19+
## [@libp2p/interface-address-manager-v2.0.5](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v2.0.4...@libp2p/interface-address-manager-v2.0.5) (2023-03-17)
20+
21+
22+
### Dependencies
23+
24+
* update @multiformats/multiaddr to 12.0.0 ([#354](https://github.com/libp2p/js-libp2p-interfaces/issues/354)) ([e0f327b](https://github.com/libp2p/js-libp2p-interfaces/commit/e0f327b5d54e240feabadce21a841629d633ec5e))
25+
26+
## [@libp2p/interface-address-manager-v2.0.4](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v2.0.3...@libp2p/interface-address-manager-v2.0.4) (2023-01-18)
27+
28+
29+
### Trivial Changes
30+
31+
* remove lerna ([#330](https://github.com/libp2p/js-libp2p-interfaces/issues/330)) ([6678592](https://github.com/libp2p/js-libp2p-interfaces/commit/6678592dd0cf601a2671852f9d2a0aff5dee2b18))
32+
33+
34+
### Dependencies
35+
36+
* bump aegir from 37.12.1 to 38.1.0 ([#335](https://github.com/libp2p/js-libp2p-interfaces/issues/335)) ([7368a36](https://github.com/libp2p/js-libp2p-interfaces/commit/7368a363423a08e8fa247dcb76ea13e4cf030d65))
37+
38+
## [@libp2p/interface-address-manager-v2.0.3](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v2.0.2...@libp2p/interface-address-manager-v2.0.3) (2022-12-16)
39+
40+
41+
### Documentation
42+
43+
* update project config ([#323](https://github.com/libp2p/js-libp2p-interfaces/issues/323)) ([0fc6a08](https://github.com/libp2p/js-libp2p-interfaces/commit/0fc6a08e9cdcefe361fe325281a3a2a03759ff59))
44+
45+
## [@libp2p/interface-address-manager-v2.0.2](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v2.0.1...@libp2p/interface-address-manager-v2.0.2) (2022-12-14)
46+
47+
48+
### Bug Fixes
49+
50+
* generate docs for all packages ([#321](https://github.com/libp2p/js-libp2p-interfaces/issues/321)) ([b6f8b32](https://github.com/libp2p/js-libp2p-interfaces/commit/b6f8b32a920c15a28fe021e6050e31aaae89d518))
51+
52+
53+
### Dependencies
54+
55+
* update sibling dependencies ([947cedc](https://github.com/libp2p/js-libp2p-interfaces/commit/947cedcc25aa147768ee5b76577d069491db6ef6))
56+
57+
## [@libp2p/interface-address-manager-v2.0.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v2.0.0...@libp2p/interface-address-manager-v2.0.1) (2022-11-05)
58+
59+
60+
### Bug Fixes
61+
62+
* update project config ([#311](https://github.com/libp2p/js-libp2p-interfaces/issues/311)) ([27dd0ce](https://github.com/libp2p/js-libp2p-interfaces/commit/27dd0ce3c249892ac69cbb24ddaf0b9f32385e37))
63+
64+
## [@libp2p/interface-address-manager-v2.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v1.0.3...@libp2p/interface-address-manager-v2.0.0) (2022-10-07)
65+
66+
67+
### ⚠ BREAKING CHANGES
68+
69+
* add observed address methods (#269)
70+
71+
### Features
72+
73+
* add observed address methods ([#269](https://github.com/libp2p/js-libp2p-interfaces/issues/269)) ([0b157d5](https://github.com/libp2p/js-libp2p-interfaces/commit/0b157d5666caaaaa8676265cab3e4b010872ee41))
74+
75+
## [@libp2p/interface-address-manager-v1.0.3](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v1.0.2...@libp2p/interface-address-manager-v1.0.3) (2022-09-21)
76+
77+
78+
### Trivial Changes
79+
80+
* update project config ([#271](https://github.com/libp2p/js-libp2p-interfaces/issues/271)) ([59c0bf5](https://github.com/libp2p/js-libp2p-interfaces/commit/59c0bf5e0b05496fca2e4902632b61bb41fad9e9))
81+
82+
83+
### Dependencies
84+
85+
* update @multiformats/multiaddr to 11.0.0 ([#288](https://github.com/libp2p/js-libp2p-interfaces/issues/288)) ([57b2ad8](https://github.com/libp2p/js-libp2p-interfaces/commit/57b2ad88edfc7807311143791bc49270b1a81eaf))
86+
87+
## [@libp2p/interface-address-manager-v1.0.2](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v1.0.1...@libp2p/interface-address-manager-v1.0.2) (2022-06-27)
88+
89+
90+
### Trivial Changes
91+
92+
* update deps ([#262](https://github.com/libp2p/js-libp2p-interfaces/issues/262)) ([51edf7d](https://github.com/libp2p/js-libp2p-interfaces/commit/51edf7d9b3765a6f75c915b1483ea345d0133a41))
93+
94+
## [@libp2p/interface-address-manager-v1.0.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-address-manager-v1.0.0...@libp2p/interface-address-manager-v1.0.1) (2022-06-14)
95+
96+
97+
### Trivial Changes
98+
99+
* update aegir ([#234](https://github.com/libp2p/js-libp2p-interfaces/issues/234)) ([3e03895](https://github.com/libp2p/js-libp2p-interfaces/commit/3e038959ecab6cfa3585df9ee179c0af7a61eda5))
100+
* update readmes ([#233](https://github.com/libp2p/js-libp2p-interfaces/issues/233)) ([ee7da38](https://github.com/libp2p/js-libp2p-interfaces/commit/ee7da38dccc08160d26c8436df8739ce7e0b340e))
101+
102+
## @libp2p/interface-address-manager-v1.0.0 (2022-06-14)
103+
104+
105+
### ⚠ BREAKING CHANGES
106+
107+
* most modules have been split out of the `@libp2p/interfaces` and `@libp2p/interface-compliance-tests` packages
108+
109+
### Trivial Changes
110+
111+
* break modules apart ([#232](https://github.com/libp2p/js-libp2p-interfaces/issues/232)) ([385614e](https://github.com/libp2p/js-libp2p-interfaces/commit/385614e772329052ab17415c8bd421f65b01a61b)), closes [#226](https://github.com/libp2p/js-libp2p-interfaces/issues/226)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This project is dual licensed under MIT and Apache-2.0.
2+
3+
MIT: https://www.opensource.org/licenses/mit
4+
Apache-2.0: https://www.apache.org/licenses/license-2.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
2+
3+
http://www.apache.org/licenses/LICENSE-2.0
4+
5+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
The MIT License (MIT)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# @libp2p/interface-address-manager <!-- omit in toc -->
2+
3+
[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4+
[![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-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
6+
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
7+
8+
> Address Manager interface for libp2p
9+
10+
## Table of contents <!-- omit in toc -->
11+
12+
- [Install](#install)
13+
- [Usage](#usage)
14+
- [API Docs](#api-docs)
15+
- [License](#license)
16+
- [Contribution](#contribution)
17+
18+
## Install
19+
20+
```console
21+
$ npm i @libp2p/interface-address-manager
22+
```
23+
24+
## Usage
25+
26+
```js
27+
import type { AddressManager } from '@libp2p/interfaces-address-manager'
28+
```
29+
30+
## API Docs
31+
32+
- <https://libp2p.github.io/js-libp2p/modules/_libp2p_interface_address_manager.html>
33+
34+
## License
35+
36+
Licensed under either of
37+
38+
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
39+
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
40+
41+
## Contribution
42+
43+
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.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"name": "@libp2p/interface-address-manager",
3+
"version": "3.0.1",
4+
"description": "Address Manager interface for libp2p",
5+
"license": "Apache-2.0 OR MIT",
6+
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/interface-address-manager#readme",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/libp2p/js-libp2p.git"
10+
},
11+
"bugs": {
12+
"url": "https://github.com/libp2p/js-libp2p/issues"
13+
},
14+
"keywords": [
15+
"interface",
16+
"libp2p"
17+
],
18+
"type": "module",
19+
"types": "./dist/src/index.d.ts",
20+
"files": [
21+
"src",
22+
"dist",
23+
"!dist/test",
24+
"!**/*.tsbuildinfo"
25+
],
26+
"exports": {
27+
".": {
28+
"types": "./dist/src/index.d.ts",
29+
"import": "./dist/src/index.js"
30+
}
31+
},
32+
"eslintConfig": {
33+
"extends": "ipfs",
34+
"parserOptions": {
35+
"sourceType": "module"
36+
}
37+
},
38+
"release": {
39+
"branches": [
40+
"master"
41+
],
42+
"plugins": [
43+
[
44+
"@semantic-release/commit-analyzer",
45+
{
46+
"preset": "conventionalcommits",
47+
"releaseRules": [
48+
{
49+
"breaking": true,
50+
"release": "major"
51+
},
52+
{
53+
"revert": true,
54+
"release": "patch"
55+
},
56+
{
57+
"type": "feat",
58+
"release": "minor"
59+
},
60+
{
61+
"type": "fix",
62+
"release": "patch"
63+
},
64+
{
65+
"type": "docs",
66+
"release": "patch"
67+
},
68+
{
69+
"type": "test",
70+
"release": "patch"
71+
},
72+
{
73+
"type": "deps",
74+
"release": "patch"
75+
},
76+
{
77+
"scope": "no-release",
78+
"release": false
79+
}
80+
]
81+
}
82+
],
83+
[
84+
"@semantic-release/release-notes-generator",
85+
{
86+
"preset": "conventionalcommits",
87+
"presetConfig": {
88+
"types": [
89+
{
90+
"type": "feat",
91+
"section": "Features"
92+
},
93+
{
94+
"type": "fix",
95+
"section": "Bug Fixes"
96+
},
97+
{
98+
"type": "chore",
99+
"section": "Trivial Changes"
100+
},
101+
{
102+
"type": "docs",
103+
"section": "Documentation"
104+
},
105+
{
106+
"type": "deps",
107+
"section": "Dependencies"
108+
},
109+
{
110+
"type": "test",
111+
"section": "Tests"
112+
}
113+
]
114+
}
115+
}
116+
],
117+
"@semantic-release/changelog",
118+
"@semantic-release/npm",
119+
"@semantic-release/github",
120+
"@semantic-release/git"
121+
]
122+
},
123+
"scripts": {
124+
"clean": "aegir clean",
125+
"lint": "aegir lint",
126+
"dep-check": "aegir dep-check",
127+
"build": "aegir build",
128+
"release": "aegir release"
129+
},
130+
"dependencies": {
131+
"@multiformats/multiaddr": "^12.0.0"
132+
},
133+
"devDependencies": {
134+
"aegir": "^39.0.5"
135+
},
136+
"typedoc": {
137+
"entryPoint": "./src/index.ts"
138+
}
139+
}

0 commit comments

Comments
 (0)