From a65f445b254273c900042d54ad69f93b7190daaa Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 31 Jul 2020 16:27:30 +0100 Subject: [PATCH] fix: replace node buffers with uint8arrays Removes node `Buffer`s in favour of `Uint8Array`s. BREAKING CHANGE: - Where node `Buffer`s were returned, now `Uint8Array`s are --- README.md | 21 ++++++++++--------- package.json | 11 ++++------ src/index.js | 50 +++++++++++++++++++--------------------------- test/index.spec.js | 47 +++++++++++++++++-------------------------- 4 files changed, 52 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index 0d6523b9..a027e9f9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -js-multihash -============ +# js-multihash [![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats) @@ -17,18 +16,18 @@ It is extended by [js-multihashing](https://github.com/multiformats/js-multihash and [js-multihashing-async](https://github.com/multiformats/js-multihashing-async), so give those a look as well. -## Lead Maintainer +## Lead Maintainer [Hugo Dias](http://github.com/hugomrdias/) -## Table of Contents +## Table of Contents - [Install](#install) - - [In Node.js through npm](#in-nodejs-through-npm) - - [Browser: Browserify, Webpack, other bundlers](#browser-browserify-webpack-other-bundlers) - - [In the Browser through `