Releases: trufflesuite/truffle
v5.5.31 — Fall Snickerdoodle Cobbler
Hello and happy first day of Fall! 🍂 For those in the Northern Hemisphere, the leaves are changing color, the air is crisp and cool, and we're entering the land of warm sweaters and hot cocoa! What better time to settle in and build the future with Truffle?
This week's release has a smattering of small changes, mostly internal improvements. Many thanks to our external contributor @maksumic this week for finding and fixing a typo! Also, you may have noticed The Merge was recently successfully completed, so it is worth noting that Truffle supports the new PREVRANDAO opcode. 🎉
Happy coding 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
- Update 0x44 to PREVRANDAO|DIFFICULTY (#5545 by @haltman-at)
Bug fixes
Internal improvements
- Type opcodes table as const in @truffle/code-utils (#5557 by @gnidan)
- Increase timeout on cyclic dependencies test (#5546 by @haltman-at)
- Eliminate circular dependency between compile-solidity and resolver (#5540 by @haltman-at)
- Convert workflow-compile to TypeScript (#5458 by @eggplantzzz)
- Remove property that seems to be unused (#5538 by @eggplantzzz)
Dependency updates
v5.5.30 — Big Rock Candy Mountain
Hello once again! 👋
Recently we added experimental 🧪 support for using Truffle Debugger 🔬 with Hardhat projects. Well, this experiment is turning up results 🦠; @tomasz90 found that our implementation had problems for Hardhat projects whose configuration scripts would write to stdout. We've now fixed this error, so hopefully more people can now try out this (still experimental 🧑🔬) feature! Thanks Tomasz!
There are some other minor changes this week; we've updated the solc version in truffle init
to 0.8.17. And thanks to @eltociear for fixing a typo in one of our READMEs, and to @sashashura for a security improvement to our CI! 💂
That's it this week, but as always there's more coming soon!
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 step information to txlog (#5519 by @haltman-at)
- Upgrade solc version to latest 0.8.17 in truffle init (#5521 by @sukanyaparashar)
Bug fixes
- Fix @truffle/from-hardhat's support for Hardhat projects whose config files produce stdout (#5510 by @gnidan)
- Fix computation of event status in flattedEvents (#5512 by @haltman-at)
Internal improvements
- Move compile-solidity tests to a new separate package (#5445 by @eggplantzzz)
- Fix typo in contract/README.md (#5534 by @eltociear)
- GitHub Workflows security hardening (#5503 by @sashashura)
Dependency updates
- Upgrade solc to 0.8.17 (#5522 by @sukanyaparashar)
v5.5.29 — Raw chocolate
Hello once again!
In this week's Truffle release we've added the ability to use instance.estimateGas()
⛽ or instance.call()
☎ with Truffle Contract. (The latter won't work if your contract already has a method named call
.) This is useful if you want to estimate the gas used by the fallback function, or to test the fallback function's return value.
Also this week, @Neurone has updated the list of URLs that we source the Solidity compiler from. Faster solc binaries have now been given a higher priority, so hopefully this should reduce your compile times! 🏇
In addition, we've added support in truffle debug --fetch-external
for more of the networks supported by Etherscan, so you can debug 🕵 verified contracts on more networks. And as always, come back next week for even more improvements to Truffle! 👋
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
instance.estimateGas()
andinstance.call()
(#5426 by @haltman-at) - Add hecoinfo testnet back in to source-fetcher (#5497 by @haltman-at)
- Add optimistic goerli to etherscan fetcher (#5496 by @haltman-at)
Bug fixes
Internal improvements
- Properly time REPL inputs (#5479 by @cds-amal)
- Use canonical URL for goerli-optimistic (#5508 by @haltman-at)
- Use
@truffle/spinners
in@truffle/preserve
instead ofspinnies
(#5485 by @benjamincburns) - Remove faker from abi-utils and generate arbitraries manually (#5484 by @eggplantzzz)
Dependency updates
v5.5.28 — Saltier Saltwater Taffy
Hello all! 👋
This week sees a large-scale revamp of Truffle Dashboard. 🏎 It's faster with fewer interruptions; it has a 🌙 dark mode; and your wallet will no longer disconnect upon refresh. These are only some of the ways that Truffle Dashboard has been improved; you may want to check out the PR for details!
Meanwhile, other improvements continue apace! ⛵ The commands truffle --version
and truffle -v
should now work correctly, in addition to the already-supported syntax of truffle version
. The --fetch-external
option for Truffle Debugger now supports fetching Etherscan-verified contracts from the Gnosis network. 🦉 And for those of you using the @truffle/abi-utils
library, we've added functions for computing signatures and selectors. ✍
Finally, thanks to @ebrahimmfadae for spotting and fixing a deployer error that could occur when using the overwrite
option!
That's all for this week, but as always we'll be back soon 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
- Dashboard frontend revamp (dark mode, performance, etc) (#5241 by @cliffoo)
- Add selector and signature computation functions to
abi-utils
(#5465 by @haltman-at) - Add gnosis network to etherscan fetcher (#5469 by @haltman-at)
Bug fixes
- Add --from to global command options (#5451 by @sukanyaparashar)
- Add command handling for '--version' & '-v' (#5395 by @lsqproduction)
- Fix error on deploying with
overwrite
option (#5448 by @ebrahimmfadae)
Internal improvements
- Remove unnecessary config entry in dev deps for compile-solidity (#5487 by @eggplantzzz)
- Fully convert compile-solidity to use TypeScript (#5432 by @eggplantzzz)
- Fix typo in
package.json
(#5463 by @cliffoo) - Bring
@truffle/preserve
package back inside the monorepo (#5455 by @benjamincburns)
Dependency updates
- Update
@trufflesuite/spinnies
to 0.1.1 (#5456 by @benjamincburns) - Update apollo-server-core from 3.6.3 to 3.10.1 (#5460 by @dependabot[bot])
- Update acorn from 6.4.0 to 6.4.2 (#5457 by @dependabot[bot])
- Update shell-quote from 1.7.2 to 1.7.3 (#5454 by @dependabot[bot])
v5.5.27 — Knickerbocker Glory 🍧
Hello again! 👋
It's that time of the week for a delicious new Truffle release 🍧
Ever wanted to use the Truffle Debugger within a Hardhat project? Well this release introduces a new package that does just that! 🔥 To try it out, simply run truffle debug <txHash>
and Truffle handles the rest. This is an experimental feature so there may be 🐉's and as always we'd love your feedback!
The files generated by truffle init
have been updated and now better reflect the scenarios in which Truffle is commonly used. 🎨 Beyond that we've added the godwoken mainnet when using debugger's --fetch-external
flag. There's also an update to the debugger's block.difficulty
calculation in preparation for the merge.
Shout out to @eltociear for typo fix in compilations/types.ts
too! 🙏
That's all for now! See you next week for another candy-fueled 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
- Devise new experimental @truffle/from-hardhat package for compatibility translation (#5420 by @gnidan)
- Hook up
truffle debug
to @truffle/from-hardhat (#5434 by @gnidan) - Add godwoken mainnet to sourcify fetcher (#5444 by @haltman-at)
- Prepare debugger's
block.difficulty
reporting for the merge (#5431 by @haltman-at) - Update
truffle init
artifacts (#5320 by @sukanyaparashar) - Allow extractOptions to work with -option (#5443 by @lsqproduction)
Bug fixes
- Prevent crash that occurs when processing certain bad jumps (#5425 by @haltman-at)
Internal improvements
- Fix typo in compilations/types.ts (#5435 by @eltociear)
- Use TruffleError instead of Error while parsing mutually exclusive options (#5433 by @sukanyaparashar)
- Expose @truffle/compile-solidity's bytecode shims (#5418 by @gnidan)
Dependency updates
- Standardize
@types/node
version and upgrade all TS packages to use[email protected]
(#5423 by @benjamincburns)
v5.5.26 — Jammie Dodger 🍓
Hey ya'll 👋 We hope you're having a great week! To hopefully make it even better, we've got a fruity new Truffle release for you 😋
First up, there's a number of improvements to truffle opcode
and the @truffle/code-utils
package. These include various bug 🐛 fixes, improved Vyper support, and a reworked interface to @truffle/code-utils
.
With Optimism's deprecation of the Kovan testnet, in preparation for the merge, we've added Optimistic Goerli to Sourcify fetcher. ♻️
We've fixed a bug where Truffle would use inconsistent information when trying to download the Solidity compiler! In addition, we've squashed a bug wherein the --grep
option to Truffle Test didn't always work properly.
Beyond that, there's a range of version bumps and config tweaks. And last but not least we've removed a bunch of warnings
That's all for now! And in case you were wondering 🍓
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Various improvements to
truffle opcode
and@truffle/code-utils
(#5408 by @haltman-at) - Add optimistic goerli to sourcify fetcher (#5416 by @haltman-at)
- Update the solc version to latest
0.8.16
in truffle init (#5412 by @sukanyaparashar)
Bug fixes
- Parse grep option as a string for
truffle test
(#5415 by @cds-amal) - Fix retry mechanism for fetching the Solidity compiler (#5388 by @eggplantzzz)
Internal improvements
- Switch ganache to use 'eager' mode in test environment (#5407 by @eggplantzzz)
- Remove HECO testnet from Etherscan fetcher (#5411 by @haltman-at)
- Ignore browser-dist (#5405 by @cds-amal)
- Add more types in compile-solidity (#5394 by @eggplantzzz)
- Remove abi-util node types warning (#5398 by @benjamincburns)
- Remove tsutils peer dep warning on bootstrap (#5402 by @benjamincburns)
- Remove graphql-tag warning by bumping patch version (#5401 by @benjamincburns)
- Remove jest-fast-check warning (#5400 by @benjamincburns)
- Remove ts-node peer dep warning (#5399 by @benjamincburns)
- Remove ts-jest warning (#5397 by @benjamincburns)
Dependency updates
- Upgrade abi-to-sol to
v0.6.5
(#5396 by @haltman-at) - Upgrade solc to
v0.8.16
(#5413 by @sukanyaparashar)
v5.5.25 — Chocolate Cubes
Hello all! 🦙
This week we've fixed a bug 🐛 that prevented the test
🦉 and migrate
🦋 commands from working properly with public testnets, and with Truffle Dashboard, when used from the Truffle Console. These should now work properly, and you can get on with testing on testnets! 🥅
Other than that, we have various new capabilities added to the @truffle/debugger
🕵 and @truffle/encoder
libraries, for anyone who is using those libraries directly; we also have a bunch of internal improvements. Notably, @truffle/contract
is now compiled with Webpack rather than Browserify, which will allow us to better make improvements to it in the future.
That's all for this week, but as always, we'll be back soon 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
- Include raw call data in txlog in all cases (#5391 by @haltman-at)
- Add
allowJson
andstrictBooleans
options to encoder (#5376 by @haltman-at) - Add
flattedEvents
selector to debugger (#5385 by @haltman-at) - Allow encoder to look up functions by full signature (#5375 by @haltman-at)
Bug fixes
- Fix console for test and migrate to work with public testnets and dashboard (#5329 by @sukanyaparashar)
- Update @truffle/core in truffle and update yarn.lock (#5380 by @davidmurdoch)
Internal improvements
- Remove unnecessary CI guard (#5392 by @cds-amal)
- Remove incorrect comment (#5389 by @haltman-at)
- Migrate contract to use webpack from browserify (#4728 by @cds-amal)
- Verify versions of
@truffle
dependencies on commit (#5384 by @benjamincburns) - Make the
develop:ganache
debug prefix orange (#5378 by @davidmurdoch) - Edit folder name for browser dist files (#5343 by @eggplantzzz)
v5.5.24 – Terry's Chocolate Orange
Hello again! 👋 It's the end of a hot July, and we have a few improvements to offer. 😋
This release has a bug fix to ensure error information is propagated during contract migration. Thanks, @SmartArray for raising this issue 🙇 We also updated our Ganache dependency to v7.4.0, which opens some exciting possibilities. Watch this space! 👀
Stay cool and 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
- Update celoscan url (#5348 by @haltman-at)
Bug fix
- Ensure deployment error events always return the message (#5361 by @haltman-at)
Internal improvements
- Set quoteProps to 'consistent' in prettierrc (#5350 by @haltman-at)
- Use test fixtures in encoder and compile-solidity (#5346 by @cds-amal)
- Custom jest resolver for db (#5359 by @cliffoo)
- Add a comment and update some others (#5349 by @haltman-at)
- Run
lerna bootstrap
via yarn exec instead of npx (#5344 by @benjamincburns) - Lay infrastructure to write TypeScript migrations (#5222 by @benjamincburns)
Dependency update
v5.5.23 – Dorayaki
It's nearing the end of a week and that means another Truffle release! 😋
We shook off some outdated 📠 dependencies, and added a raw
field to the event
action in the Truffle debugger txlog
✨. This new field is available even if decoding fails, so it's a nice fail-safe 💪 that reliably gives you transaction details. How cool! 🌟
Have yourself a Dorayaki (Japanese red bean pancake) and enjoy the rest of your week. 🎉 Until 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
- Enhancement: Include raw event data in txlog (#5324 by @haltman-at)
Internal improvements
- Remove ethpm integration test (#5317 by @cds-amal)
- Remove hardcoded path to webpack in packages/truffle (#5336 by @cliffoo)
Dependency updates
- Upgrade @ensdomains/ensjs to v2.1.0 (#5307 by @eggplantzzz)
- Upgrade axios to v0.27.2 (#5308 by @eggplantzzz)
- Upgrade fast-check to v2.15.1 (#5309 by @eggplantzzz)
- Upgrade jest to v28.1.3 (#5309 by @eggplantzzz)
- Upgrade ts-jest to v28.0.6 (#5309 by @eggplantzzz)
- Upgrade semver to v7.3.7 (#5309 by @eggplantzzz)
- Upgrade ttypescript to v1.5.13 (#5309 by @eggplantzzz)
- Upgrade typedoc to v0.20.37 (#5309 by @eggplantzzz)
- Upgrade typescript-transform-paths to v3.3.1 (#5309 by @eggplantzzz)
- Upgrade json-pointer to v0.6.2 (#5310 by @dependabot)
- Upgrade terser to v4.8.1 (#5331 by @dependabot)
v5.5.22 – Sago Pudding
Hey everybody 👋 Hope you're having a great Friday afternoon. Have we got a new Truffle release for you!
Truffle console remediated the behavior for assignments with await
(e.g. foo = await bar
). We also provide a gentle error 🌱 instead of crashing on invalid Truffle commands.
Shout-out to @burz for adding a GitPOAP badge to the README, 🥳 so fun! Also @wbt for spotting and resolving the ethereumjs-util version issue! 🙌
Truffle is updated to use the latest Ganache at v7.3.2 ✨
We've also removed the truffle install
and truffle publish
commands due to a rather lackluster level of community support for EthPM. Discussion here.
Note that the debugger removed the indicateUnknown
option and defaults it to true. That's a breaking change so there's a new major for @truffle/debugger (v10.0.17 => v11.0.0
)
That's about it for this week. Tune in next week for 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
- Error out better on incorrect Truffle command (#5266 by @lsqproduction)
- Add Boba support to Etherscan fetcher (#5271 by @haltman-at)
- Add
debug_storageRangeAt
integration to debugger library (#5286 by @haltman-at) - Add XinFin Apothem testnet support to Sourcify fetcher (#5287 by @haltman-at)
Bug Fixes
- Correct return behavior for
await
in Truffle console (#5270 by @haltman-at) - Remove ethpm support (#5283 by @sukanyaparashar)
Internal improvements
- Better mnemonic and private key validation logic (#5261 by @eggplantzzz)
- Add integration tests for debug command (#5263 by @sukanyaparashar)
- Add dependency check to Github Actions (#5264 by @cds-amal)
- Clear
Browserslist caniuse-lite is outdated
message when building dashboard (#5273 by @cliffoo) - Add missing
buffer
import indashboard-message-bus-common
(#5274 by @cliffoo) - Add GitPOAP badge in README to show minted GitPOAPs for contributors (#5284 by @burz)
- Remove reference to leftover typings in contract's
package.json
(#5288 by @eggplantzzz) - Increase timeout on decoder test (#5291 by @haltman-at)
Dependency updates
- Upgrade ethereumjs-util to v7.1.5 (#5261 by @wbt and @eggplantzzz)
- Upgrade ganache to v7.3.2 (#5269 by @haltman-at)
- Upgrade @ensdomains/ensjs to v2.1.0 (#5289 by @eggplantzzz)
- Upgrade ethereumjs-wallet to v1.0.2 (#5303 by @eggplantzzz)
- Upgrade ethereum-cryptography to v1.1.2 (#5303 by @eggplantzzz)
- Upgrade webpack-cli to v4.10.0 (#5304 by @eggplantzzz)
- Upgrade webpack to v5.73.0 (#5304 by @eggplantzzz)