Skip to content

Releases: lipanski/mockito

1.6.1

13 Nov 18:17
Compare
Choose a tag to compare
  • Added Mock::with_header_from_request allowing you to set the header dynamically by using a closure which exposes the Request object

Thanks to @alex-kattathra-johnson

1.6.0

12 Nov 05:47
Compare
Choose a tag to compare
  • Introduced Mock::match_request which exposes the Request object via a closure and can be used to build custom matchers

1.5.0

31 Jul 18:57
Compare
Choose a tag to compare

Thanks to @tottoto

1.4.0

28 Feb 12:58
Compare
Choose a tag to compare
  • [Breaking] Bump minimum supported Rust version to 1.70 and revert version constraints on the colored crate

1.3.1

26 Feb 15:09
Compare
Choose a tag to compare
  • Fixed a bug where Semaphore::const_new wasn't available on Tokio < 1.30 because of the missing Tokio parking_lot feature flag
  • Use the Tokio runtime everywhere to remove the need for the futures crate (aside from futures-core)

Thanks to @tottoto

1.3.0

21 Feb 15:34
Compare
Choose a tag to compare
  • Introduced Server::new_with_opts, Server::new_with_opts_async and the ServerOpts struct to allow configuring the server host, port and enabling auto-asserts (see next item)
  • Added the assert_on_drop server option that allows you to automatically call assert() whenever your mocks go out of scope (defaults to false)
  • Expose Server::socket_address() to return the raw server SocketAddr
  • Use only required features for dependencies
  • Accept hyper::header::HeaderValue as a match_header() value

Thanks to @andrewtoth @alexander-jackson

1.2.0

15 Sep 13:23
Compare
Choose a tag to compare
  • [Breaking] The minimum supported Rust version was bumped to 1.68.0
  • The server pool was limited to 20 servers for mac_os targets to prevent hitting the file descriptor limit

Thanks to @kornelski

1.1.1

14 Sep 08:25
Compare
Choose a tag to compare
  • Ensure with_chunked_body supports streaming responses (as opposed to writing the entire buffer in one go)

Thanks to @kornelski

1.1.0

17 Jun 09:30
Compare
Choose a tag to compare

1.0.2

31 Mar 07:46
Compare
Choose a tag to compare