What's changed in Datafaker 3.0, and is it worth upgrading?

November 30, 2026 3 answers
Asked by d.529~Zelmari

I saw that Datafaker 3.0 is out. What should users know about compatibility, performance, and the size of the library before moving from 2.x?

Answers

6k+Nerquivo

The release is described as mostly compatible with 2.x, and Java 17 is still the baseline. The major version bump reflects potentially breaking changes from enabling JSpecify, so check how your project's nullness tooling handles the upgrade rather than assuming it's completely drop-in.

There are also new features, speed improvements, and better GraalVM support. The announcement doesn't give specific benchmarks, so I'd test the parts your project relies on before drawing conclusions about the performance gain.

Reply to this answer
4k!ferrulevisor_527

One thing to watch: realistic-looking fake data can accidentally match real people or addresses. An email generator can produce an address that actually exists, even though it wasn't intended to identify anyone.

If your tests send messages, don't assume generated addresses are safe recipients. Keep outbound email disabled or use a controlled test setup.

Reply to this answer
_m8.Velquix

The amount of bundled content is a fair question. Datafaker includes playful material as well as data for many languages, and not every project will use all of it.

The release discussion puts the JAR under 3 MB and describes it as having almost no dependencies. Whether that's a reasonable tradeoff depends on how much you care about package size versus having a broad selection of data available.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions