Releases: trufflesuite/truffle
v5.7.8 — Cinnamon roll soup
Welcome back! 👋 Another Truffle release is out in the wild today. Once again it is mostly a maintenance-type release with some bug fixes and internal improvements. We have to give a shout-out 🔈 to @sandakersmann for updating the copyright information in Truffle's LICENSE file. Thanks so much for helping keep everything tidy and up-to-date! We'll see you next time and we wish you all a beautiful weekend!🦚
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancement
- update Sourcify networks for Sourcify
1.2.2
(#5909 by @haltman-at)
Bug fixes
- fix
console.log
when presentingBigInt
s (#5933 by @cds-amal) - only edit state in
txLog
when an initial state exists (#5919 by @eggplantzzz)
Internal improvements
- error more explicitly when unable to write to cache directory (#5930 by @eggplantzzz)
- remove Aurora support from Etherscan fetcher (#5912 by @haltman-at)
- update copyright year (#5928 by @sandakersmann)
Dependency update
- bump undici from
5.8.2
to5.19.1
(#5908 by @dependabot[bot])
v5.7.7 – Cranberry Orange Upside Down Cake
Hello hello! 👋 It's time for another Truffle release!
This week, we have a little bit of everything for you! Truffle should now properly return an error when it is due to an out of gas exception! 🎉 Previously, these were coming back as custom errors without further information. Additionally, you can now see a link to the Truffle Debugger documentation in the CLI when using it! 👀 Always nice to have more information at your fingertips! ⌨️
Special thanks to @sukanyaparashar for upgrading the solc
dependencies to v0.8.18 in contract-schema
and compile-solidity
packages! 🙏
See below for more detail on the contents of this week's release. Thanks for reading, and we'll see you 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 support for PUSH0 instruction to debugger & disassembler (#5898 by @haltman-at)
- Update Sourcify chains for February 2023 (#5904 by @haltman-at)
- Restrict general help content in REPL context (#5885 by @cds-amal)
- Link to Debugger reference docs (#5892 by @cds-amal)
Bug fixes
- Fix (most) incorrect reports of custom errors (#5903 by @haltman-at)
- Set yargs help to always use truffle instead of script name (#5883 by @cds-amal)
Internal improvements
- Increase timeout on migration out of gas test (#5907 by @haltman-at)
- Disable slack actions (#5889 by @cds-amal)
- Temporarily disable job failure notifications (#5890 by @cds-amal)
- Simplify
Develop.connectOrStart()
's signature (#5891 by @cds-amal) - Suppress evalmachine error stack in truffle consoles (#5888 by @cds-amal)
Dependency updates
- Update ganache to 7.7.5 (#5906 by @haltman-at)
- Upgrade solc dependencies to v0.8.18 in
contract-schema
andcompile-solidity
packages (#5886 by @sukanyaparashar) - Upgrade tsd dev dependency to ^0.25.0 (#5884 by @haltman-at)
- Pin GETH to v1.10.26 (#5900 by @cds-amal)
v5.7.6 – Classic chocolate fondue
Hi folks! Nice seeing you today 🤩
This week's Truffle release brings you fixes to some bugs that got surfaced internally. Hopefully these bugs didn't affect you, or maybe you were too busy dipping pieces of fruit into melted chocolate to open an issue 😮 🍍 🍓. In any case, we recommend reading on and upgrading!
Most notably: you can now switch accounts between transactions in Truffle Dashboard. This wasn't working correctly, which meant problems if (e.g.) your deployment process requires multiple accounts to sign different transactions... not great 🙀! Fortunately, this is now fixed and you can feel free to use Truffle Dashboard for all your CLI-driven signature needs, no matter how many counter-parties you want to involve in your smart contracts. 📄 🖊️
Besides that, Truffle's interactive console (i.e., in truffle develop
and truffle console
) now properly interprets quoted strings... e.g., now "two words"
gets treated as only one string, the way you'd expect! We've also fixed the behavior of our help system inside the interactive console, so now help
inside Truffle's console behaves the same as truffle help
on the command line. ℹ️
Special shout-out to @sukanyaparashar for updating our truffle init
output to the latest Solidity! Thanks for getting that for us 🙏.
Scroll down for all the details if you'd like... regardless, take care and thanks for reading! 👋
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
- Fix help in
truffle develop
andtruffle console
(#5871 by @eggplantzzz) - Support switching accounts between signature requests in Truffle Dashboard (#5846 by @cliffoo)
- Properly handle quotes, backslashes, etc in commands at console (#5861 by @haltman-at)
Internal improvements
- Improve CompilerSupplier via memoization and async filesystem access (#5829 by @eggplantzzz)
- Ensure @truffle/from-hardhat specifies
--no-compile
(#5872 by @kevinbluer)
Dependency updates
- Upgrade solc version to v0.8.18 in truffle init (#5870 by @sukanyaparashar)
v5.7.5 — Chocolate chips
Hey everyone! 🫠 This week we're back with another release that mostly takes care of some good old fashioned housekeeping. 🧹
So Solidity 0.8.18 was recently released and there are a couple of updates here to keep up with them. The one of the two worth mentioning is the new block.prevrandao
alias (for block.difficulty
). This has been added as a globally available variable in the debugger. Additionally, we bumped highlightjs-solidity (which will yield better syntax highlighting) and web3 (woohoo!🎉). We hope you enjoy and we'll 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
Enhancement
- Add
block.prevrandao
as globally available variable in debugger (#5866 by @haltman-at)
Internal improvement
- Add
appendCBOR
field in metadata settings type in source fetcher (#5864 by @haltman-at)
Dependency updates
- Update web3 to
1.8.2
(#5862 by @haltman-at) - Update highlightjs-solidity to
2.0.6
(#5865 by @haltman-at)
v5.7.4 — Chocolate bumpy cake
Hi all, we've got a small release this week but it's got some useful bug 🐛 fixes!
Specifically, there was a problem where, when using abbreviated names of Truffle commands -- for instance, truffle migr
instead of truffle migrate
-- some command-line options might not get set properly. But this has been fixed now so you may be as terse as you please! 🏎
And -- aside from some internal improvements and dependency updates -- that's it! But we'll be back next week with more, and interesting things are brewing for later... 🫖
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 yargs receives the correct command name when it has a typo (#5834 by @eggplantzzz)
Internal improvements
- Add clarification in @truffle/contract README about overloaded functions (#5836 by @eggplantzzz)
- Remove unused error classes (#5835 by @cds-amal)
- Add debugGlobal default to config (#5830 by @eggplantzzz)
Dependency updates
- Update axios to v1.2.4 (#5854 by @eggplantzzz)
v5.7.3 — Everything-free cupcakes 🧁
Hello all! 👋
We hope you're having a great start to 2023 and hanging in there with your New Year's resolutions. 🧘
This week's release offers up a number of quality of life improvements and all round healthy goodness. Firstly, Truffle now ships with Ganache v7.7.3
which adds support for the Merge! ♻️ In addition, Truffle now more robustly handles help requests so truffle help <cmd>
, truffle <cmd> --help
, and truffle --help <cmd>
should all have consistent output when searching for help for a given command. 📖 We've also updated the list of supported networks by Sourcify.
Lastly, Truffle will also now politely ask if you'll be willing to share telemetry when using Truffle Dashboard. 🙏 Note that this will never include any personal data and you can view our analytics policy for more detail.
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
- More robustly handle help requests in Truffle (#5706 by @lsqproduction)
- Have Dashboard politely ask users occasionally if they'll share telemetry (#5827 by @cliffoo)
- Update Sourcify networks for January 2023 (#5831 by @haltman-at)
Bug Fixes
Internal improvements
- Remove unused dev dependency for codec docs (#5825 by @haltman-at)
- Build codec and preserve docs as part of bootstrap (#5823 by @cds-amal)
Dependency updates
- Upgrade Ganache to
v7.7.3
(#5824 by @MicaiahReid)
v5.7.2— Mimosa Butter Cookies
Hello all, welcome to 2023!!! 🥂 🥳 🍾
We are back at it again with our weekly releases. 🛼
A big shoutout to @dPreininger for ringing in the ✨ new year 🎉 with a bug fix for Truffle! There was an issue they fixed with Truffle's development console to prevent crashes when interacting with Vyper smart contracts 🐍. Thank you for getting this! Many contributed their time and talent last year, and we are very much looking forward to collaborating more this year with our community. Please feel free to reach out if you find any issues in our backlog exciting. 🙇
🏗️ Please take a moment to complete The Solidity Development Survey 2022. The last day to fill out the survey is January 7th. Thank you! 🙏🏽
See you soon!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Bug fix
- Fix
truffle console
crash when metadata is missing in JSON artifact (#5819 by @dPreininger)
Internal improvements
Dependency updates
v5.7.1 — Chocolate 🍫 Pavlova with Spiced Pears 🍐
Hello all! 👋
We want to bring a delicious chocolate 🍫 pavlova with spiced pears 🍐 to celebrate 🎉 this holiday season. Sit down 🪑, relax 🤗, and enjoy 🥳!!!
While Truffle dropped support for Node 12 a while back, we hadn't been enforcing this in our Node version check at startup. We now check this; Truffle will now refuse to run on Node 12 to prevent any problems.
One more thing! Please take a moment to complete The Solidity Development Survey 2022. This helps our community 🧑🏽🤝🧑🏽 to improve. Thanks! 🙏🏽
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Internal improvements
Dependency updates
- Upgrade web3 to v1.8.1 (#5794 by @eggplantzzz)
- Upgrade Ganache to v7.6.0 (#5791 by @haltman-at)
v5.7.0 — Some treats!
Hey ho, we have a release!
Let's go, enjoy it with some treats! 🍫
It's Thursday yet again and we have a Truffle release coming your way!
import "truffle/console.sol";
Then you can call console.log()
similar to how you would in JavaScript.
console.log("this is logging and here is an address - %o", msg.sender);
Now when you run this code during a Truffle test run or in Truffle's console environment, you will receive logging! Super cool! 🪵
Another change we have this week is an update to the ENS infrastructure. When deploying an ENS dev registry, Truffle will also deploy a reverse registrar to allow for reverse resolution. So happy resolving!
@truffle/provider received a spruce up as well! Remember EIP 1193? This is the one that specifies a request
method on providers (in addition to some other things). Now @truffle/provider is 1193 compliant!
Lastly we have a couple improvements that are a bit more internal to Truffle. A bit of code was cleaned up and fixed 🛠️, and an improvement which makes the encoding of contract creations easier was added.
ℹ️ Oh and before we go, we'd like to once again remind you that the Solidity team is conducting a survey to find ways of bettering the language and the compiler. So go complete it here to help improve the ecosystem!
And that should be it for this week! Happy middle of December to everyone and we'll see you again 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
Feature
Enhancements
- include a reverse registrar when deploying a dev registry (#5763 by @haltman-at)
- add
encodeCreation()
method to Encoder (#5777 by @haltman-at) - make @truffle/provider compatible with EIP-1193 (#5743 by @sukanyaparashar)
Bug fixes
- fix missing mocha runner during in-test debugging setup (#5782 by @gnidan)
- add workaround for weird migration format (#5785 by @cds-amal)
- don't load Truffle's console contract into the console environment (#5788 by @eggplantzzz)
Internal improvement
- remove
require
cache invalidation (#5780 by @eggplantzzz)
v5.6.9 — Bucket of Caramel Popcorn
Hello all! 👋
It seems like everyone is overjoyed 🥳 seeing their favourite players scoring goals. Are you feeling the FOOTBALL WORLD CUP ⚽ fever too? Then enjoy munching on a bucket full of caramel popcorn 🍿 with a new Truffle Release 🎉 to take your excitement to another level!
This week's release includes a 🐛 fix for the type issues with hdwallet-provider
in your Typescript projects. Yay! 🎉 We also added support for Boba Goerli network 🕸️ to truffle debug --fetch-external
. "More networks = More verification = More fun = More Safety"
One more thing! Please take a moment to complete The Solidity Development Survey 2022. This helps our community 🧑🏽🤝🧑🏽 to improve. Thanks! 🙏🏽
Sit back and cheer for your favourite teams! See you next week with a new Truffle Release! 🥳
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancement
- Switch Etherscan fetcher from Boba Rinkeby to Boba Goerli (#5761 by @haltman-at)
Bug fix
- Fix hdwallet types (#5767 by @eggplantzzz)
Internal improvements
- Remove Arbitrum Rinkeby and Optimistic Kovan from Etherscan fetcher (#5759 by @haltman-at)
Dependency updates
- Upgrade express to v4.17.3 (#5769 by @dependabot[bot])
- Upgrade qs to v6.5.3 (#5770 by @dependabot[bot])
- Upgrade decode-uri-component to v0.2.2 (#5768 by @dependabot[bot])