v5.1.39 — Saltwater Taffy
Hello all! 👋 Apologies about the confusing numbering; due to a technical error 🐛, version 5.1.38 has been skipped.
This week we're continuing to update Truffle for Solidity 0.7.0; the Migrations.sol
contract used in truffle init
has been updated to work with Solidity 0.7.0. The other big news this week is that config
is now available as a global 🌍 for use in truffle exec
scripts; so if you've needed information from your Truffle configuration in your scripts, now you have access to it!
In addition, a bug has been fixed that would prevent the debugger from starting properly when used in truffle develop
, and trailing semicolons should cause less of a problem at the Truffle console as well. And thanks to @CruzMolina for eliminating the node-gyp
dependency from Truffle (and for so many other things this week), which was causing problems for some people. No more! 🧹
Finally, it's worth noting that we've started the deprecation 🕸 process for truffle build
and truffle watch
, planning for their eventual removal. These were already marked as deprecated in our documentation, but it wasn't very visible. 🔦 We've made it more so by having them print deprecation messages on use. We've put up issues #3226 and #3227 for people who want to discuss this 📭, in case there's a good way to continue to maintain these commands that we haven't thought of.
We hope you're all pleased with this week's release, and we'll see you all next week!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Put contract creations back in affectedInstances (#3231 by @haltman-at)
- Add config global to
truffle exec
(#3233 by @eggplantzzz) - Use require in Migrations and update for 0.7.0 and future (#3230 by @haltman-at)
Bug fixes
- Remove field to prevent clobbering network name in develop (#3219 by @eggplantzzz)
- Sanitize input in console to prevent errors. (#3220 by @eggplantzzz)
Internal improvements
- Add compile flag
--save-intermediate
to save raw compiler results to disk (#3216 by @seesemichaelj) - Upgrade all TS packages to ES2016 (#3245 by @haltman-at)
- Port @truffle/provisioner to TS (#3240 by @CruzMolina)
- Fix @truffle/interface-adapter -> @truffle/provider -> @truffle/interface-adapter dependency cycle (#3242 by @CruzMolina)
- Add deprecation messages for build and watch command (#3229 by @eggplantzzz)
- Change default port for Ganache during testing (#3218 by @eggplantzzz)
- Bump Travis CI jobs to Node 10.x (#3237 by @CruzMolina)
- Set debugger webpack test config to development mode (#3232 by @haltman-at)
- Check analytics config before creating new process (#3217 by @seesemichaelj)
Dependency updates
- Upgrade @trufflesuite/web3-provider-engine to v15.0.13-1 (#3244 by @CruzMolina)
- Upgrade ganache-core to v2.11.2 (#3238 by @CruzMolina)
- Upgrade ethereumjs-util to v4.5.1 (#3225 by @CruzMolina)
- Upgrade ethashjs to v0.0.8 (#3224 by @CruzMolina)