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

Commit

Permalink
Merge pull request #31 from ethereumjs/new-release-v300
Browse files Browse the repository at this point in the history
New release v3.0.0
  • Loading branch information
holgerd77 committed Jan 14, 2019
2 parents c928a61 + 87e9615 commit f1b0961
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
(modification: no type change headlines) and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.0.0] - 2019-01-14

First **TypeScript** based release of the library together with a switch to an `ES6`
class structure of the `Account` class. `TypeScript` handles `ES6` transpilation
[a bit differently](https://github.com/Microsoft/TypeScript/issues/2719) (at the
end: cleaner) than `babel` so `require` syntax of the library slightly changes to:

```javascript
let Account = require('ethereumjs-account').default
```

The library now also comes with a **type declaration file** distributed along with the package published.

- Migration of code base and toolchain to `TypeScript`, PR [#27](https://github.com/ethereumjs/ethereumjs-account/pull/27)
- Updated `ethereumjs-util` dependency to `v6.0.0`

[3.0.0]: https://github.com/ethereumjs/ethereumjs-account/compare/v2.0.5...v3.0.0

## [2.0.5] - 2018-05-08

- Fixes a bug for contract code stored with level DB, PR [#5](https://github.com/ethereumjs/ethereumjs-account/pull/5)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Example for `getCode` and `setCode`:
```javascript
// Requires manual merkle-patricia-tree install
const SecureTrie = require('merkle-patricia-tree/secure')
const Account = require('./index.js')
const Account = require('./index.js').default

let code = Buffer.from(
'73095e7baea6a6c7c4c2dfeb977efac326af552d873173095e7baea6a6c7c4c2dfeb977efac326af552d873157',
Expand Down Expand Up @@ -155,7 +155,7 @@ Example for `getStorage` and `setStorage`:
```javascript
// Requires manual merkle-patricia-tree install
const SecureTrie = require('merkle-patricia-tree/secure')
const Account = require('./index.js')
const Account = require('./index.js').default

let raw = {
nonce: '',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereumjs-account",
"version": "2.0.5",
"version": "3.0.0",
"description": "Encoding, decoding and validation of Ethereum's Account schema",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit f1b0961

Please sign in to comment.