Desktop application releases

1.21.1

Patch 1.21.1 fixes the following issues:

  • Data buckets containing JSON data are now correctly returned when linked to a route response. (Issue #841)
  • The dataRaw helper now correctly returns the data at the object path. Falsy values at path are also supported. (Issue #842)

Our platinum sponsor

Appwrite

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!

sponsor button


Version 1.21.0 Release changelog

⚠️ Breaking change

  • setVar helper has been reworked and is not breaking anymore when used inside an each. The usage of variables is also uniformized and now requires an @. See the updated documentation for more information. (Issue #793)

New data buckets

We added a new feature called "Data buckets". It's a key-value store available in each environment. Each data bucket is persistent and generated when the server starts. Data buckets can be directly linked to a route response or using one of the two new helpers: data and dataRaw. Read the documentation to learn more.

data buckets interface screenshot

This first step will make the development of CRUD and GraphQL routes easier.

(Issue #783)

Dialogs default directory

Until now, the save and open dialogs were pointing by default to Mockoon's binary folder. It could result in data loss as the folder could be wiped on some systems during an update. The dialogs now open to the application's data folder and save their current working directory as it should. (Issue #756)

Templating helpers

  • We added a new parseInt helper. (Issue #766)
  • We updated Faker.js from version 6.3.0 to version 7.6.0.

Fixes

  • The date helper is now compatible with other helpers like queryParam. (Issue #781)
  • The objectId helper is now an alias for Faker.js' mongodbObjectId method. (Issue #829)
  • Serving a file with an unknown mime type now correctly revert to the environment Content-Type. (Issue #785)
  • Duplicating a route to an environment now correctly save the new route in the environment JSON file. (Issue #790)
  • ⚠️ Breaking change: setVar helper has been reworked and is not breaking anymore when used inside an each. The usage of variables is also uniformized and now requires an @. See the updated documentation for more information. (Issue #793)

Improvements

  • We improved the menus resizer visibility. (Issue #729)
  • text/xml content type is now suggested in the header autocomplete menu and is correctly enabling the editor's XML syntax highlighting. (Issue #798)

1.21.0

Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.


Our platinum sponsor

Appwrite

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!

sponsor button


⚠️ Breaking change

  • setVar helper has been reworked and is not breaking anymore when used inside an each. The usage of variables is also uniformized and now requires an @. See the updated documentation for more information. (Issue #793)

New data buckets

We added a new feature called "Data buckets". It's a key-value store available in each environment. Each data bucket is persistent and generated when the server starts. Data buckets can be directly linked to a route response or using one of the two new helpers: data and dataRaw. Read the documentation to learn more.

data buckets interface screenshot

This first step will make the development of CRUD and GraphQL routes easier.

(Issue #783)

Dialogs default directory

Until now, the save and open dialogs were pointing by default to Mockoon's binary folder. It could result in data loss as the folder could be wiped on some systems during an update. The dialogs now open to the application's data folder and save their current working directory as it should. (Issue #756)

Templating helpers

  • We added a new parseInt helper. (Issue #766)
  • We updated Faker.js from version 6.3.0 to version 7.6.0.

Fixes

  • The date helper is now compatible with other helpers like queryParam. (Issue #781)
  • The objectId helper is now an alias for Faker.js' mongodbObjectId method. (Issue #829)
  • Serving a file with an unknown mime type now correctly revert to the environment Content-Type. (Issue #785)
  • Duplicating a route to an environment now correctly save the new route in the environment JSON file. (Issue #790)
  • ⚠️ Breaking change: setVar helper has been reworked and is not breaking anymore when used inside an each. The usage of variables is also uniformized and now requires an @. See the updated documentation for more information. (Issue #793)

Improvements

  • We improved the menus resizer visibility. (Issue #729)
  • text/xml content type is now suggested in the header autocomplete menu and is correctly enabling the editor's XML syntax highlighting. (Issue #798)

1.20.0

Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.


Our platinum sponsor

Appwrite

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!

sponsor button


Disabled rules

There is a new mode alongside randomized and sequential responses: disabled rules. It will always serve the default response and ignore the rules.

image

(Issue #498)

Invert the response rule operator

You can now invert the response rules' operators by clicking on the toggle button with an exclamation mark:

route-response-rules-invert-operator

After enabling this option, you can read the operators like this: not a regex match, not equals, etc.

(Issue #690)

multipart/form-data support

Templating helpers (body and bodyRaw) and response rules are now compatible with multipart/form-data. Entering requests containing multipart data with the correct Content-Type will be automatically parsed. You can then retrieve any variable or use them in the rules like you would do with a JSON body.

(Issue #347)

Support for properties with dots

Properties with dots are now supported in the body and bodyRaw templating helpers and in the rules. Escape the dots when you want to reach values contained in a property with dots:

Copy
{ "property.with.dot": "value" }

rule accessing property with dots

body helper accessing property with dots

(Issue #338)

Fixes

  • We fixed a race conditions where settings were accessed before being loaded. (Issue #751)

Improvements

  • The route responses menu now takes the full available width (Issue #719)
  • We enabled XML support for the application/soap+xml content type. (Issue #757)

Misc

We started working on a new internal release system that relies more on our own infrastructure rather than GitHub releases (Issue #769). This is a long-term plan that will allow us to offer more release channels in the future.

1.19.0

Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like.

We also started working on the GraphQL mocking. As we want to deliver the right feature, we would be glad to gather more feedback on what you expect. Feel free to reach us on our Discord server, or comment on the issue.


Our sponsor

Appwrite

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!

sponsor button


Environment files change monitoring

After temporarily disabling the new environment files watcher in v1.18.1 due to an issue (#649), we reworked this feature from the ground up. It must now be manually activated in the settings and offers more choices:

enable file monitoring in settings

You can now activate the file watcher and reload the environments after validating a confirmation prompt, or automatically.

preview of file monitoring prompt

(Issue #649)

Improved default route response selection

Defining the default response is now easier. Before this change, the default response was always the first one. Now, the blue flag indicates the default response and you can change it by clicking on the grey flags:

a default route response

change the default route response

(Issue #252)

New templating helpers and Faker.js update

We added new templating helpers: lowercase, uppercase, and base64Decode. (Issues #655 and #625)

We also updated Faker.js to version 6. It offers some new helpers and locales. (Issue #716)

Copy an endpoint full path

A new context menu entry is available to copy the full API endpoint path:

context menu with copy path to clipboard option

(Issue #633)

Google Analytics removal

Following the introduction of a custom privacy-friendly telemetry system last year, we removed Google Analytics from the desktop application. (Issue #713)

Fixes

  • The API prefix is now correctly removed when forwarding (using the proxy mode) to a prefixed endpoint. (Issue #585)
  • Logs are now properly displayed even when Mockoon is called with malformed URIs. (Issue #689)
  • The setVar helper is now correctly working inside block helpers. (Issue #706)
  • The faker helper now returns the correct value and not only strings. It makes this helper compatible with other helpers that requires numbers, arrays or booleans to work (e.g. int, if, each, etc.). (Issue #699)

Misc

We moved the project to a monorepo to accelerate the development and reduce the amount of manipulation we have to do when working on features. (Issue #640)
We also updated the CI workflows to always test the packaged desktop application when opening PRs. It will greatly reduce the amount of testing needed during a release.

Docs

We updated the OpenAPI documentation to explain the discrepancies between the specification and Mockoon's features.

Thank you

A big thank you to the following people that helped to make Mockoon better: