Releases: web3/web3.js
web3.js 1.0.0-beta.35
This adds support for the stateMutability
property fo solidity 0.5.0, and some minor fixes.
Breaking change:
The HTTP provider now accepts an options object, instead of timeout
and headers
parameters:
var options = {
timeout: 20000, // milliseconds,
headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}]
};
var http = new Web3HttpProvider('http://localhost:8545', options);
web3.js 1.0.0-beta.34
This release includes a change where the status
property from receipts is now a Boolean and not 0x0
or 0x1
anymore.
Also the web socket provider now accepts an options object with timeout
and headers
.
v0.20.6 latest maintenance release
build files
Release 0.19.0
Another maintenance release with some small additions.
The main work is going into 1.0 at #558 right now.
This release contains the following additions:
- Checks for the right argument number in contract functions thanks to @cdetrio
- Fix for "filterCreationErrorCallback is not a function" thanks to @obale
- Export padLeft and padRight as functions on the
web3
object thanks to @nanexcool - added
web3.eth.signTransaction()
thanks to @denisgranha - adding
personal.importRawKey
,personal.sign
andpersonal.ecRecover
thanks to @peculiarity
Also thanks goes to @peculiarity and @zmitton for smaller fixes.
Release 0.18.4
Adds web3.eth.signTransaction()
Release 0.18.2
Small patch for the node module fixing #548
Release 0.18.1
This is a minor patch to ensure compatibility with go-ethereum aka geth
Release 0.18.0
This release supersedes the never officially released 0.17.0-beta
This contains Fixes and additions from @NodeGuy, @phiferd, @pedrobranco, @federicobond, @jbaylina, @YESPPG and @gaiazov. Mainly fixes on the contract call decoder and async fixes.
This also adds the experimental Swarm API. Please be aware that it might change.
The main work is right now going on the 1.0 branch. To follow the work take a look at the PR #423
Release 0.16.0
This version introduces the web3.personal.lockAccount(address)
method.
It fixes an issue with sha3 not returning HEX with 0x
prefix and it now allows to pass the options parameter to the sha3 method.
also the inputAddressFormatter will now throw an exception when a wrong address is passed.
Release 0.15.3
This is a minor release with a new address checksum scheme.
web3.toChecksumAddress(address)
- converts any address to a checksummed address (0xfb6916095ca1df60bb79ce92ce3ea74c37c5d359
➔0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359
) according to Vitalik's EIPweb3.isChecksumAddress(address)
- returnstrue
if an address contains a valid checksum, otherwisefalse
. Only checks case matching the address, doesn't check address format.web3.isAddress()
- returnsfalse
if it's not on a valid address format. Returnstrue
if it's an all lowercase or all uppercase valid address. If it's a mixed case address, it checks usingweb3.isChecksumAddress()
.
Thanks to @dan-turner who we added web3.personal
with account unlocking and creating functionality. Be aware that you have to enable that first when using RPC over HTTP using the --rpcapi
flag. Please read more here: https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options
Note that many of the API will change in the coming 1.0 release, so don't get used to this to much ;)