Welcome to this new release of Mockoon. There are several bug fixes and new features in this version that we hope you will like. But first some news:
- Templating system documentation has been revamped and split into multiple sections. All helpers are now properly documented.
- We also split the route responses documentation into two pages to make it easier to find the response rules documentation.
Features:
-
Routes can now be filtered by path and documentation (Issue #257):
-
Three new string manipulation helpers are now available:
indexOf
,includes
,substr
. See documentation for more information. (Issue #413)
Fixes:
- Fix
setVar
helper not working in block helpers likerepeat
. (Issue #429) - Add a new third parameter (boolean) to the
body
helper to returns the stringified value even if it's a primitive. (Issue #397) - Add a new third parameter (boolean) to the
queryParam
helper to returns the stringified value. (Issue #418) - Proxied binary bodies are no longer converted to UTF-8 strings and are now forwarded "as-is". (Issue mockoon/commons-server#3)
- When switching route responses the body undo state does not contain other routes' body content anymore. (Issue #309)
- Adding a trailing slash to the API prefix do not returns 404s on all endpoints anymore. (Issue #422)
Misc:
- Mockoon is now more secure by a combination of enabling Chrome sandboxing and Electron context isolation. We also disabled Node.js integration and stopped using the
remote
module in Electron's renderer process. These best practices have been pushed and enabled by default by Electron's team in the most recent versions. We took it on ourselves to try to follow them all and rewrote part of the application architecture. Aside from the improved security and prevention of future vulnerabilities like XSS and RCE, we also saw slightly better performances overall. (Issue #349) max-http-header-size
which was limited to 8kb is now limited to 16kb thanks to an update to Node.js v14. (Issue #442)
Thank you
A big thank you to the following people that helped to make Mockoon better:
- @mauriceackel: New
stringify
parameter forbody
andqueryParam
helpers. (Issue #397, Issue #418) - @SimonPStevens: New string manipulation helpers. (Issue #413)