Embark 1.1.0
New to Embark?
If you are new to Embark, see the Readme.
To Update to 1.1.0
npm update -g embark-framework
If updating an existing project, run embark demo to see the differences, a lot has changed.
In this release
Compatibility Updates
support for:
- geth 1.4.4
- node 5.0.0
- web3 0.16.0
- solc 0.3.2-1
Testing Framework
Embark now uses a more recent version of EtherSim for its testing. You can expect the same functionality available in ethersim such as account creation, setting balances and "time travel" to test time sensitive functionality.
# test/simple_storage_spec.js
var assert = require('assert');
var Embark = require('embark-framework');
var EmbarkSpec = Embark.initTests();
var web3 = EmbarkSpec.web3;
describe("SimpleStorage", function() {
before(function(done) {
EmbarkSpec.sim.createAccounts(10, function() {
EmbarkSpec.sim.setBalance(web3.eth.accounts[0], 1000000000000000000000, function() {
EmbarkSpec.deployAll(done);
});
});
});
it("should set constructor value", function(done) {
SimpleStorage.storedData(function(err, result) {
assert.equal(result.toNumber(), 100);
done();
});
});
it("set storage value", function(done) {
SimpleStorage.set(150, function() {
SimpleStorage.get(function(err, result) {
assert.equal(result.toNumber(), 150);
done();
});
});
});
})Embark Demo update
The classic SimpleStorage demo included in embark demo has been given a facelift, some code fixes, and some guidelines to help newcomers.
Less Dependencies
Ethersim is now an optional dependency, you will be requested to install it if using embark simulator or embark spec. This makes the installation process much much faster and should help some people who couldn't or didn't want to install Ethersim and its dependencies.
The grunt-embark plugin has been moved back into the main embark repo. This separation caused update issues in many cases and turned out to be unnecessary. It's still possible to use embark without Grunt and it's compatible with Meteor, Gulp or whatever pipeline you prefer.
Misc Improvements
- fixed issue in the mining script
- added option "testnet" to blockchain.yml
Thanks
Special thanks to Aakil Fernandes, Area and RJ Catalano for contributions to this release.
