Skip to content

Releases: foundry-rs/forge-std

v1.5.6

26 May 15:32
e8a047e
Compare
Choose a tag to compare

Featured Changes

  • feat(cheats): add vm.getLabel cheatcode by @Evalir in #370
  • feat(cheats): Add vm.prevrandao to Vm.sol by @Evalir in #377
  • feat(cheats/stdCheats): add destroyAccount stdCheat (used to mimic self-destruct) and vm.setNonceUnsafe and vm.resetNonce cheats by @joaquinlpereyra in #389
  • feat(stdCheats): add boundPrivateKey util by @PaulRBerg in #382
  • feat(stdCheats): add assumeNoBlacklisted cheat by @PaulRBerg in #384
  • feat(logs): pure console.logs by @0xdapper in #374
  • feat(logs): add memory safe logging by @Philogy in #375

Other Changes

New Contributors

Full Changelog: v1.5.5...v1.5.6

v1.5.5

30 Apr 14:02
73d44ec
Compare
Choose a tag to compare

Featured Changes

  • feat: add new filesystem cheatcodes and update existing ones, by @DaniPopes in #367

Other Changes

  • ci: automatically sync v1 release branch on new releases, by @PaulRBerg in #366
  • test: comment out flaky test by @mds1 in #364
  • chore: update infura keys by @mds1 in #368
  • chore: bump to v1.5.5 by @mds1 in #369

New Contributors

Full Changelog: v1.5.4...v1.5.5

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