Datafaker 1.7.0 (27 Nov 2022)¶
One of the biggest releases has just been created, with the help of no less than 12(!) new contributors. Absolutely amazing, we couldn't have done it without you!
Thanks to everyone involved, Datafaker now has more than a 100.000 monthly downloads, and is used by projects at Netflix, Alibaba, Bytedance and many others! It's great to see that this library is being used, and again, thanks!
In this release, you'll find many new features, such as:
- 21 new providers
- Many performance improvements
- Far better SQL, XML, CSV and JSON generation
- Far better phone number generation. Almost all generated phone numbers are now valid numbers!
- Several bugfixes, mostly in the data generation.
Have fun with this release!
What's Changed¶
- Apply renaming master to main by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/343
- Enrich ja.yml by @yuokada in https://github.com/datafaker-net/datafaker/pull/345
- Refactor barcode by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/344
- Improve naming of ci jobs by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/348
- Add missing state (Flevoland) for Netherlands. by @jaapcoomans in https://github.com/datafaker-net/datafaker/pull/352
- Added Tesla make and models. by @bodiam in https://github.com/datafaker-net/datafaker/pull/351
- Add new JSON generation example in file formats docs by @panilya in https://github.com/datafaker-net/datafaker/pull/354
- Add upholstery fabrics and colors to Vehicle provider by @jaapcoomans in https://github.com/datafaker-net/datafaker/pull/355
- Fix flaky test by @jaapcoomans in https://github.com/datafaker-net/datafaker/pull/358
- Make sure that padding is used in Hashing by @CucumisSativus in https://github.com/datafaker-net/datafaker/pull/360
- Fix for #359: Future and past is no longer 1 second into the future, … by @bodiam in https://github.com/datafaker-net/datafaker/pull/361
- Issue #268: More realistic passport generators for several countries. by @bodiam in https://github.com/datafaker-net/datafaker/pull/362
- Add 'es' passport number, add tests for uncoveraged passport numbers by @panilya in https://github.com/datafaker-net/datafaker/pull/363
- Move all provider registration to a separate interface by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/365
- Put open mocks in try catch by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/366
- Introduce SportFaker and move all sport related fakers under it by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/369
- Move providers to base package by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/371
- Extract food providers into a separate package by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/372
- Extract video games into a separate provider type by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/373
- Extract movie to a separate package by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/375
- Rename IProviders to BaseProviders by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/376
- Move id number objects to final fields to decrease number of object creations by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/379
- Add more European makes and models for the Vehicle provider by @jaapcoomans in https://github.com/datafaker-net/datafaker/pull/380
- Typos in BaseFaker by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/382
- Added Mazda as a car make and simplified BaseFakerTest. by @bodiam in https://github.com/datafaker-net/datafaker/pull/383
- Added links section by @bodiam in https://github.com/datafaker-net/datafaker/pull/385
- Datafaker wasn't 100% identical when repeating with the same seed, no… by @bodiam in https://github.com/datafaker-net/datafaker/pull/384
- Added Nio and Xpeng cars by @bodiam in https://github.com/datafaker-net/datafaker/pull/386
- Added Detective Conan and cleaned up integration test. by @bodiam in https://github.com/datafaker-net/datafaker/pull/387
- Added Dungeons and Dragons for Bart by @bodiam in https://github.com/datafaker-net/datafaker/pull/388
- Add FakerContext info to error log by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/390
- Support Bot User Agent by @yuokada in https://github.com/datafaker-net/datafaker/pull/392
- Added more Cities, State, State code, free email provider, area codes… by @ChiragMangukia in https://github.com/datafaker-net/datafaker/pull/393
- Changed user agent any to slightly better name. by @bodiam in https://github.com/datafaker-net/datafaker/pull/394
- Move 'Overwatch' faker to videogame group by @panilya in https://github.com/datafaker-net/datafaker/pull/397
- Update 'CONTRIBUTING.md' by @panilya in https://github.com/datafaker-net/datafaker/pull/396
- Add 'Heroes of the Storm' provider by @panilya in https://github.com/datafaker-net/datafaker/pull/395
- Move 'MassEffect' faker to videogames group by @panilya in https://github.com/datafaker-net/datafaker/pull/398
- Harden templates for getProvider by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/400
- Reorganised provider documentation by @bodiam in https://github.com/datafaker-net/datafaker/pull/402
- Add 'Locality' faker by @panilya in https://github.com/datafaker-net/datafaker/pull/401
- Fix ProvidersDocsGenerator by @panilya in https://github.com/datafaker-net/datafaker/pull/405
- Fix typo in class name by @panilya in https://github.com/datafaker-net/datafaker/pull/407
- Add science unit provider by @panilya in https://github.com/datafaker-net/datafaker/pull/408
- Add http method provider by @panilya in https://github.com/datafaker-net/datafaker/pull/406
- Implemented LoremPicsum by @ChiragMangukia in https://github.com/datafaker-net/datafaker/pull/410
- Add port provider by @panilya in https://github.com/datafaker-net/datafaker/pull/409
- Improved Credit card utility by @ChiragMangukia in https://github.com/datafaker-net/datafaker/pull/414
- Added Cricket Provider by @ChiragMangukia in https://github.com/datafaker-net/datafaker/pull/417
- Made all test methods non-public to be more consistent. by @bodiam in https://github.com/datafaker-net/datafaker/pull/418
- Added MoneyHeist Provider by @ChiragMangukia in https://github.com/datafaker-net/datafaker/pull/419
- Remove redundant 'blood.yml' file by @panilya in https://github.com/datafaker-net/datafaker/pull/420
- Add 'Family Guy' provider by @panilya in https://github.com/datafaker-net/datafaker/pull/421
- Add 'Fullmetal Alchemist: Brotherhood' provider by @panilya in https://github.com/datafaker-net/datafaker/pull/422
- Add missing
@since
tags, add description ofLocality
provider by @panilya in https://github.com/datafaker-net/datafaker/pull/423 - Add jdk19 to ci by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/426
- Move providers under their own package by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/427
- feat/build_without_gpg by @TGITS in https://github.com/datafaker-net/datafaker/pull/431
- zh-CN.yml增加模拟数据 by @LiuHao0606 in https://github.com/datafaker-net/datafaker/pull/432
- Use getParameterCount rather than getParameterTypes where possible by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/436
- Reorder method calls in FakeValuesService#resolveExpression by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/437
- Extract retrieveMethodAccessor method, optimize javaNameToYamlName by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/438
- Updated the news section by @bodiam in https://github.com/datafaker-net/datafaker/pull/439
- Replace isAssignableFrom with == for final classes, refactor retrieveMethodAccessor by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/440
- Introduce transformation schemas by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/430
- Make DateAndTime#between taking both date and timestamp by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/441
- FakeStream implementation by @NarekDW in https://github.com/datafaker-net/datafaker/pull/435
- Correct main branch name by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/442
- add documentation for FakeSequence/FakeStream by @NarekDW in https://github.com/datafaker-net/datafaker/pull/443
- Add support of sql dialect while sql generation by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/445
- fix/pokemon_fr_localization by @TGITS in https://github.com/datafaker-net/datafaker/pull/446
- feat(adding_moves_to_pokemon_provider) by @TGITS in https://github.com/datafaker-net/datafaker/pull/448
- Correct typo by @carehart in https://github.com/datafaker-net/datafaker/pull/449
- Credit card fix for Visa, Mastercard, Discover and Diners Club. Fixes… by @bodiam in https://github.com/datafaker-net/datafaker/pull/451
- Fixed edit url in documentation. Fixes #450 by @bodiam in https://github.com/datafaker-net/datafaker/pull/452
- Add support of groups to 'ProvidersDocsGenerator' by @panilya in https://github.com/datafaker-net/datafaker/pull/433
- Colorize Maven output in GitHub Actions by @timtebeek in https://github.com/datafaker-net/datafaker/pull/453
- Run AssertJ best practices OpenRewrite recipe by @timtebeek in https://github.com/datafaker-net/datafaker/pull/456
- Changed casing of Australian animals to lowercase where needed. by @bodiam in https://github.com/datafaker-net/datafaker/pull/457
- Added support for nonzero number generation using Ø in numerify. by @bodiam in https://github.com/datafaker-net/datafaker/pull/458
- Small refactoring to make number generation more clear. by @bodiam in https://github.com/datafaker-net/datafaker/pull/460
- Rework Generics of Transformer interface by @NarekDW in https://github.com/datafaker-net/datafaker/pull/447
- Fix sql quote identifier for mysql by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/461
- feat/adding_type_to_pokemon_provider by @TGITS in https://github.com/datafaker-net/datafaker/pull/464
- Fix formatting by @bodiam in https://github.com/datafaker-net/datafaker/pull/465
- Add issue navigator link for idea by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/466
- Introduce international and national phone number formats by @panilya in https://github.com/datafaker-net/datafaker/pull/425
- Add more constellations by @panilya in https://github.com/datafaker-net/datafaker/pull/467
- Add MariaDB sql dialect by @panilya in https://github.com/datafaker-net/datafaker/pull/470
- Use name to get length to prevent IndexOutOfBoundException by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/471
- Add support for table schema in sql transformer by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/472
- Update JShell csv example in readme by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/473
- Add csv as header by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/474
- Add batch support and keyword case support for sql by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/475
- Move batch flag on dialect level by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/476
- Add support for batch insert for Oracle by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/477
- Use array and switch for numerify by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/478
- Add icon for Intellijidea toolbox by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/468
- Make FakeSequence Iterable by @NarekDW in https://github.com/datafaker-net/datafaker/pull/479
- Added Baeldung link by @bodiam in https://github.com/datafaker-net/datafaker/pull/482
- Fixed for flaky phone numbers. by @bodiam in https://github.com/datafaker-net/datafaker/pull/484
- [bug-fix] generate separated SQL statements by @NarekDW in https://github.com/datafaker-net/datafaker/pull/483
- Small cleanup in tests by @bodiam in https://github.com/datafaker-net/datafaker/pull/485
- fix(small_misprint_in_the_doc) by @TGITS in https://github.com/datafaker-net/datafaker/pull/487
- Add support for force usage of sql quote identifiers by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/488
- Add support for array and multiset by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/489
- Add possibility to specify size of batch by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/490
- SQL arrays and multisets could be nested by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/492
- Multiset could contain duplicates by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/493
- Move sql transformer in it's own package by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/494
- Use sql quote identifier if schema or table or field name contain catalog separator by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/495
- Add tests for sql row by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/497
- Remove redundant bank.yml file by @panilya in https://github.com/datafaker-net/datafaker/pull/496
- Add compass provider by @panilya in https://github.com/datafaker-net/datafaker/pull/486
- Update javaparser dependency by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/502
- Use line separator by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/503
- Add StudioGhibli provider by @panilya in https://github.com/datafaker-net/datafaker/pull/501
- Generate from FakeSequence instead of List + bug fix in sql generator by @NarekDW in https://github.com/datafaker-net/datafaker/pull/499
- Add Control provider by @panilya in https://github.com/datafaker-net/datafaker/pull/504
- Add Doraemon provider by @panilya in https://github.com/datafaker-net/datafaker/pull/505
- CNPJ test was flaky, fixed now. by @bodiam in https://github.com/datafaker-net/datafaker/pull/507
- Speed up hex by using getRandomByteArray by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/510
- Speed up digit generation by using random byte array by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/508
- Added text generator, made Password generator deprecated. by @bodiam in https://github.com/datafaker-net/datafaker/pull/509
- Speed up bothify by making it via one run by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/511
- Add Doctor Who provider by @panilya in https://github.com/datafaker-net/datafaker/pull/514
- Add tests for uncovered method in Time provider by @panilya in https://github.com/datafaker-net/datafaker/pull/515
- Cosmere by @bodiam in https://github.com/datafaker-net/datafaker/pull/516
- Added Drone support by @bodiam in https://github.com/datafaker-net/datafaker/pull/518
- Added Culture Series support by @bodiam in https://github.com/datafaker-net/datafaker/pull/519
- Add test for period method by @panilya in https://github.com/datafaker-net/datafaker/pull/517
- Added Fresh Prince of Bel Air support by @bodiam in https://github.com/datafaker-net/datafaker/pull/520
- Add test for characters method with fixed length, uppercase and digit… by @panilya in https://github.com/datafaker-net/datafaker/pull/521
- Adds Microsoft Azure provider by @agoncal in https://github.com/datafaker-net/datafaker/pull/524
- Small fix for Azure Javadoc. by @bodiam in https://github.com/datafaker-net/datafaker/pull/525
- 10x times speed up Code#isbnGroup and Code#isbnGs1 by usage of Options by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/526
- Support transformation schema for YAML by @RVRhub in https://github.com/datafaker-net/datafaker/pull/512
- Add hex upper/lower case by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/527
- 20x times speed up Aws and Azure by using hex by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/528
- Add One Piece provider by @panilya in https://github.com/datafaker-net/datafaker/pull/529
- Use getRandomBytes and specific hashcode to speed up text generation by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/530
- Use cast to char instead of Math.abs, use value of first symbols for hashcode by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/531
- 3x times speed up Aws#route53ZoneId by moving textConfig in Aws to class field by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/532
- Add documentation for schemas by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/533
- Speed up text generation, remove faker from text config builder by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/534
- Format table by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/536
- Add more tests by @panilya in https://github.com/datafaker-net/datafaker/pull/523
- Use fork instead of port by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/538
- Small typo fix by @bodiam in https://github.com/datafaker-net/datafaker/pull/539
- Speed up text generation by removal map by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/540
- Add caching of remove underscore result by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/545
- Use already found dot index by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/546
- Updated documentation for sequences. by @bodiam in https://github.com/datafaker-net/datafaker/pull/550
- Add Baseball provider by @Blackcows in https://github.com/datafaker-net/datafaker/pull/548
- Support transformation schema for XML by @RVRhub in https://github.com/datafaker-net/datafaker/pull/549
- Disabled checkout by @bodiam in https://github.com/datafaker-net/datafaker/pull/553
- Release test by @bodiam in https://github.com/datafaker-net/datafaker/pull/554
- Release test by @bodiam in https://github.com/datafaker-net/datafaker/pull/555
- Add Emoji provider by @ghusta in https://github.com/datafaker-net/datafaker/pull/556
- Update Emoji provider with cats by @ghusta in https://github.com/datafaker-net/datafaker/pull/558
- Restaurant names were generated incorrectly. Drone attributes were ge… by @bodiam in https://github.com/datafaker-net/datafaker/pull/559
New Contributors¶
- @jaapcoomans made their first contribution in https://github.com/datafaker-net/datafaker/pull/352
- @CucumisSativus made their first contribution in https://github.com/datafaker-net/datafaker/pull/360
- @ChiragMangukia made their first contribution in https://github.com/datafaker-net/datafaker/pull/393
- @TGITS made their first contribution in https://github.com/datafaker-net/datafaker/pull/431
- @LiuHao0606 made their first contribution in https://github.com/datafaker-net/datafaker/pull/432
- @NarekDW made their first contribution in https://github.com/datafaker-net/datafaker/pull/435
- @carehart made their first contribution in https://github.com/datafaker-net/datafaker/pull/449
- @timtebeek made their first contribution in https://github.com/datafaker-net/datafaker/pull/453
- @agoncal made their first contribution in https://github.com/datafaker-net/datafaker/pull/524
- @RVRhub made their first contribution in https://github.com/datafaker-net/datafaker/pull/512
- @Blackcows made their first contribution in https://github.com/datafaker-net/datafaker/pull/548
- @ghusta made their first contribution in https://github.com/datafaker-net/datafaker/pull/556
Providers added¶
- Azure
- Compass
- Cosmere
- Culture Series
- Drone
- Dungeons And Dragons
- Emoji
- Fresh Prince Of BelAir
- Locality
- Text
- Detective Conan
- Doraemon
- Family Guy
- Fullmetal Alchemist
- Money Heist
- One Piece
- Baseball
- Cricket
- Control
- Heroes Of The Storm
- Studio Ghibli