Releases: foundry-rs/forge-std
Releases · foundry-rs/forge-std
v1.2.0
Featured Changes
Breaking Changes
- Significantly improved via-ir compilation times with #235 by @ZeroEkkusu. Update your code to use the new
getChain
methods, 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
StdChains
fromStdCheatsSafe
by @ZeroEkkusu in #245 - Name arguments in Vm.sol by @PaulRBerg in #246
- fix: remove
Components.sol
by @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
bound
by @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-ir
by @mds1 in #217. Make sure to update usagestdChains
from the formstdChains.Mainnet.chainId
tostdChains["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 fmt
by @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-test
by @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
createCompute2Address
and standards) - Smart
bound
- #193
- #195
Breaking changes
- Bump pragma to
>=0.6.2 <0.9.0
- Remove deprecated features (
tip
std-cheat,lowLevelError
std-error) - Disallow "unsafe" std-cheats in scripts by default #147
using stdStorage for StdStorage
will 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