Releases: alexliesenfeld/httpmock
Releases · alexliesenfeld/httpmock
v0.8.0-alpha.1
BREAKING CHANGES
- A new MockServer::reset method was added that resets a mock server. Thanks for providing the pull request for this feature, @dax.
- The default port for standalone server was changed from
5000
to5050
due to conflicts with system services on macOS. - Custom matcher functions are now closures rather than functions.
- When::json_body_partial was renamed to
json_body_includes
. - When::x_www_form_urlencoded_tuple was renamed to
form_urlencoded_tuple
. - When::x_www_form_urlencoded_key_exists was renamed to
form_urlencoded_key_exists
. - Error message output has been changed for better readability (e.g., when calling
Mock::assert
). - Custom matcher function
When::matches
has been renamed toWhen::is_true
.
Improvements
- Record and Playback mode was added
- Many new matchers functions have been added
- Proxy Mode was added
- Website docs have been created (see https://alexliesenfeld.github.io/httpmock/)
- HTTPS support added
- Internal implementation was entirely rewritten
v0.7.0
-
BREAKING CHANGES:
- For connecting to remote
httpmock
servers during tests using any of theconnect
methods like
MockServer::connect,
MockServer::connect_async,
MockServer::connect_from_env, or
MockServer::connect_from_env_async,
you must now activate theremote
feature. This feature is not enabled by default.
- For connecting to remote
-
Improvements:
- The dependency tree has been significantly slimmed down when the
remote
feature is not enabled. - If the new
remote
feature is not enabled,httpmock
no longer has a dependency on a real HTTP client.
As a result, certain TLS issues previously reported by users
should no longer arise.
- The dependency tree has been significantly slimmed down when the
-
This release also updates all dependencies to the most recent version.
-
The minimum Rust version has been bumped to 1.70.
v0.7.0-rc.1
-
BREAKING CHANGES:
- For connecting to remote
httpmock
servers during tests using any of theconnect
methods like
MockServer::connect,
MockServer::connect_async,
MockServer::connect_from_env, or
MockServer::connect_from_env_async,
you must now activate theremote
feature. This feature is not enabled by default.
- For connecting to remote
-
Improvements:
- The dependency tree has been significantly slimmed down when the
remote
feature is not enabled. - If the new
remote
feature is not enabled,httpmock
no longer has a dependency on a real HTTP client.
As a result, certain TLS issues previously reported by users
should no longer arise.
- The dependency tree has been significantly slimmed down when the
-
This release also updates all dependencies to the most recent version.
-
The minimum Rust version has been bumped to 1.65 (and 1.70 for the remote and standalone features).
v0.6.8
- This is a maintenance release that updates all dependencies to the most recent version.
- Fixes some dependency issues with the Docker image.
v0.6.7
Version 0.6.7
- This is a maintenance release that updates all dependencies to the most recent version.
v0.6.6
- Extended some API methods to allow for more type flexibility (see #58). Thanks to @95th for providing the PR!
- Fixed parsing query parameter values that contain
+
to represent space (see #56). Thanks to @95th for providing the PR! - Added a new Cargo feature
cookie
to shorten compile time (see #63). Thanks to mythmon for providing this PR!
v0.6.5
v0.6.4
Fixed minimum Rust version in README (raised from 1.47 to 1.54, see release 0.6.3 for more information).
v0.6.3
- This is a maintenance release that updates all dependencies to the most recent version.
- Bumped minimum Rust version to 1.54 due to transitive dependency.