Skip to content

Version 3

Compare
Choose a tag to compare
@webroo webroo released this 11 Jul 12:30
· 21 commits to master since this release

For version 3 there are no breaking changes to the dummy-json api, only backwards-compatible additions, however the underlying dependencies for number and date formatting have been bumped by major versions which may affect the generated output. If you are relying on dummy-json for mocks in tests then this might cause them to break. For this reason dummy-json has been bumped by a major version.

New features:

  • Formalised the syntax for the random repeat block helper: {{#repeat min=4 max=8}} ... {{/repeat}}
  • The lorem helper now allows a random number of words to be generated: {{lorem min=10 max=20}}
  • The hexColor helper now supports an optional leading hash symbol {{hexColor withHash=false}}
  • Added TypeScript declaration file

New helpers:

Bug fixes:

  • Bug with spaces in email when using custom names (#30)

Misc updates:

  • Updated list of countries
  • Minor update to the latest version of Handlebars
  • Major update to the number and date formatting dependencies
  • Major update to the random number generator dependency