Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

v4.0.0 - TypeScript Release

Compare
Choose a tag to compare
@holgerd77 holgerd77 released this 26 Apr 10:04
· 35 commits to master since this release
d6235a7

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 separate DBManager class (comes along with dropped Node 6 support), PR #91
  • Auto-generated TSDoc documentation, PR #98
  • Replaced safe-buffer with native Node.js Buffer usage (this comes along with dropped support for Node 4), PR #92
  • Dropped deprecated DB options, PR #100