Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit c6e8f3e

Browse files
authored
Merge pull request #262 from ethereumjs/new-release
New release v7.0.3
2 parents bd4ce85 + 616cd77 commit c6e8f3e

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ 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+
## [7.0.3] - 2020-07-07
10+
11+
This release replaces the `keccak` and `secp256k1` dependencies
12+
(PR [#257](https://github.com/ethereumjs/ethereumjs-util/pull/257))
13+
and instead uses the
14+
[ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography)
15+
package that uses native JS implementations for cryptographic primitives
16+
and makes use of modern and forward-compatible N-API implementations in Node
17+
wherever possible.
18+
19+
This is part of a larger initiative led by Nomic Labs to improve the developer
20+
experience within the Ethereum developer ecosystem,
21+
see https://github.com/ethereum/js-organization/issues/18 for context.
22+
23+
**Other Changes:**
24+
25+
- Added `TypeScript` definitions for `ethjs-util` methods,
26+
PR [#248](https://github.com/ethereumjs/ethereumjs-util/pull/248) and
27+
PR [#260](https://github.com/ethereumjs/ethereumjs-util/pull/260)
28+
29+
[7.0.3]: https://github.com/ethereumjs/ethereumjs-util/compare/v7.0.2...v7.0.3
30+
931
## [7.0.2] - 2020-05-25
1032

1133
This patch release re-establishes the state of `v7.0.0` release and upgrades

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ A collection of utility functions for Ethereum. It can be used in Node.js and in
1515

1616
```js
1717
import assert from 'assert'
18-
import { isValidChecksumAddress, unpad, BN } from 'ethereumjs-util'
18+
import { isValidChecksumAddress, unpadBuffer, BN } from 'ethereumjs-util'
1919

2020
const address = '0x2F015C60E0be116B1f0CD534704Db9c92118FB6A'
2121
assert.ok(isValidChecksumAddress(address))
2222

23-
assert.equal(unpad('0000000006600'), '6600')
23+
assert.equal(unpadBuffer(Buffer.from('000000006600', 'hex')), Buffer.from('6600', 'hex'))
2424

2525
assert.equal(new BN('dead', 16).add(new BN('101010', 2)), 57047)
2626
```
@@ -66,6 +66,12 @@ The following methods are available provided by [ethjs-util](https://github.com/
6666
- toAscii
6767
- getKeys
6868

69+
Import can be done directly by function name analogous to the build-in function import:
70+
71+
```js
72+
import { intToHex, stripHexPrefix } from 'ethereumjs-util'
73+
```
74+
6975
### Re-Exports
7076

7177
Additionally `ethereumjs-util` re-exports a few commonly-used libraries. These include:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereumjs-util",
3-
"version": "7.0.2",
3+
"version": "7.0.3",
44
"description": "a collection of utility functions for Ethereum",
55
"main": "dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy