After three months of development and testing, we are pleased to announce we released improved template mocks. A version 2.0 of template mocks runtime was rewritten from scratch to be faster, more efficient, and feature-rich. Besides using the latest version of Handlebars – a simple templating language, we also included our implementation of helper basing on the newest version (5.0.0) of faker.js – the library generating fake data. We also bundled into the runtime the extensive subset of handlebars-helpers. Embedded libraries enable our customers to generate a large amount of fake data and include conditional output rendering to simulate real services better. We trust this release is another step to make SmartMock.io the first choice HTTP server mock software for our customers.
Support for version 1.0
All clients using the previous version of the template mocks runtime may use both versions (1.0 and 2.0). We’ll still support version 1.0 until at least September 2022.
All accounts created after September 1st, 2020, may use version 2.0 only. If, for some reason, you find using version 1.0 critical for your use case, please contact our support at firstname.lastname@example.org and ask us to enable version 1.0 for you.
Documentation and examples
We also published extensive documentation describing available helpers, state, and request fields access. We’ll keep that documentation up to date with further improvements in the runtime.
How to upgrade
To upgrade your template mocks using runtime of 1.0, you should perform the following actions:
- Edit your workspace, select version 2.0 of the template mocks, and save workspace changes.
- Adjust your mocks to use the helpers provided by version 2.0 – usually, it is an easy task, but if you have any questions, please contact our support at email@example.com.