Datafaker 2.0.0 (11 June 2023)¶
Today, we're pleased to announce a new milestone for the Datafaker project:
Datafaker 2.0 has been released!
The biggest change in Datafaker 2.0 is that the minimum Java version is now version 17. After Spring Boot moved to Java 17, we thought that moving to Java 11 wouldn't have much benefit, so we decided to jump a version and support Java 17+ instead. This allows us to support newer Java features such as Java Records. Please checkout the documentation for more info.
Besides that, there are numerous small improvements, which you can find in the release notes below.
As always, and while we changed the major version, we aim to keep upgrades smooth, and besides the change in Java version, no (or not many...) breaking changes should have been introduced.
Thanks to all our users for the great support; it's been a great journey so far, and here's to many more Datafaker releases!
Breaking Change¶
internet().url()
will now return a web URL. The previous implementation returned just a domain name.
Here's a sample of the new generation:
https://www.garry-damore.co/iure/recusandaesint
https://www.bertha-jacobson.biz/?animi=sed&aspernatur=voluptatem
https://www.arlene-mclaughlin.info:40819/iusto/id?repudiandae=dignissimos&voluptatem=atque#ab
https://www.fred-ledner.name/beatae/voluptatemreiciendis?ab=deleniti&repudiandae=atque#voluptate
https://www.melissa-tromp.info:43154/
https://www.un-langosh.co:52266/in?numquam=ipsa&ut=blanditiis#voluptatem
https://www.robbin-hamill.biz:24492/deleniti/utveniam
https://www.una-luettgen.info/?ab=ea&quis=soluta#voluptas
https://www.wilber-harber.net/dolor/praesentiumquas#numquam
https://www.santana-stiedemann.com/tempore?ad=repellat&atque=odit#ex
https://www.logan-yundt.org/fuga?quaerat=voluptas&est=ipsa
For further details see: https://github.com/datafaker-net/datafaker/issues/840.
New Contributors¶
A big shout to our new contributors, without who Datafaker wouldn't be the project which it is today.
- @jamievasales made their first contribution in https://github.com/datafaker-net/datafaker/pull/717
- @ColinShorts made their first contribution in https://github.com/datafaker-net/datafaker/pull/723
- @tcttk made their first contribution in https://github.com/datafaker-net/datafaker/pull/727
- @almasfiza made their first contribution in https://github.com/datafaker-net/datafaker/pull/744
- @Majid-J made their first contribution in https://github.com/datafaker-net/datafaker/pull/755
- @novozhilov35 made their first contribution in https://github.com/datafaker-net/datafaker/pull/756
- @L-Evg made their first contribution in https://github.com/datafaker-net/datafaker/pull/758
- @bowen5 made their first contribution in https://github.com/datafaker-net/datafaker/pull/834
Thank you all for helping out, your contributions are appreciated!
What's Changed¶
- Documentation 1.8/2.0 update. by @bodiam in https://github.com/datafaker-net/datafaker/pull/688
- Java 17 by @bodiam in https://github.com/datafaker-net/datafaker/pull/689
- More unit test improvements by @kingthorin in https://github.com/datafaker-net/datafaker/pull/682
- Formatting fix for release notes. by @bodiam in https://github.com/datafaker-net/datafaker/pull/691
- Migrated Java 8 code to Java 17 syntax improvements. by @bodiam in https://github.com/datafaker-net/datafaker/pull/696
- Support list of objects for JSON by @RVRhub in https://github.com/datafaker-net/datafaker/pull/693
- Rewrite nested json tests for stream and remove deprecated json by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/699
- Few more Java 17 syntax improvements. by @bodiam in https://github.com/datafaker-net/datafaker/pull/697
- Removal of deprecated code. by @bodiam in https://github.com/datafaker-net/datafaker/pull/706
- Fix non-capturing groups by @kingthorin in https://github.com/datafaker-net/datafaker/pull/707
- Reformat and Enrich device.yml by @yuokada in https://github.com/datafaker-net/datafaker/pull/715
- Add first time contributor guide by @jamievasales in https://github.com/datafaker-net/datafaker/pull/717
- Added Qodana support (experiment) by @bodiam in https://github.com/datafaker-net/datafaker/pull/703
- Do not cache methods of expressions with args by @valfirst in https://github.com/datafaker-net/datafaker/pull/719
- Add allergens in Food provider by @panilya in https://github.com/datafaker-net/datafaker/pull/724
- Fix Kotlin examples in Transformers documentation by @panilya in https://github.com/datafaker-net/datafaker/pull/725
- Improve aviation provider by @panilya in https://github.com/datafaker-net/datafaker/pull/726
- Update Australia resource typo and add places and animals by @jamievasales in https://github.com/datafaker-net/datafaker/pull/728
- Update README for latest release by @kingthorin in https://github.com/datafaker-net/datafaker/pull/732
- Enable jdk20 in ci by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/736
- Added 'addUrl' method by @tcttk in https://github.com/datafaker-net/datafaker/pull/727
- OscarMovie should store rules to access data but not the actual field names by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/742
- Add test of deterministic and non deterministic provider's methods by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/743
- Increase numberOfTestsPerMethod to 100 for testDeterministicAndNonDeterministicProvidersReturnValues by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/745
- Refactor1 : Worked on the failed build for previous PR #739 by @almasfiza in https://github.com/datafaker-net/datafaker/pull/744
- Extract common part from FakerContext#localeChain by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/748
- Update spotless and refactor WordUtils by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/749
- Return input value instead of intantiating a new one by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/750
- Remove from doc removed formats, update example in readme by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/753
- Feature/hacker localization nb no by @Majid-J in https://github.com/datafaker-net/datafaker/pull/755
- Update expressions.md by @novozhilov35 in https://github.com/datafaker-net/datafaker/pull/756
- Aviation provider: Added general and cargo airplanes. by @L-Evg in https://github.com/datafaker-net/datafaker/pull/758
- fix csv expression example in expressions.md by @novozhilov35 in https://github.com/datafaker-net/datafaker/pull/757
- Aviation provider: Added more aircraft. by @L-Evg in https://github.com/datafaker-net/datafaker/pull/761
- Fix aviation empty entry and formatting. by @bodiam in https://github.com/datafaker-net/datafaker/pull/762
- Add annotation support for data classes based on JavaObjectTransformer by @RVRhub in https://github.com/datafaker-net/datafaker/pull/754
- Red Dead Redemption 2 Provider by @Majid-J in https://github.com/datafaker-net/datafaker/pull/766
- BaseFakerTest - Assert that provider lists should not have blank entries by @kingthorin in https://github.com/datafaker-net/datafaker/pull/769
- Introduce FakeValuesContext and FAKE_VALUES_MAP by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/767
- Remove unused package private method and tests by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/772
- Aviation provider: added more airlines. by @L-Evg in https://github.com/datafaker-net/datafaker/pull/765
- Add Norwegian localization for olympic sports by @Majid-J in https://github.com/datafaker-net/datafaker/pull/775
- Aviation provider: Airport names and more ICAO airport codes. by @L-Evg in https://github.com/datafaker-net/datafaker/pull/774
- Add Final Fantasy XIV faker by @panilya in https://github.com/datafaker-net/datafaker/pull/783
- Moved CreditCardType to an internal class. Cleaned up a few Qodana wa… by @bodiam in https://github.com/datafaker-net/datafaker/pull/786
- Add degree in University faker by @panilya in https://github.com/datafaker-net/datafaker/pull/785
- Use spotless to enforce format of en yaml files by @kingthorin in https://github.com/datafaker-net/datafaker/pull/781
- Vehicle provider: Added more Italian cars. by @L-Evg in https://github.com/datafaker-net/datafaker/pull/789
- Different types of transport fake data by @sergejsvisockis in https://github.com/datafaker-net/datafaker/pull/791
- Introduce cache of suppliers and remove usage of Objects.hash to speed up by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/792
- Add call for super constructors by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/795
- Replace deprecated class#newInstance by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/796
- Keep abc order in BaseProviders by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/798
- Remove unused class and methods by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/801
- Add shading for generex and automaton by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/797
- Configured Maven to create a MANIFEST file. Renamed Data Faker to Datafaker by @bodiam in https://github.com/datafaker-net/datafaker/pull/802
- Update dependabot.yml by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/804
- Various Dutch address and name improvements. by @bodiam in https://github.com/datafaker-net/datafaker/pull/805
- Improved Australian addresses and general secondary addresses. by @bodiam in https://github.com/datafaker-net/datafaker/pull/808
- Add support populate Java Object with custom schema without FakeForSc… by @RVRhub in https://github.com/datafaker-net/datafaker/pull/787
- Introduce cache of default schemas to FakeResolver by @RVRhub in https://github.com/datafaker-net/datafaker/pull/809
- Cache suppliers for java transformers, improve hashing by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/810
- Use consumer
- Make FakeValuesService thread safe by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/770
- Generating US routing number (ABA RTN) in Finance provider. by @polarfish in https://github.com/datafaker-net/datafaker/pull/821
- Eliminate System.out.println, speed up Finance#usRoutingNumber by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/825
- Add Java Record support in JavaObjectTransformer by @panilya in https://github.com/datafaker-net/datafaker/pull/824
- Add support for Azure Spring Apps by @bowen5 in https://github.com/datafaker-net/datafaker/pull/834
- Make repeatability test comparing per entry to simplify analisys by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/835
- Make FakerRepeatabilityIntegrationTest running in same thread by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/837
- Make pastDateExpression test more stable by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/836
- Speed up Number#numberBetween for int values by @snuyanzin in https://github.com/datafaker-net/datafaker/pull/838
- Internet provider: re-implement url, add webdomain method by @kingthorin in https://github.com/datafaker-net/datafaker/pull/841
Providers added¶
- Final Fantasy XIV
- Red Dead Redemption 2
- Transport
See https://www.datafaker.net/documentation/providers/ for the full overview of providers.