This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from ethereumjs/ts
Migrate to Typescript
- Loading branch information
Showing
43 changed files
with
721 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
package-lock.json | ||
node_modules | ||
dist/ | ||
|
||
/baseTrie.js | ||
/checkpointTrie.js | ||
/db.js | ||
/index.js | ||
/prioritizedTaskExecutor.js | ||
/proof.js | ||
/readStream.js | ||
/scratch.js | ||
/scratchReadStream.js | ||
/secure.js | ||
/trieNode.js | ||
/util/ | ||
.nyc_output | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "@ethereumjs/config-nyc", | ||
"include": [ | ||
"dist/**/*.js" | ||
], | ||
"extension": [ | ||
".js" | ||
], | ||
"source-map": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
.vscode | ||
package.json | ||
dist | ||
.nyc_output | ||
*.json | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,73 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
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 | ||
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-03 | ||
|
||
This release comes along with some major version bump of the underlying ``level`` | ||
database storage backend. If you have the library deeper integrated in one of | ||
This release comes along with some major version bump of the underlying `level` | ||
database storage backend. If you have the library deeper integrated in one of | ||
your projects make sure that the new DB version plays well with the rest of the | ||
code. | ||
|
||
The release also introduces modern ``ES6`` JavaScript for the library (thanks @alextsg) | ||
switching to ``ES6`` classes and clean inheritance on all the modules. | ||
The release also introduces modern `ES6` JavaScript for the library (thanks @alextsg) | ||
switching to `ES6` classes and clean inheritance on all the modules. | ||
|
||
- Replace ``levelup`` 1.2.1 + ``memdown`` 1.0.0 with ``level-mem`` 3.0.1 and upgrade ``level-ws`` to 1.0.0, PR [#56](https://github.com/ethereumjs/merkle-patricia-tree/pull/56) | ||
- Support for ``ES6`` classes, PRs [#57](https://github.com/ethereumjs/merkle-patricia-tree/pull/57), [#61](https://github.com/ethereumjs/merkle-patricia-tree/pull/61) | ||
- Updated ``async`` and ``readable-stream`` dependencies (resulting in smaller browser builds), PR [#60](https://github.com/ethereumjs/merkle-patricia-tree/pull/60) | ||
- Replace `levelup` 1.2.1 + `memdown` 1.0.0 with `level-mem` 3.0.1 and upgrade `level-ws` to 1.0.0, PR [#56](https://github.com/ethereumjs/merkle-patricia-tree/pull/56) | ||
- Support for `ES6` classes, PRs [#57](https://github.com/ethereumjs/merkle-patricia-tree/pull/57), [#61](https://github.com/ethereumjs/merkle-patricia-tree/pull/61) | ||
- Updated `async` and `readable-stream` dependencies (resulting in smaller browser builds), PR [#60](https://github.com/ethereumjs/merkle-patricia-tree/pull/60) | ||
- Updated, automated and cleaned up [API documentation](https://github.com/ethereumjs/merkle-patricia-tree/blob/master/docs/index.md) build, PR [#63](https://github.com/ethereumjs/merkle-patricia-tree/pull/63) | ||
|
||
[3.0.0]: https://github.com/ethereumjs/merkle-patricia-tree/compare/v2.3.2...v3.0.0 | ||
|
||
## [2.3.2] - 2018-09-24 | ||
|
||
- Fixed a bug in verify proof if the tree contains an extension node with an embedded branch node, PR [#51](https://github.com/ethereumjs/merkle-patricia-tree/pull/51) | ||
- Fixed ``_scratch`` 'leak' to global/window, PR [#42](https://github.com/ethereumjs/merkle-patricia-tree/pull/42) | ||
- Fixed `_scratch` 'leak' to global/window, PR [#42](https://github.com/ethereumjs/merkle-patricia-tree/pull/42) | ||
- Fixed coverage report leaving certain tests, PR [#53](https://github.com/ethereumjs/merkle-patricia-tree/pull/53) | ||
|
||
[2.3.2]: https://github.com/ethereumjs/merkle-patricia-tree/compare/v2.3.1...v2.3.2 | ||
|
||
## [2.3.1] - 2018-03-14 | ||
- Fix OutOfMemory bug when trying to create a read stream on large trie structures | ||
|
||
- Fix OutOfMemory bug when trying to create a read stream on large trie structures | ||
(e.g. a current state DB from a Geth node), PR [#38](https://github.com/ethereumjs/merkle-patricia-tree/pull/38) | ||
- Fix race condition due to mutated ``_getDBs``/``_putDBs``, PR [#28](https://github.com/ethereumjs/merkle-patricia-tree/pull/28) | ||
- Fix race condition due to mutated `_getDBs`/`_putDBs`, PR [#28](https://github.com/ethereumjs/merkle-patricia-tree/pull/28) | ||
|
||
[2.3.1]: https://github.com/ethereumjs/merkle-patricia-tree/compare/v2.3.0...v2.3.1 | ||
|
||
## [2.3.0] - 2017-11-30 | ||
- Methods for merkle proof generation ``Trie.prove()`` and verification ``Trie.verifyProof()`` (see [./proof.js](./proof.js)) | ||
|
||
- Methods for merkle proof generation `Trie.prove()` and verification `Trie.verifyProof()` (see [./proof.js](./proof.js)) | ||
|
||
[2.3.0]: https://github.com/ethereumjs/merkle-patricia-tree/compare/v2.2.0...v2.3.0 | ||
|
||
## [2.2.0] - 2017-08-03 | ||
- Renamed ``root`` functions argument to ``nodeRef`` for passing a node reference | ||
- Make ``findPath()`` (path to node for given key) a public method | ||
|
||
- Renamed `root` functions argument to `nodeRef` for passing a node reference | ||
- Make `findPath()` (path to node for given key) a public method | ||
|
||
[2.2.0]: https://github.com/ethereumjs/merkle-patricia-tree/compare/v2.1.2...v2.2.0 | ||
|
||
## [2.1.2] - 2016-03-01 | ||
|
||
- Added benchmark (see [./benchmarks/](./benchmarks/)) | ||
- Updated dependencies | ||
|
||
[2.1.2]: https://github.com/ethereumjs/merkle-patricia-tree/compare/v2.1.1...v2.1.2 | ||
|
||
## [2.1.1] - 2016-01-06 | ||
|
||
- Added README, API documentation | ||
- Dependency updates | ||
|
||
[2.1.1]: https://github.com/ethereumjs/merkle-patricia-tree/compare/2.0.3...v2.1.1 | ||
|
||
## [2.0.3] - 2015-09-24 | ||
|
||
- Initial, first of the currently released version on npm | ||
|
||
[2.0.3]: https://github.com/ethereumjs/merkle-patricia-tree/compare/1.1.x...2.0.3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,19 @@ | ||
process.env.ethTest = 'TrieTests' | ||
|
||
module.exports = function (config) { | ||
module.exports = function(config) { | ||
config.set({ | ||
browserNoActivityTimeout: 120000, | ||
browserNoActivityTimeout: 60000, | ||
frameworks: ['browserify', 'detectBrowsers', 'tap'], | ||
files: [ | ||
'./test/*.js' | ||
], | ||
files: ['./test/*.js'], | ||
preprocessors: { | ||
'test/*.js': ['browserify', 'env'] | ||
'./dist/**/*.js': ['browserify'], | ||
'./test/**/*.js': ['browserify'] | ||
}, | ||
singleRun: true, | ||
plugins: [ | ||
'karma-browserify', | ||
'karma-chrome-launcher', | ||
'karma-env-preprocessor', | ||
'karma-tap', | ||
'karma-firefox-launcher', | ||
'karma-detect-browsers' | ||
], | ||
browserify: { | ||
debug: true, | ||
transform: ['babelify'] | ||
}, | ||
detectBrowsers: { | ||
enabled: true, | ||
usePhantomJS: false, | ||
postDetection: function (availableBrowser) { | ||
if (process.env.TRAVIS) { | ||
return ['Firefox'] | ||
} | ||
|
||
var browsers = ['Chrome', 'Firefox'] | ||
return browsers.filter(function (browser) { | ||
return availableBrowser.indexOf(browser) !== -1 | ||
}) | ||
} | ||
postDetection: function(availableBrowsers) { | ||
return ['Firefox'] | ||
}, | ||
} | ||
}) | ||
} |
Oops, something went wrong.