Releases: trufflesuite/truffle
v5.5.21 – Mango Falooda
Hello everyone!👋 Happy summer!☀️
It is a fresh new week with a few new delicious treats for you, an enhancement, a dependency update and a couple of important internal improvements.
First up is an enhancement which adds new Sourcify networks for the month of July. Next is a dependency update for abi-to-sol
. We have updated the version of abi-to-sol
used in @truffle/resolver
package, so importing ABI JSON files in your Solidity projects will work better! 🎉
Thank you @s1na for fixing the GETH docker in our CI and @eltociear for fixing a typo in our documentation. We love contributions from our users.🙏🏻
That is all for this week and we hope to bring some more sweet delicacies for you next week. Stay tuned!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add Sourcify networks for July 2022 (#5256 by @haltman-at)
Internal improvements
- Fix docker run script to work with Geth stable (#5258 by @s1na)
- Fix typo in utils/index.js (#5259 by @eltociear)
Dependency updates
v5.5.20 – Maple Bacon Bar
Hello everyone. 🎇 Happy July!
We've got a few tasty treats and an important bug fix for you. 👩🏻💻
Starting off, we added a --url
option to truffle console
command.
It untethers the truffle console
from a truffle project, allowing interactions with any chain when connected to a node. Say hello to flexibility. All the nice things that Truffle Console provides you for free (such as a web3 object and accounts)are available, except of course that if you're outside of a Truffle project there won't be any contracts.
Next up, hdwallet-provider
now supports the signTypedData_v4
adding the capability to work with EIP712 domains.
We want to take a moment to thank our community for opening the issues regarding missing modules and dependencies. Thank you for contributing and helping us to resolve the issue, now we correctly import the required packages.
That's all and more to come 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
- Add --url option in truffle console command (#5087 by @sukanyaparashar)
- Support v4 of signTypedData in hdwallet-provider (#5224 by @eggplantzzz)
Bug Fixes
Internal improvements
- Move several tests to a better location (#5255 by @eggplantzzz)
- Clean up some scenario tests (#5252 by @eggplantzzz)
- Further simplify scenario tests (#5253 by @eggplantzzz)
- Refactor console-child.js to make the network settings more robust (#5245 by @sukanyaparashar)
- Simplify contract-sources's default export (#5239 by @eggplantzzz)
- pin geth to v1.10.19 (#5250 by @eggplantzzz)
- Remove callback argument for Migrate.run (#5240 by @eggplantzzz)
- Add script to detect missing dependencies (#5230 by @cds-amal)
- Change transaction type to match decoder transaction (#5192 by @lsqproduction)
- Use correct returns after callbacks (#5238 by @eggplantzzz)
Dependency updates
- Update solc version to 0.8.15 (#5227 by @sukanyaparashar)
- Update jsdom version to 16.7.0 (#5228 by @dependabot[bot])
- Upgrade Web3 version to 1.7.4 (#5177 by @cds-amal)
v5.5.19 – Kesar Gulab Jamun
Hey everyone! 👋
Fresh off of our team powwow, we've got a release for you! We offer a number of improvements this week. 🦾 Dashboard is more mature now with improvements under the hood. ⛓ A weird error in the deployment promise chain flow has been resolved.
Thanks to @swisstackle for discovering and fixing a Windows compatibility issue when building Dashboard locally, and @vdamle for tracking down and bumping a vulnerable pouchdb
version. Your contributions are always appreciated. 🙏
Also note that truffle init
will now use solc
version 0.8.15
by default.
Stay tuned for more 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
Bug Fixes
- Ensure errors are re-thrown in deferred-chain deployment (#5216 by @haltman-at)
Internal improvements
-
Roundup of Dashboard PRs (#5198 by @benjamincburns, @michaeljohnbennett, @gnidan, and @cliffoo)
-
Remove support for hoo network from source-fetcher (#5221 by @haltman-at)
-
Add
cross-env
to support Dashboard build on Windows (#5173 by @swisstackle) -
Update Ganache options to use
miner.blockGasLimit
(#5191 by @lsqproduction) -
Remove unused methods in deployer (#5190 by @eggplantzzz)
Dependency updates
-
Update
solc
version intruffle init
to0.8.15
(#5217 by @sukanyaparashar)
v5.5.18 – The Cronut 🥐 🍩
Hello all! 👋
This week's release is named in honor of the cronut, a croissant-doughnut hybrid that is the "stuff of legend" in New York City, where it originated from in early 2013. On the subject of NYC, a number of Trufflers will be in NYC through NFT.NYC, give us a shout if you're around 🗽
Onwards to the release! This week's contains a number of small quality of life improvements including the decoding of multicalls in Truffle Decoder and minor bug fixes.
We also have a fix for Truffle Contract's behavior when attempting to send transactions that will necessarily revert. Truffle Contract was supposed to error out before sending the transaction, preventing gas from being spent on it, but instead it sent the transaction anyway. Now it will error out before sending the transaction (except in the context of truffle test --stacktrace
, so you can get a proper stacktrace of how it failed). Lastly, a big thanks to @eltociear for the contribution this week too!
That's all for now. See you next week for the next installment.
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add decoding of multicalls to
@truffle/decoder
(#4955 by @haltman-at)
Bug Fixes
- Fix typo in index.js (#5187 by @eltociear)
- Properly error out when estimateGas fails (and stacktracing is disabled) (#5158 by @haltman-at)
Internal improvements
- Replace dry-run supported networks list with one from Ganache (#5183 by @haltman-at)
Dependency updates
- Upgrade Ganache to
^7.2.0
(#5181 by @haltman-at)
v5.5.17 – Caramel Apple
Hello all! 👋
This week we have some debugger improvements. We've fixed the behavior of the step over 🩴 and step out 🥾 commands so that they behave more consistently and intuitively, and we've increased the number of networks supported by truffle debug --fetch-external
. 🐕
Also, thanks to @swisstackle for helping us to get our CONTRIBUTING.md
up to date. If you've got your own idea 💡 for how to improve Truffle, hopefully you will find these clarifications helpful!
Finally, this release removes the default plugins for truffle preserve
. In our research, we found that very few people made use of this feature, and the removal of these plugins from Truffle’s bundle improves installation time and other issues by a factor of >10x. 🏎 Starting today, you should notice a significant performance improvement and reduction in NPM warnings. For those of you affected by this change, please see the preserve example box for information on how to install these plugins yourself.
That's all for this week, but as always, we'll be back next week with more!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add support for more networks to sourcify source fetcher (#5156 by @haltman-at)
- Add non-testnet DFK to sourcify fetcher (#5164 by @haltman-at)
Bug Fixes
- Fix behavior of stepOver and stepOut on function definitions (#5143 by @haltman-at)
Internal improvements
- Update CONTRIBUTING.md file (#5162 by @swisstackle)
- Change Community badge on README (#5166 by @lsqproduction)
- Remove all preserve plugins from truffle bundle (#5135 by @cds-amal)
Dependency updates
- Bump eventsource from 1.1.0 to 1.1.1 (#5163 by @dependabot[bot])
v5.5.16 – Soan Papdi
Hello once more! 🍧
Back at it again with our weekly release. 🍾
🕶 We made the Truffle commands faster. 🚀
An added goodness 🥁🥁 The truffle debug --fetch-external
command can now fetch sources verified on Etherscan for the Sepolia network.
Our community has pointed out that the types on @truffle/contract are not usable; as such, we've removed them. We hope to add usable types at a later time.
⏰ A friendly reminder for everyone that with Node 12 coming to end of life at the end of the month, we will be dropping support for it on May 31, 2022. The recommended Node versions are 14, 16, & 18 with NPM 6. 👩🏻💻
🌈 See you in June!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add sepolia support to etherscan fetcher (#5147 by @haltman-at)
Bug Fix
- Remove incorrect typings from contract (#5142 by @eggplantzzz)
Internal improvements
- Restructure bundle for Truffle (#5114 by @eggplantzzz)
- Prevent fetch-and-compile tests from hitting the network (#5139 by @haltman-at)
- Add CodeNotSuppliedError, modify StorageNotSuppliedError (#5128 by @haltman-at)
- Add dashboard-message-bus-client module (#4936 by @benjamincburns)
v5.5.15 – Classic Cannoli
Hello again 👋
We have a small offering this week. Besides the house cleaning improvements, we added new network capabilities to our source fetching capabilities, as well as an improvement to the debugger's txlog which now includes events 🎉! Please note, projects generated with truffle init
🏗️ will now use solc 0.8.14
by default.
We'd also like to remind everyone that with Node 12 coming to end of life at the end of the month, we will be dropping support for it on May 31, 2022. As such, please prepare accordingly.
See you next time!
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 events in txlog (txlog part 2) (#4882 by @haltman-at)
- Add more networks to sourcify source fetcher (#5115 by @haltman-at)
- Add cronos testnet to etherscan source fetcher (#5113 by @haltman-at)
- Update truffle/contract README examples (#4709 by @kevinweaver)
- Improve default truffle-config.js readability (#5047 by @davidmurdoch)
- Update truffle init solc version to 0.8.14 (#5122 by @haltman-at)
Internal improvements
- Test suite optimizations (#5093 by @eggplantzzz)
- Fix name of network in source-fetcher (#5119 by @haltman-at)
- More test suite optimizations (#5090 by @eggplantzzz)
v5.5.14 – Lemon Lavender Cupcakes 🧁
Hi again! 👋
This week's release has a little bit of everything, including two enhancements. Of particular note, you can now compile specified sources! For instance, if you wish to compile only your SimpleStorage.sol contract, simply type truffle compile SimpleStorage.sol
. 🎉
We’ve also changed the way the @truffle/resolver
package is exported, favoring the ES6 syntax. Resolver
is now the default export of the package.
That’s it for this week! Please enjoy and let us know if you have any feedback or questions! 💻
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
-
Add ability to compile only specified sources (#5079 by @eggplantzzz)
-
Change export and import of Resolver (#5094 by @fainashalts)
Bug fixes
Internal improvements
- Remove
meta-npm
andmeta-pkgs
(#5101 by @cds-amal) - Remove copy util from core (#5097 by @eggplantzzz)
Dependency updates
- Upgrade
minimist
to v1.2.6 (#5098 by @dependabot[bot]) - Upgrade
cross-fetch
to v2.2.6 (#5099 by @dependabot[bot])
v5.5.13 – Piñata Cake 🍰
Hello again! 👋
This week’s release contains a smattering of improvements and updates. Notably, the Truffle source-fetcher now supports many more networks! If Etherscan or Sourcify supports a network, you should be able to use source-fetcher with it as well.
We've also made it so that you can consistently set Ganache options in truffle test
and truffle develop
by setting them in the test and develop networks (respectively) in your config. Previously the options the two accepted were different and a bit spotty; now they're consistent and more expansive.
Additionally, we updated Truffle's dependency on the reselect-tree package, which should address issues some users have reported with the Truffle Debugger. Give it a try! 👩💻
A special thank you to @GitHubPang for fixing a typo in our Codec readme. 🙇♂️ External contributions are always welcome and appreciated!
We'd also like to remind everyone that with Node 12 coming to end of life at the end of the month, we will be dropping support for it on May 31, 2022. As such, please prepare accordingly.
That’s it for this week. Please enjoy and let us know if you have any feedback or questions! 🥳
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add even more networks to source-fetcher (#5076 by @haltman-at)
- Specify --platform when running solc Docker image (#5080 by @gnidan)
- Refactor truffle develop and truffle test codes (#5030 by @sukanyaparashar)
Internal Improvements
- Remove unit test from db (#5062 by @tenthirtyone)
- Refactor connectOrStart (#4671 by @cds-amal)
- Fix typo in readme (#5077 by @GitHubPang)
Dependency Updates
- Upgrade reselect-tree to v1.3.6 (#5072 by @haltman-at)
- Upgrade reselect-tree to v1.3.7 (#5082 by @haltman-at)
v5.5.12 - Ganache-alicious ✨
Hey y'all!
This week's release is named in honor of Ganache's shiny new "VM overrides during eth_call" feature. In slightly less technospeak, Ganache now supports overriding the contract code and storage and the account balance and nonce for simulations with eth_call
. What's more it ships directly in this release! More details and an example of it in action available in Ganache's v7.1.0 release notes.
Also available in this week's release is a new interface for fetch-and-compile
that removes the need for a Truffle config file. A big thanks to @GitHubPang for a number of wording improvements and squashing of typos.
In other news, with Node 12 coming to end of life at the end of the month, we will be dropping support for it on May 31, 2022. As such, please prepare accordingly.
That’s it for now, please enjoy and as always we love your feedback ❤️
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add new interface for fetch-and-compile that doesn't require a Truffle config (#5054 by @haltman-at)
Bug fixes
- Allow use of ENS with mapping key watching in decoder (#5057 by @haltman-at)
- Prevent intermediate state from appearing in final txlog (#5048 by @haltman-at)
- Ensure all contracts get primary source id attached in shimContracts (fix phantom stackframes, again) (#5040 by @haltman-at)
Internal improvements
- Rename ganache-cli to ganache (#5046 by @davidmurdoch)
- Auto-request reviews from dev team on non-draft PRs (#5039 by @benjamincburns)
- Fix typos and improve wording in comments (#5064 by @GitHubPang)
- Fix typo in comment (#5055 by @GitHubPang)
Dependency updates
- Upgrade
ganache
to^7.1.0
(#5067 by @haltman-at)
Deprecations
- Remove unused
@truffle/dashboard-provider
module (#5036 by @benjamincburns)