- Added traits to test-data-bot. See the README for examples.
-
Factories now do not need a factory name property. You can simply pass in the configuration object :
const userBuilder = build({ ... }); // rather than: const userBuilder = build('User', { ... });
You can still pass a name if you like, but it's not required and will probably be removed in a future major version.
- Fix: builders can now take literal
null
orundefined
values: jackfranklin#198 - Fix:
sequence
returnsunknown
notnumber
: jackfranklin#196 - Fix: ship Faker types for nice type hinting: jackfranklin#197
- Upgrade to Prettier 2: jackfranklin#195
- Swap from
yarn
tonpm
: jackfranklin#194
- Completely new version! See README for migration details.
- Add
numberBetween
- PR by @spilist.
- Fix passing primitive values like
null
orundefined
to a builder. (jackfranklin#39)
- Fix a bug where you were unable to pass plain functions in as values to builders
- Fix
arrayOf
behaviour so it can take a builder and correctly call it.
- fix bug that meant overriding a boolean to always be
false
wouldn't happen (jackfranklin#6)
- rebuilt to enable fully nested builders
- add
arrayOf
- add
bool
- Enable
sequence
to take other builders.
- add
oneOf
andincrementingId
- Fix
main
inpackage.json
not pointing in the right place- PR by Kent C. Dodds
- Added
perBuild
generator.
- First release!