This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
v4.0.0 - TypeScript Release
First TypeScript based release of the library. TypeScript
handles ES6
transpilation a bit differently (at the end: cleaner) than babel
so require
syntax of the library slightly changes to:
let Blockchain = require('ethereumjs-blockchain').default
The library now also comes with a type declaration file distributed along with the package published.
This release drops support for Node versions 4
and 6
due to internal code updates requiring newer Node.js versions and removes the previously deprecated DB constructor options opts.blockDb
and opts.detailsDb
.
Change Summary:
- Migration of code base and internal toolchain to
TypeScript
, PR #92 - Refactoring of
DB
operations introducing a separateDBManager
class (comes along with dropped Node6
support), PR #91 - Auto-generated
TSDoc
documentation, PR #98 - Replaced
safe-buffer
with native Node.jsBuffer
usage (this comes along with dropped support for Node4
), PR #92 - Dropped deprecated
DB
options, PR #100