2023-10-02
Welcome to this new major release of Mockoon. It brings a lot of new features and improvements.
Mockoon is proudly independent and open-source, maintained without external funding. We rely on both sponsorships and Mockoon Cloud subscriptions to keep improving the project and building new features. A big thank you to the companies below for supporting our work and helping us grow (and all the sponsors who helped this project over time!):
If you'd like to support Mockoon as well, you can become a sponsor or subscribe to Mockoon Cloud, every contribution helps keep the project alive and evolving. Thank you!
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: