Skip to content

Releases: foundry-rs/forge-std

v1.5.4

27 Apr 21:09
97810eb
Compare
Choose a tag to compare

Featured Changes

Breakpoints

Use vm.breakpoint(string calldata char) and vm.breakpoint(string calldata char, bool value) to set breakpoints when using the debugger. Jump to those breakpoints using '<char>. The bool overload lets you set conditional breakpoints.

More info:

Expect Zero or Many Calls

The vm.expectCall cheats have a new overload that takes a count, which is the number of times you expect that call to be made in the next call. Use a value of zero if you want to test that a call does not occur.

More info:

Other Changes

  • refactor: provide pure bound int that has no console.logs by @PaulRBerg in #350
  • fix: removed unnecessary todo comment by @dd0sxx in #354
  • docs: improve writing in StdChains comments by @PaulRBerg in #355
  • chore: bump to v1.5.4 by @mds1 in #362

New Contributors

Full Changelog: v1.5.3...v1.5.4

v1.5.3

06 Apr 14:23
fc560fa
Compare
Choose a tag to compare

Featured Changes

  • feat: Add new vm.expectSafeMemory cheats by @clabby in #327
  • feat: add Account helper struct to StdCheats by @jameswenzel in #331
  • fix(StdAssertions): % is not displayed as % by @0xdapper in #336
  • feat: add vm.mockCallRevert cheatcode by @reubenr0d in #337
  • feat: add vm.txGasPrice cheat by @mds1 in #341
  • chore: bump DS Test version to add assertNotEq assertion helpers by @0xGuybrush in #339

Other Changes

New Contributors

Full Changelog: v1.5.2...v1.5.3

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