Comparing version 3.1.2 to 4.0.1
@@ -0,1 +1,19 @@ | ||
## [4.0.1](https://github.com/multiformats/js-multibase/compare/v4.0.0...v4.0.1) (2021-02-26) | ||
# [4.0.0](https://github.com/multiformats/js-multibase/compare/v3.1.2...v4.0.0) (2021-02-26) | ||
### Features | ||
* remove typeVersions and update aegir to v31 ([#85](https://github.com/multiformats/js-multibase/issues/85)) ([e3d4811](https://github.com/multiformats/js-multibase/commit/e3d48114083cbc6f0f3606e41c0e3e4b743e88f7)) | ||
### BREAKING CHANGES | ||
* No longer supports deep type imports only from the entrypoint. | ||
## [3.1.2](https://github.com/multiformats/js-multibase/compare/v3.1.1...v3.1.2) (2021-02-26) | ||
@@ -2,0 +20,0 @@ |
@@ -18,3 +18,3 @@ export = multibase; | ||
} | ||
type BaseNameOrCode = "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "identity" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58btc" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad"; | ||
type BaseNameOrCode = "identity" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58btc" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U"; | ||
/** | ||
@@ -63,4 +63,4 @@ * Encode data with the specified base and add the multibase prefix. | ||
declare function encodingFromData(data: string | Uint8Array): Base; | ||
declare var names: Readonly<Record<import("./types").BaseName, import("./base")>>; | ||
declare var codes: Readonly<Record<import("./types").BaseCode, import("./base")>>; | ||
declare const names: Readonly<Record<import("./types").BaseName, import("./base")>>; | ||
declare const codes: Readonly<Record<import("./types").BaseCode, import("./base")>>; | ||
type Base = import("./base"); | ||
@@ -67,0 +67,0 @@ type BaseCode = "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U"; |
/** | ||
* - Codes of the supported encodings | ||
*/ | ||
export declare type BaseCode = '\x00' | '0' | '7' | '9' | 'f' | 'F' | 'v' | 'V' | 't' | 'T' | 'b' | 'B' | 'c' | 'C' | 'h' | 'k' | 'K' | 'z' | 'Z' | 'm' | 'M' | 'u' | 'U'; | ||
export type BaseCode = | ||
| '\x00' | ||
| '0' | ||
| '7' | ||
| '9' | ||
| 'f' | ||
| 'F' | ||
| 'v' | ||
| 'V' | ||
| 't' | ||
| 'T' | ||
| 'b' | ||
| 'B' | ||
| 'c' | ||
| 'C' | ||
| 'h' | ||
| 'k' | ||
| 'K' | ||
| 'z' | ||
| 'Z' | ||
| 'm' | ||
| 'M' | ||
| 'u' | ||
| 'U' | ||
/** | ||
* - Names of the supported encodings | ||
*/ | ||
export declare type BaseName = 'identity' | 'base2' | 'base8' | 'base10' | 'base16' | 'base16upper' | 'base32hex' | 'base32hexupper' | 'base32hexpad' | 'base32hexpadupper' | 'base32' | 'base32upper' | 'base32pad' | 'base32padupper' | 'base32z' | 'base36' | 'base36upper' | 'base58btc' | 'base58flickr' | 'base64' | 'base64pad' | 'base64url' | 'base64urlpad'; | ||
export declare type BaseNameOrCode = BaseCode | BaseName; | ||
export type BaseName = | ||
| 'identity' | ||
| 'base2' | ||
| 'base8' | ||
| 'base10' | ||
| 'base16' | ||
| 'base16upper' | ||
| 'base32hex' | ||
| 'base32hexupper' | ||
| 'base32hexpad' | ||
| 'base32hexpadupper' | ||
| 'base32' | ||
| 'base32upper' | ||
| 'base32pad' | ||
| 'base32padupper' | ||
| 'base32z' | ||
| 'base36' | ||
| 'base36upper' | ||
| 'base58btc' | ||
| 'base58flickr' | ||
| 'base64' | ||
| 'base64pad' | ||
| 'base64url' | ||
| 'base64urlpad' | ||
export type BaseNameOrCode = BaseCode | BaseName | ||
export interface Codec { | ||
encode: (buffer: Uint8Array) => string; | ||
decode: (hash: string) => Uint8Array; | ||
encode: (buffer: Uint8Array) => string | ||
decode: (hash: string) => Uint8Array | ||
} | ||
export interface CodecFactory { | ||
(input: string): Codec; | ||
} | ||
//# sourceMappingURL=types.d.ts.map | ||
export interface CodecFactory { (input: string): Codec } |
{ | ||
"name": "multibase", | ||
"version": "3.1.2", | ||
"version": "4.0.1", | ||
"description": "JavaScript implementation of the multibase specification", | ||
@@ -29,19 +29,16 @@ "keywords": [ | ||
"test:browser": "aegir test -t browser", | ||
"docs": "aegir docs", | ||
"release": "aegir release --docs", | ||
"release-minor": "aegir release --type minor --docs", | ||
"release-major": "aegir release --type major --docs", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage publish" | ||
"release": "aegir release", | ||
"release-minor": "aegir release --type minor", | ||
"release-major": "aegir release --type major" | ||
}, | ||
"dependencies": { | ||
"@multiformats/base-x": "^4.0.1", | ||
"web-encoding": "^1.0.6" | ||
"web-encoding": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^30.3.0", | ||
"aegir": "^31.0.0", | ||
"benchmark": "^2.1.4" | ||
}, | ||
"engines": { | ||
"node": ">=10.0.0", | ||
"node": ">=14.0.0", | ||
"npm": ">=6.0.0" | ||
@@ -53,13 +50,5 @@ }, | ||
"types": "dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"src/*": [ | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"contributors": [ | ||
"Hugo Dias <hugomrdias@gmail.com>", | ||
"David Dias <daviddias.p@gmail.com>", | ||
"Hugo Dias <hugomrdias@gmail.com>", | ||
"Oli Evans <oli@tableflip.io>", | ||
@@ -66,0 +55,0 @@ "Friedel Ziegelmayer <dignifiedquire@gmail.com>", |
@@ -147,3 +147,5 @@ /** | ||
exports.encodingFromData = encodingFromData | ||
exports.names = Object.freeze(constants.names) | ||
exports.codes = Object.freeze(constants.codes) | ||
const names = Object.freeze(constants.names) | ||
const codes = Object.freeze(constants.codes) | ||
exports.names = names | ||
exports.codes = codes |
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
640
33122
21
Updatedweb-encoding@^1.1.0