Skip to content

Releases: foundry-rs/forge-std

v1.5.2

16 Mar 16:57
2b58ecb
Compare
Choose a tag to compare

What's Changed

  • fix: src/ and all subdirectories now included when installing this package with yarn directly from GitHub. by @EdouardBougon in #324

New Contributors

Full Changelog: v1.5.1...v1.5.2

v1.5.1

09 Mar 21:47
73a504d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.0...v1.5.1

v1.5.0

01 Mar 00:34
c223685
Compare
Choose a tag to compare

Featured Changes

  • feat: add StdStyle library to print logs with different colors and styles,by @wirew0lf in #313
    • Example usage: console2.log(StdStyle.red("my red string"))
    • Available method names are red, green, yellow, blue, magenta, cyan, bold, italic, underline, dim, and inverse
  • Rename StdAssertions.sol logs from actual and expected to left and right, to make it easier to read failed assertions, by @Sabnock01 in #290
  • feat(StdCheats): add dealERC721 and dealERC1155 cheats by @wirew0lf in #305
  • feat(StdAssertions): add assertEqCall assertion helpers by @0xPhaze in #311
  • feat(Vm): Add new expectCall variants to assert on the amount of gas passed to a call, by @clabby in #310

Other Changes

  • Bump ds-test and complete assertion log renaming by @Sabnock01 in #307

New Contributors

Full Changelog: v1.4.0...v1.5.0

v1.4.0

14 Feb 16:55
a2edd39
Compare
Choose a tag to compare

Featured Changes

  • refactor(BREAKING CHANGE): rename InvariantTest to StdInvariant and have Test inherit from it by default by @mds1 in #292
  • Add create2 helper methods computeCreate2Address and hashInitCode by @karmacoma-eth in #276
  • Add flag disable default rpc with setFallbackToDefaultRpcUrls(bool) by @hexonaut in #291

Other Changes

  • refactor: rename "who" arg to "msgSender" by @PaulRBerg in #277
  • Just a minor change to stay consistent with the helpful comment by @FredCoen in #278
  • ci: remove key that doesn't work by @mds1 in #284
  • chore: use coercion cheatcodes with stdJson helpers by @odyslam in #294
  • chore: bump to v1.4.0 by @mds1 in #300

Full Changelog: v1.3.0...v1.4.0

v1.3.0

18 Jan 15:23
066ff16
Compare
Choose a tag to compare

Featured Changes

Other Changes

New Contributors

Full Changelog: v1.2.0...v1.3.0

v1.2.0

16 Dec 20:48
eb980e1
Compare
Choose a tag to compare

Featured Changes

Breaking Changes

  • Significantly improved via-ir compilation times with #235 by @ZeroEkkusu. Update your code to use the new getChain methods, such as getChain("mainnet") or getChain(1)

Additional Changes

Other Changes

New Contributors

Full Changelog: v1.1.1...v1.2.0

v1.1.1

22 Nov 10:46
054a250
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

11 Nov 23:11
33d4895
Compare
Choose a tag to compare

Featured Changes

Breaking Changes

  • Fix slow compilation with via-ir by @mds1 in #217. Make sure to update usage stdChains from the form stdChains.Mainnet.chainId to stdChains["mainnet"].chainId

Other Changes

Other Changes

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0

31 Oct 23:55
17656a2
Compare
Choose a tag to compare

forge-std is now modular - enabling composability, and paving the way for new libraries for testing in Solidity.

Features

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 to stdStorageSafe (or will require a manual import of stdStorage)

v0.1.0

14 Apr 15:18
Compare
Choose a tag to compare

Introduces a versioning system so that as we introduce breaking changes, we can bump the version