Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,11 @@ | ||
<a name="1.0.2"></a> | ||
## [1.0.2](https://github.com/multiformats/js-cid/compare/v1.0.1...v1.0.2) (2020-10-14) | ||
### Bug Fixes | ||
* improve CID typings ([4948267](https://github.com/multiformats/js-cid/commit/4948267)) | ||
<a name="1.0.1"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.1](https://github.com/multiformats/js-cid/compare/v1.0.0...v1.0.1) (2020-09-25) |
{ | ||
"name": "cids", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "CID Implementation in JavaScript", | ||
@@ -60,4 +60,4 @@ "leadMaintainer": "Volker Mische <volker.mische@gmail.com>", | ||
"Enrico Marino <enrico.marino@email.com>", | ||
"Irakli Gozalishvili <contact@gozala.io>", | ||
"Oli Evans <oli@tableflip.io>", | ||
"Irakli Gozalishvili <contact@gozala.io>", | ||
"Alex Potsides <alex@achingbrain.net>", | ||
@@ -64,0 +64,0 @@ "Hugo Dias <hugomrdias@gmail.com>", |
@@ -32,3 +32,3 @@ /** | ||
constructor( | ||
version: 0 | 1, | ||
version: CIDVersion, | ||
codec: string | number, | ||
@@ -38,5 +38,3 @@ multhash: Uint8Array, | ||
); | ||
constructor(cid: CID); | ||
constructor(str: string); | ||
constructor(buf: Uint8Array); | ||
constructor(cid: CID|string|Uint8Array); | ||
@@ -46,8 +44,9 @@ /** | ||
*/ | ||
version: number; | ||
readonly version: CIDVersion; | ||
/** | ||
* The codec of the CID. | ||
* @deprecated | ||
*/ | ||
codec: string; | ||
readonly codec: string; | ||
@@ -57,3 +56,3 @@ /** | ||
*/ | ||
code: number; | ||
readonly code: number; | ||
@@ -63,8 +62,9 @@ /** | ||
*/ | ||
multihash: Uint8Array; | ||
readonly multihash: Uint8Array; | ||
/** | ||
* Multibase name as string. | ||
* @deprecated | ||
*/ | ||
multibaseName: string; | ||
readonly multibaseName: string; | ||
@@ -78,2 +78,3 @@ /** | ||
* The prefix of the CID. | ||
* @deprecated | ||
*/ | ||
@@ -129,2 +130,4 @@ readonly prefix: Uint8Array; | ||
type CIDVersion = 0|1 | ||
export = CID |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1652305
2268