Releases: foundry-rs/forge-std
Releases · foundry-rs/forge-std
v1.3.0
Featured Changes
- feat (BREAKING CHANGE): Usability Updates for
StdChainsby @hexonaut in #268. This is a breaking change for some users, check out the PR for more info. - feat: Add
InvariantTesthelper contract by @lucas-manuel in #261. Use it via inheritance, e.g.contract MyInvariantTests is Test, InvariantTest - feat: add
IMulticall3interface andgetTokenBalanceshelper by @PaulRBerg in #271 - feat: add
MULTICALL3_ADDRESSin CommonBase by @PaulRBerg in #266 - feat: add new
assumePayablecheat by @hexcowboy in #270 - feat: add
assertApproxEqAbsDecimalandassertApproxEqRelDecimalassertions by @aaoferreira in #191 - feat:
parseJsoncheatcodes with type coercion by @odyslam in #274
Other Changes
- refactor: use simple revert instead of "require(false" by @PaulRBerg in #265
- Fix compiler warnings by @PaulRBerg in #260
New Contributors
- @lucas-manuel made their first contribution in #261
- @aaoferreira made their first contribution in #191
- @hexonaut made their first contribution in #268
- @hexcowboy made their first contribution in #270
Full Changelog: v1.2.0...v1.3.0
v1.2.0
Featured Changes
Breaking Changes
- Significantly improved via-ir compilation times with #235 by @ZeroEkkusu. Update your code to use the new
getChainmethods, such asgetChain("mainnet")orgetChain(1)
Additional Changes
- feat: Add gas metering cheatcodes + modifier by @brockelmore in #248
- feat: add envOr cheatcodes to Vm interface #3732 by @vicnaum in #249
- feat: implement boundInt by @JhChoy in #253
- chore: add fsMetadata cheat by @mds1 in #251
- feature: isFork and skip modifiers in StdCheats by @prestwich in #236
- feat: improve StdChains by @adhusson in #247
- feat: add common addresses by @mds1 in #229
Other Changes
- ♻️ chore: add MIT license to interfaces by @pcaversaccio in #243
- ci: print forge version in CI by @mds1 in #242
- fix: remove StdStorage in CommonBase contract by @graykode in #241
- fix: remove
StdChainsfromStdCheatsSafeby @ZeroEkkusu in #245 - Name arguments in Vm.sol by @PaulRBerg in #246
- fix: remove
Components.solby @ZeroEkkusu in #255 - chore: bump version to v1.2.0 (the upcoming release) by @mds1 in #228
- fix: move cheats, improve docs by @ZeroEkkusu in #256
New Contributors
- @prestwich made their first contribution in #236
- @graykode made their first contribution in #241
- @vicnaum made their first contribution in #249
- @JhChoy made their first contribution in #253
Full Changelog: v1.1.1...v1.2.0
v1.1.1
What's Changed
- Fix unexpected condition in
boundby @Rubilmax in #220 - Fix IERC1155 Interface name by @jameswenzel in #223
- fix: swap default mainnet RPC URL by @mds1 in #227
- refactor: move bytesToUint to StdUtils for shared use by @NoahMarconi in #222
- chore: bump version to v1.1.1 by @mds1 in #234
New Contributors
- @Rubilmax made their first contribution in #220
- @NoahMarconi made their first contribution in #222
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Featured Changes
Breaking Changes
- Fix slow compilation with
via-irby @mds1 in #217. Make sure to update usagestdChainsfrom the formstdChains.Mainnet.chainIdtostdChains["mainnet"].chainId
Other Changes
- Feat: add serialize (vm.writeJson) to stdjson by @odyslam in #213
- feat: add emitter to Log struct by @davidiola in #214
Other Changes
- chore:
forge fmtby @ZeroEkkusu in #203 - docs: fix ci badge by @ZeroEkkusu in #202
- Use relative imports in interfaces for VSCode linting compatibility by @jameswenzel in #206
- restrict cheats mutability by @adhusson in #205
- fix: ds-test imports + compiler warnings by @mds1 in #210
- chore: remove
\, updateds-testby @ZeroEkkusu in #216 - fix: add signature for bytes by @odyslam in #218
New Contributors
- @jameswenzel made their first contribution in #206
- @adhusson made their first contribution in #205
- @davidiola made their first contribution in #214
Full Changelog: v1.0.0...v1.1.0
v1.0.0
forge-std is now modular - enabling composability, and paving the way for new libraries for testing in Solidity.
Features
- #126 (includes
createCompute2Addressand standards) - Smart
bound - #193
- #195
Breaking changes
- Bump pragma to
>=0.6.2 <0.9.0 - Remove deprecated features (
tipstd-cheat,lowLevelErrorstd-error) - Disallow "unsafe" std-cheats in scripts by default #147
using stdStorage for StdStoragewill break in scripts and will need to be changed tostdStorageSafe(or will require a manual import ofstdStorage)
v0.1.0
Introduces a versioning system so that as we introduce breaking changes, we can bump the version