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

Commit f1b0961

Browse files
authored
Merge pull request #31 from ethereumjs/new-release-v300
New release v3.0.0
2 parents c928a61 + 87e9615 commit f1b0961

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
(modification: no type change headlines) and this project adheres to
77
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
88

9+
## [3.0.0] - 2019-01-14
10+
11+
First **TypeScript** based release of the library together with a switch to an `ES6`
12+
class structure of the `Account` class. `TypeScript` handles `ES6` transpilation
13+
[a bit differently](https://github.com/Microsoft/TypeScript/issues/2719) (at the
14+
end: cleaner) than `babel` so `require` syntax of the library slightly changes to:
15+
16+
```javascript
17+
let Account = require('ethereumjs-account').default
18+
```
19+
20+
The library now also comes with a **type declaration file** distributed along with the package published.
21+
22+
- Migration of code base and toolchain to `TypeScript`, PR [#27](https://github.com/ethereumjs/ethereumjs-account/pull/27)
23+
- Updated `ethereumjs-util` dependency to `v6.0.0`
24+
25+
[3.0.0]: https://github.com/ethereumjs/ethereumjs-account/compare/v2.0.5...v3.0.0
26+
927
## [2.0.5] - 2018-05-08
1028

1129
- Fixes a bug for contract code stored with level DB, PR [#5](https://github.com/ethereumjs/ethereumjs-account/pull/5)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Example for `getCode` and `setCode`:
117117
```javascript
118118
// Requires manual merkle-patricia-tree install
119119
const SecureTrie = require('merkle-patricia-tree/secure')
120-
const Account = require('./index.js')
120+
const Account = require('./index.js').default
121121

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

160160
let raw = {
161161
nonce: '',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereumjs-account",
3-
"version": "2.0.5",
3+
"version": "3.0.0",
44
"description": "Encoding, decoding and validation of Ethereum's Account schema",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)