Releases: web3/web3.js
Releases · web3/web3.js
Release 0.15.2
Release 0.15.0
This release includes minor bug fixes and a new way to get the call data of a contract call.
To get the call data when creating a new contract:
web3.contract(myABI).new.getData(param1, param2, {data: '0x12345...'})
// Returns e.g: 0x1234500000000003240000000023423
To get the call data of a contract method
var my contract = web3.contract(myABI).at(address);
contract.myMethod.getData(param1, param2)
// Returns e.g: 0x1234500000000003240000000023423
Release 0.14.0
This release makes it possible to have multiple instances of web3 running and using multiple providers.
Therefore you need to instantiate now web3 yourself (except when you use mist later on)
var Web3 = require('web3');
// create an instance of web3 using the HTTP provider.
// NOTE in mist web3 is already available, so check first if its available before instantiating
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
Release 0.13.0
This release contains the new web3.eth.syncing
property and web3.eth.isSyncing(callback)
convenience function.
Note that the functionality in the nodes comes with the next release, so you can't use it just yet.
Example:
web3.eth.isSyncing(function(error, sync){
if(!error) {
// stop all app activity
if(sync === true) {
// we use `true`, so it stops all filters, but not the web3.eth.syncing polling
web3.reset(true);
// show sync info
} else if(sync) {
console.log(sync.currentBlock);
// re-gain app operation
} else {
// run your app init function...
}
}
});
Release 0.12.2
- encoding/decoding string fixes
- fixed validation on 35 characters iban numbers
- other small fixes
Release 0.12.1
Release 0.12.0
- allow ICAP addresses
- throw an error on invalid address
Release 0.11.0
- fixed lint issues
sendIBANTransaction
Release 0.10.0
- fixed encoding/decoding of fixed size arrays
- support for decoding nested arrays
- partial support for encoding nested arrays
Release 0.9.2
- fixed
web3.toHex
in go js environment. MethodisFinite
behaves differently there. - fixed
Content-Type