Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Releases: mongodb-js/dataset-generator

v0.2.1-alpha

Choose a tag to compare

@TZ2016 TZ2016 released this 04 Aug 21:25

Note: This version is not compatible with template schemas for previous versions

  • New syntax for defining arrays in template schema
  • All configured arrays must conform to the format:
    • [ "{{_$config}}", {/*options*/}, <content>, /*optionally*/ <more content...> ]
  • Arrays whose first element is not {{_$config}} are treated as ordinary arrays
    • multiple elements are ok, [ '{{chance.name()}}', '{{chance.age()}}' ]
    • different types are ok [ true, 3, { doc: 'doc' }, [ "array" ]]
  • Supported options:
    • size - can be a number or an array of two numbers ([min, max]). the number of times the contents will be repeated

v0.2.0

Choose a tag to compare

@TZ2016 TZ2016 released this 04 Aug 21:24
  • Output nice formatted json array with flag --pretty enabled
  • Mapped chance and faker's random functions to higher level API of datasets.
    Please consult comments in `lib/schema/context.js' for detailed usage.

v0.1.4

Choose a tag to compare

@TZ2016 TZ2016 released this 29 Jul 18:01
  • Changed Double to Number to hide Javascript's Number constructor
  • Added _$index
  • Made the former _$size() a property _$size

v0.1.3

Choose a tag to compare

@TZ2016 TZ2016 released this 28 Jul 14:37
  • Fixed bug that causes inconsistent content if this.<embedded doc> is used

v0.1.1

Choose a tag to compare

@TZ2016 TZ2016 released this 24 Jul 15:49
  • Fixed bug that causes mongodb-datasets command crash
  • Updated README to include all features