Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

v4.0.7 – Mittens

Compare
Choose a tag to compare
@cgewecke cgewecke released this 26 Feb 23:41
· 16046 commits to master since this release

Hello all! ⛵️

Another patch release here.

Geth 1.8 (Iceberg) was published last week and Truffle needed a small change to accommodate its new error reporting behavior. With 4.0.7, migrations on Geth 1.8 should succeed (if they also succeed on 1.7.3) Please let us know if they don't. Thanks to everyone who helped address this in truffle #721, especially @hickscorp who identified the problem early and led the charge to get it fixed.

There's more:

  • unbox is now a respectful guest in your file system, declining to populate already occupied folders. Your README will not longer be accidentally deleted. truffle #786
  • Solidity files that Truffle creates follow the Solidity Style Guide. You could still see a lint warning about pinning the pragma on Migrations.sol but we've followed the consensus view arrived at in this best-practices thread and kept the caret. truffle 791
  • you can specify whether a test suite runs using contract.skip and contract.only. truffle 385, truffle 359
  • chai expect is available in the testing environment. (Thanks @mcdee). ☕️
  • truffle create will error helpfully if the file name you propose isn't legal. (Thanks to @dmihal).
  • Truffle should find your contract artifact even if you rename the file it's in. truffle 580
  • Includes nice additions to the truffle artifact which now exposes:
    • the contract creation transaction hash (Thanks @kingcocomango).
    • solc's new AST which contains a wealth of additional parsing data. Useful if you're building any kind of tooling around the Truffle artifact. (The old AST is now available under the key: legacyAST).
  • Improvements to the issues template in the form of helpful instructions about how to get relevant version information. (Thanks t@wbt).
  • More stuff under the hood, paving the way forward.

Let us know if you run into any problems! Thanks for checking this out.

In order to upgrade to the latest version of Truffle, run this in your favorite command prompt:

npm uninstall -g truffle
npm install -g truffle