From 0696e4d2c68fd8acf0f587394632a484797a6da1 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 4 Aug 2020 16:35:25 +0100 Subject: [PATCH] fix: replace node buffers with uint8arrays Removes use of node Buffers in favour of Uint8Arrays. BREAKING CHANGE: - The `.data` property used to be a Buffer, now it is a Uint8Array --- README.md | 36 ++++++++++++++++++++---------------- package.json | 7 +++---- src/index.js | 13 +++++-------- test/index.spec.js | 18 +++++------------- 4 files changed, 33 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index ede6429..28dfd31 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,23 @@ ## Table of Contents -- [Install](#install) - - [npm](#npm) -- [Usage](#usage) - - [Node.js](#nodejs) - - [Example](#example) - - [Browser: Browserify, Webpack, other bundlers](#browser-browserify-webpack-other-bundlers) - - [Browser: `