This repository was archived by the owner on Nov 5, 2020. It is now read-only.
File tree 3 files changed +21
-3
lines changed
3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
(modification: no type change headlines) and this project adheres to
7
7
[ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
8
8
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
+
9
27
## [ 2.0.5] - 2018-05-08
10
28
11
29
- Fixes a bug for contract code stored with level DB, PR [ #5 ] ( https://github.com/ethereumjs/ethereumjs-account/pull/5 )
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ Example for `getCode` and `setCode`:
117
117
``` javascript
118
118
// Requires manual merkle-patricia-tree install
119
119
const SecureTrie = require (' merkle-patricia-tree/secure' )
120
- const Account = require (' ./index.js' )
120
+ const Account = require (' ./index.js' ). default
121
121
122
122
let code = Buffer .from (
123
123
' 73095e7baea6a6c7c4c2dfeb977efac326af552d873173095e7baea6a6c7c4c2dfeb977efac326af552d873157' ,
@@ -155,7 +155,7 @@ Example for `getStorage` and `setStorage`:
155
155
``` javascript
156
156
// Requires manual merkle-patricia-tree install
157
157
const SecureTrie = require (' merkle-patricia-tree/secure' )
158
- const Account = require (' ./index.js' )
158
+ const Account = require (' ./index.js' ). default
159
159
160
160
let raw = {
161
161
nonce: ' ' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ethereumjs-account" ,
3
- "version" : " 2 .0.5 " ,
3
+ "version" : " 3 .0.0 " ,
4
4
"description" : " Encoding, decoding and validation of Ethereum's Account schema" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments