Mockoon release v5.0.0

2023-10-02

Welcome to this new major release of Mockoon. It brings a lot of new features and improvements.


 Our platinum sponsors

GitHub Localazy Peakcrypto

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 changes

We introduced two breaking changes in this major release:

  • We dropped support for Node.js v16. The CLI and the serverless package now require at least Node.js 18.
  • Support was dropped for legacy data files in both Desktop and CLI. 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.

 JSONPath support

Mockoon now supports JSONPath alongside object-path everywhere a path to an object property can be provided:

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)

 Routes targeting all HTTP methods

It is now possible to create routes that will match any HTTP method. You can now select "All methods" in the routes method dropdown:

wildcard route on all methods

 Global routes with rules

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)

 Desktop application

  • 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):

footer update notification

 CLI

  • Breaking change: We dropped support for Node.js v16. The CLI now requires Node.js 18 at least. (Issue #1119)
  • Breaking change: Support was dropped for opening legacy data files (pre v1.16.0). (Issue #1138)
  • The Docker image is now tagged with its major version. Starting with version 5, all v5.x.x will be tagged 5 and so on. (Issue #1132)

 Serverless package

  • Breaking change: We dropped support for Node.js v16. The package is now requiring Node.js 18 at least. (Issue #1119)

 Chores

  • We updated most of the application dependencies to their latest version in order to fix recent security vulnerabilities.

 Thank you

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