@libp2p/peer-id 1.1.15 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # @libp2p/peer-id <!-- omit in toc -->
2
2
 
3
- [![test & maybe release](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml/badge.svg)](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml)
3
+ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4
+ [![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)
5
+ [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
6
+ [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-peer-id.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-peer-id)
7
+ [![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-peer-id/actions/workflows/js-test-and-release.yml)
4
8
 
5
9
  > Implementation of @libp2p/interface-peer-d
6
10
 
@@ -10,7 +14,7 @@
10
14
  - [Description](#description)
11
15
  - [Example](#example)
12
16
  - [License](#license)
13
- - [Contribution](#contribution)
17
+ - [Contribution](#contribution)
14
18
 
15
19
  ## Install
16
20
 
@@ -39,6 +43,6 @@ Licensed under either of
39
43
  - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
40
44
  - MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
41
45
 
42
- ### Contribution
46
+ ## Contribution
43
47
 
44
48
  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.
@@ -18,7 +18,7 @@ declare class PeerIdImpl {
18
18
  get [Symbol.toStringTag](): string;
19
19
  get [symbol](): boolean;
20
20
  toString(): string;
21
- toCID(): CID;
21
+ toCID(): CID<unknown, 114, number, 1>;
22
22
  toBytes(): Uint8Array;
23
23
  /**
24
24
  * Returns Multiaddr as a JSON encoded object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/peer-id",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "Implementation of @libp2p/interface-peer-d",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p-peer-id/tree/master/packages/libp2p-peer-id#readme",
@@ -28,6 +28,7 @@
28
28
  ],
29
29
  "exports": {
30
30
  ".": {
31
+ "types": "./dist/src/index.d.ts",
31
32
  "import": "./dist/src/index.js"
32
33
  }
33
34
  },
@@ -64,15 +65,15 @@
64
65
  "release": "patch"
65
66
  },
66
67
  {
67
- "type": "chore",
68
+ "type": "docs",
68
69
  "release": "patch"
69
70
  },
70
71
  {
71
- "type": "docs",
72
+ "type": "test",
72
73
  "release": "patch"
73
74
  },
74
75
  {
75
- "type": "test",
76
+ "type": "deps",
76
77
  "release": "patch"
77
78
  },
78
79
  {
@@ -102,7 +103,11 @@
102
103
  },
103
104
  {
104
105
  "type": "docs",
105
- "section": "Trivial Changes"
106
+ "section": "Documentation"
107
+ },
108
+ {
109
+ "type": "deps",
110
+ "section": "Dependencies"
106
111
  },
107
112
  {
108
113
  "type": "test",
@@ -135,8 +140,8 @@
135
140
  "dependencies": {
136
141
  "@libp2p/interface-peer-id": "^1.0.0",
137
142
  "err-code": "^3.0.1",
138
- "multiformats": "^9.6.3",
139
- "uint8arrays": "^3.0.0"
143
+ "multiformats": "^10.0.0",
144
+ "uint8arrays": "^4.0.2"
140
145
  },
141
146
  "devDependencies": {
142
147
  "aegir": "^37.0.7"