2023-10-02
Welcome to this new major release of Mockoon. It brings a lot of new features and improvements.
Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!
We introduced two breaking changes in this major release:
Mockoon now supports JSONPath alongside object-path everywhere a path to an object property can be provided:
data
, dataRaw
, body
, bodyRaw
, queryParam
and queryParamRaw
.We are using the JSONPath Plus library. Please refer to its documentation to learn more about the syntax. The simpler object-path syntax is still supported.
(Issue #995)
It is now possible to create routes that will match any HTTP method. You can now select "All methods" in the routes method dropdown:
Thanks to the response fallback mode introduced in v4.1.0, it was already possible to create wildcard routes containing "global" rules, like validating the presence of an Authorization
header, or verifying that the request body contains a specific property.
The only missing piece was the ability to create a global route that would match any HTTP method, which is now possible with the new feature above.
Head over to our new "Global routes with rules" documentation section to learn how to create reusable responses and rules and apply them to all your routes.
We also updated the desktop application's demo environment to showcase this new feature.
(Issue #221)
Breaking change: Support was dropped for legacy data files (pre v1.16.0). The desktop application will no longer automatically migrate your environments from the old system. If you are updating from v1.15.0, please first update to any version between v1.16.0 and v4.1.0, then to v5.0.0. (Issue #1138)
We added a link in the footer update notification to let you easily check the new version's changelog (will be visible for updates >v5.0.0):
5
and so on. (Issue #1132)A big thank you to the following people who helped to make Mockoon better: