2024-01-30
Welcome to this new release of Mockoon. It brings new exciting features: support for global variables in rules, Linux Arm64 binaries, and many other fixes and improvements. Read on to learn more about this release.
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!
Mockoon now supports global variables in the response rules. This allows you to set a global variable during one call and use it in a rule to change the returned response.
Read more about this feature in the documentation.
(Issue #1262)
someOf
helper not correctly stringifying empty arrays and returning [""]
instead of []
. (Issue #1289)string.alpha
can receive a complex object (more than one level deep) as a parameter. A new syntax was introduced to make their usage easier. E.g.:
{{faker 'string.alpha' '{ length: 5, casing: "upper", exclude: ["A"] }' }}
. (Issue #1218)getGlobalVar
helper. (Issue #1263)jsonParse
helper was added to parse a stringified JSON. (Issue #1227)schemas
and examples
. (Issue #1244)example
and examples
properties are now correctly used when building a schema present in a allOf
, anyOf
or oneOf
. (Issue #948)Mockoon now supports vendor specific JSON content types like application/vnd.something+json
. Request bodies with these content types will be correctly parsed and available in the templating helpers and rules. (Issue #1269)
We updated the welcome screen and added a tour to help new users discover Mockoon's features. You can access the new tour at any time using the "Help" menu.
The welcome screen, before and after:
A preview of the tour:
(Issue #1278)
We now provide binaries (deb and AppImage) for the Linux ARM64 architecture. Links to these binaries are available on the download page. Due to the limited access we have to this architecture, we can't provide a snap package at the moment. We also thank you to report any issue you may encounter with these binaries.
We reworked the macOS cmd + W
and cmd + Q
commands. The application will now correctly quit when pressing cmd + Q
or using the menu's "Quit" option. We also introduced a new cmd + W
command and application menu entry to close the current window. It should align Mockoon's behavior with other Mac applications.
(Issue #1097)
chalk
ESM only version (> version 5). (Issue #1276)trackBy
function and replaced with observables. (Issue #1264)A big thank you to the following people who helped to make Mockoon better:
allOf
. (Issue #948)