Skip to content

Releases: wiremock/wiremock

3.0.0-beta-5

23 Mar 16:55
Compare
Choose a tag to compare

Some bug fixes, dependency updates and a couple of new features.

Fixes

#2035 - skips NPE when a multipart could not be parsed - thanks @sickmartian
#2019 - fixed clock skew problem with certificate generation - thanks Alexander Gazarov
Fixed exception thrown when using path template matching when request URL does not match structure
Fixed diff reporting when path templates or variables do not match

Enhancements

#2087 - added support for disabling proxy pass-through - thanks Kapish Malik
#2006 - added NOT matcher that inverts other matchers - thanks Arihant Kaushik
#2103 - added request IP to template model - thanks Benjamin Marwell
#2058 - made proxy timeout configurable - thanks Lukas Pradel
#2054 - allow fixing class loader in ClasspathFileSource - thanks Arian Treffer

3.0.0-beta-4

09 Mar 18:37
Compare
Choose a tag to compare

Dependency updates, bug fixes and a performance regression fix.

Fixes

#2072 - fixed multipart upload parsing behaviour so that a full buffer doesn't cause the request to hang.

Now forcibly closes all connections on server shutdown so we don't have to wait for the grace period to expire each time (which had the effect of trebling build time).

Fixed the build output so that that we're not putting a spurious fat JAR with an -all classifier in the thin JAR artifact.

WireMock standalone can be downloaded here: https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/3.0.0-beta-34/wiremock-standalone-3.0.0-beta-4.jar

3.0.0-beta-3

27 Feb 15:55
Compare
Choose a tag to compare

This release upgrades a number of dependencies and adds URL path templating support.

Enhancements

  • Support for matching URLs by path template.
  • Support for matching path variables in the same manner as query, headers etc.
  • Support for addressing path variables by name in response templates.

See https://github.com/wiremock/wiremock.org-sources/blob/3.0.0-beta/_docs/request-matching.md#path-templates for docs.

3.0.0-beta-2

30 Dec 19:09
Compare
Choose a tag to compare

This is the start of a series of beta releases of WireMock that will add some major new features and introduce some breaking changes, although we'll try to make these as painless as possible.

Changes in this release:

  • Minimum Java version is now 11
  • Jetty 11 upgrade (also considered beta as performance seems to have regressed a little vs. 9.x)
  • Introduction of a stores abstraction (with default implementations that maintain current behaviour) so that persistent storage backends can be plugged in. API may be subject to change during the beta period.

2.35.0

02 Nov 20:40
a137ab1
Compare
Choose a tag to compare

Enhancements

  • Add a negative contains matcher - thanks Damian Orzepowski
  • Expose a Java API method for removing stubs by ID - thanks Patryk Fraczek
  • Document the import API in the OpenAPI doc - thanks to user i-whammy
  • Added the ability to restrict the addresses WireMock can proxy/record to, as a security measure.

Fixes

  • Strip Maven directories from the standalone JAR as some were appearing that weren't related to dependencies actually present, confusing scanning tools - thanks to user krageon
  • Dropped back to slf4j 1.7.36 and relocate it in the standalone JAR (ensuring 2.x users won't experience conflicts).

2.34.0

15 Sep 18:16
Compare
Choose a tag to compare

This will be the final 2.x.x release and also the last to support Java 8.

Fixes

  • Fixed #1689 - incorrect HTTP version header - thanks to user Poojitha
  • Fixed #1882 - bug preventing matching of date/time query params/headers with custom format - thanks Klaas Dellschaft
  • #1930 - Fixed a partial path traversal vulnerability in the file source code - thanks Jonathan Leitschuh
  • Fixed #1783 - proxyUrlPrefixToRemove ignored when using a response definition transformer - thanks to user Ross-H-Projects
  • Fixed #1872 - create a request entity for POST, PUT etc. proxied requests when a content-length header is present, regardless of whether the size is 0.
  • Fixed #1946 - maths helper now supports epoch dates as inputs.

Enhancements

  • Added a public, non-static getScenarios() method allowing access to all scenarios.

All dependencies brought up to date including Jetty to 9.4.48.v20220622.

2.33.2

29 Apr 14:19
Compare
Choose a tag to compare

WireMock 2.33.1 was accidentally released using Java 11 rather than 8, resulting in class incompatibilities in places.

This release is functionally identical but built using Java 8.

2.33.1

09 Apr 11:35
Compare
Choose a tag to compare

Fixes

  • Put name field back on scenario API object having accidentally removed it.
  • Improved validation of scenario set and reset so that reasonable errors are returned when attempting to use non-existent scenario names or states.

2.33.0

08 Apr 17:55
Compare
Choose a tag to compare

This is primarily a maintenance release that brings all dependency versions up to date including a version of Jackson containing the fix for CVE-2020-36518.

Enhancements

  • Added the ability to set and reset a single scenario's state
  • Proxy will now send a request body for any request method.
  • CORS response headers are now passed back from proxy responses when stub CORS is disabled.

Performance

  • Improved performance of Request.getHeaders() - thanks Doug Roper.
  • Improved performance of response body JSON parsing - thanks also Doug Roper.

2.32.0

02 Dec 09:45
d6b6c5e
Compare
Choose a tag to compare

Enhancements

  • Closes #1614 - proper support for subclassing of the JUnit5 WireMockExtension
  • Add support for put/delete file to/from a subfolder (#1087)
  • Closes #956 - added the ability to fetch serve events for a specific stub ID
  • Added ability to query unmatched serve events
  • Added ability to verify requests using a custom matcher
  • Upgraded to Apache HTTP Client 5.x
  • Added WireMock.jsonResponse factory methods (#1428)
  • #745 Need proxyUrlPrefixToRemove for proxy context url mapping (#1556)
  • Removed dependence on Conscrypt for ALPN and HTTP/2
  • Recognize multipart/related and multipart/mixed (#1415)
  • Allow running Wiremock without HTTP Server (#1572)
  • Allow standalone runner to fetch mappings from classpath (#1592)
  • Added new command line parameters "--jetty-header-request-size" and "--jetty-header-response-size" for set a custom size of headers in Jetty. "--jetty-header-buffer-size" is deprecated.

Fixes

  • Closes #1688 - fall back to HTTPS 1.1 only when no ALPN provider can be loaded
  • Fixed #1643 - regression in date parsing preventing year and year/month only dates
  • #1612 prevent applying scientific notation and rounding to big numbers by ObjectMapper (#1613)
  • Fixed #1608 and #1585 - incorrect zoning of date/times in response templating when truncating

Code quality

  • Enforce license headers with Spotless
  • Enforce consistent code style with Spotless
  • Upgrade to Gradle 7 + some Gradle config cleanup (#1639)
  • Convert AcceptanceTestBase to JUnit Jupiter to limit future violations (#1669)
  • Enable WireMock to be built on Java 11 and 17
  • Drop JMock in favour of Mockito (#1630)