v5.3.0 – Preserves 🍓
Another feature release, so soon! Hi everyone! 👋. We're excited to bring you Truffle v5.3.0 today, officially adding the new truffle preserve
command.🥫
Have you ever needed to come up with a creative solution to manage your dapp assets? Well, good news: Truffle now introduces a mechanism to manage these assets for you, allowing you to focus on building your application instead of configuring new tools.
This means: you can now use Truffle to upload your static assets to IPFS, Filecoin, and/or Textile Buckets. To get started, please see the new Filecoin box and corresponding announcement blogpost to learn more, or just run truffle unbox filecoin
after upgrading Truffle 😄. For detailed information, refer to the corresponding truffle preserve
documentation.
Beyond just the functionality above, this new command expands Truffle's plugin system entirely: the services listed above are themselves just Truffle plugins that we're including by default. (Heck, even the "arbitrary files and directories" functionality is provided by a plugin!) We'll be documenting how to create a truffle preserve
plugin in the coming weeks, so stay tuned there. We're excited that this release brings support for this foundational use case, and we can't wait to see this same system get used for others (verify contracts on Etherscan, anyone? 😉).
One other note, before we go: this release also downgrades @ethereumjs/tx for the time being to address a large number of reported issues about incompatibilities. Hope this solves the problem for you!
We hope you enjoy!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
New features
Internal improvements
- Update preserve typedoc to 0.20 (#3956 by @rkalis)
- Refactor recipe dependency system (#3931 by @rkalis)
- Implement @truffle/preserve-to-buckets (#3926 by @rkalis)
- Implement @truffle/preserve-to-filecoin (#3893 by @rkalis)
Dependency updates
- Downgrade @ethereumjs/tx to ^1.0.0 (#3954 by @eggplantzzz)