Skip to content

Latest commit

 

History

History
373 lines (237 loc) · 12 KB

CHANGELOG.md

File metadata and controls

373 lines (237 loc) · 12 KB

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.6.4 (2018-05-08)

Bug Fixes

  • hasOne: Issues with eval (f1ab9e8)

2.6.3 (2018-05-08)

2.6.2 (2018-05-08)

Bug!

  • Fixing bug related to eval!

2.6.1 (2018-03-20)

Improvements!

  • Now I rework internal part of the generators to offer the posibility of avoid eval step, i used eval to offer the maximum flexibility, but now its optional, of course that without eval, is less flexible, but if it fits for your mock data right now you will gain 10x speed, Awesome! Also it offers the posibility of use eval like in the older versions of mocker.

Welcome to the ludicrous speed! 🎉

2.5.2 (2018-01-17)

Bug Fixes

  • generation: added fix when min = 0 in hasMany, now can produce empty array of data, by default is 1, so you have to specify minimum to 0 in order to have the chance to produce empty arrays (7f97646)

All deps updated!

2.5.0 (2017-11-01)

Breaking Changes!

  • Now the build method throws the error, in the case of the callback in a traditional style function function(err, data) in the case of promise style in the reject.

Bug Fixes

  • test: separate gh-pages generation modules from the mocker modules for development, some test fails (2cc421e)
  • Better error throwing and test covered (20ca0a0)

Bug Fixes

  • test: separate gh-pages generation modules from the mocker modules for development, some test fails (2cc421e)
  • Better error throwing and test covered (20ca0a0)

2.4.9 (2017-10-20)

Features

  • Added browser build
  • Fixes in build to sync with gh-pages

2.4.5 (2017-10-20)

2.4.4 (2017-10-17)

Bug Fixes

  • fakerjs: Better locale detector and better testing (f05872d)

2.4.3 (2017-10-16)

2.4.2 (2017-10-16)

2.4.1 (2017-10-16)

2.4.0 (2017-10-16)

Bug Fixes

  • builder: fix tslint space identation (b3f9f7c)

Features

  • fakerjs: Added multilanguaje support (0b94471)
  • fakerjs: Added tests for multilang support (5078d24)
  • fakerjs: Updates on the readme (b79e88f)

2.3.0 (2017-10-16)

Bug Fixes

  • builder: fix tslint space identation (b3f9f7c)

Features

  • fakerjs: Added multilanguaje support (0b94471)
  • fakerjs: Added tests for multilang support (5078d24)
  • fakerjs: Updates on the readme (b79e88f)

2.2.1 (2017-10-13)

Bug Fixes

  • linter: trying to use supported tslint rule (5edac70)
  • updates: Update libs to last releases (a6ce60b)

2.2.0 (2017-06-14)

Features

2.1.0 (2017-05-27)

Features

2.0.2 (2017-05-24)

Bug Fixes

  • browserify: fix browserify builds changing casual to browserify-casual (de93262)

2.0.1 (2017-05-24)

Changes

  • fix: tslib fix for ES5 builds
  • updates: updates on dependencies

2.0.0 (2017-03-18)

Features

  • build: new build using Typescript, breaking change in imports, adapted import to be used with es6 (6114eaf)

OLD Release History

(1.2.7)

  • Fix little issue with array generators, now parse well the index inside, add a test for that
  • Fix string issue with fakerJs
  • Fixed babel polyfill issues
  • updates on dev packages

(1.2.2)

(1.2.1)

  • Start to parse better the errors

(1.2.0)

  • New internal reorganization
  • Added hasOne (related is deprecated) and hasMany
  • Breaking Change: related config is deprecated, instead of related use hasOne.

(1.1.1)

  • Added RandExpJs generator
  • Improve test system (I know im improving it! =P)
  • Breaking Change: the older versions aren´t compatible with this module, the way to generate the data are changed:

    (1.1.0)

  • Added casualJs
  • Added self option
  • Added db option
  • Added related option

(1.0.6)

  • Updated chance.js to 1.0

(1.0.5)

  • Added the concat option, and the strictConcat on Array generator.

(1.0.4)

  • Added on uniqueField two ways to generate the data
  • Starting to add errors

(1.0.3)

  • Fix Arrays

  • Breaking Change: the older versions aren´t compatible with this module, the way to generate the data are changed:

    var cat = {
        name: {
            values: ['txuri', 'pitxi', 'kitty']
        }
    }
    var m = mocker()
        .schema('cat', cat, 10)
        .schema('cat2', cat, { uniqueField: 'name' })
        .build(function(data) {
            console.log(util.inspect(data, { depth: 10 }))
        })

(0.7.0)

  • Breaking Change: Added the posibility to enable the pluralize on the output entity. Now if you want to pluralize the output follow the example in the doc, by defatult is not anymore pluralized.

    Old call configuration:

    var m = mocker(config)
    m
        .generate('user', 2)
        .then(m.generate('group', 2))
        .then(m.generate('conditionalField', 2))
        .then(function(data) {
            console.log(util.inspect(data, { depth: 10 }))
            //This returns an object
            // {
            //      user:[array of users],
            //      group: [array of groups],
            //      conditionalField: [array of conditionalFields]
            // }
        })

    New array configuration:

    var m = mocker(config)
    m
        .generate('user', 2)
        .generate('group', 2)
        .generate('conditionalField', 2)
        .build(function(data) {
            console.log(util.inspect(data, { depth: 10 }))
            //This returns an object
            // {
            //      user:[array of users],
            //      group: [array of groups],
            //      conditionalField: [array of conditionalFields]
            // }
        })

(0.6.0)

  • Breaking Change: Added the posibility to enable the pluralize on the output entity. Now if you want to pluralize the output follow the example in the doc, by defatult is not anymore pluralized.

(0.5.0)

  • Breaking Change: Break Point with array config. Now is more clear.

    Old array configuration:

        [{
            //Any generator
                //Faker
            faker: 'random.arrayElement(db.users)[userId]'
                //Chance
            chance: 'integer'
                //Function
            function: function (){ return /**/ }
    
        }, //Array config
        {length: 10, fixedLength: false}]

    New array configuration:

        [{
            //Any generator
                //Faker
            faker: 'random.arrayElement(db.users)[userId]'
                //Chance
            chance: 'integer'
                //Function
            function: function (){ return /**/ }
    
            //Array config
            length: 10,
            fixedLength: false
        }]

(0.4.7)

  • Add virtual fields

(0.4.5)

  • Add incrementalId config
  • Some tweaks on dev config to start to use generators on typescript
  • Performance tweaks for large data generation

(0.4.1)

  • Show in console the errors. (I will improve this)
  • Add support to chanceJs, exactly like FakerJs (see "Model definition" Chance)

(0.3.0)

  • Fix errors on iteration over nested structures (new improved interator)
  • Added support to call more naturally to FackerJs fields (see "Model definition" Faker)

(0.2.2)

  • Added a pluralization function
  • Fixed a little issue with the roots schemas (now you can do really crazy things, see test/mocker.example.js)
  • Fix errors introduced in 0.2.0

(0.1.6)

  • Fix an error: (Clean initial data field)
  • Fix some memory errors adding inmutableJS for the model
  • Add new tests

(0.1.1)

  • Real Refractor of the code
  • Add support multi-level schemas
  • Add tests
  • Add travis support

(0.0.4)

  • First release i will update soon with tests and more examples, stay tuned!