Faker v10.5.0, a minor update released on 2026-06-17, focuses on expanding data generation capabilities and improving locale accuracy.
TL;DR
- New
postal_addressgeneration andmobilephone number styles. - Flexible date generation with
past/futureyear ranges. - Multiple locale data fixes and additions, including Slovenian and Mongolian.
Key Changes
New Features:
- Data Generation: Introduces
postal_addressgeneration, including specific improvements fores,en_IE, and Greek locales. Thephone.numbermodule now supports amobilestyle, and newdistributorfunctions are available for number generation. - Date Flexibility: The
date.pastanddate.futuremethods now allow specifying a year range, offering greater control over generated date data. - Locale Expansion: Added full
sl_SI(Slovenian) andmn_MN_cyrl(Mongolian) locales. The Farsi locale gains an airline module, and the Welsh (cy) locale now includes color data.
Improvements & Fixes:
- Locale Accuracy: Critical fixes address incorrect phone numbers for Farsi and
en_AU, a typo inde_CHlast names, and improved fruit/vegetable data. - Financial Data: The
finance.routingNumbernow uses real Federal Reserve lookup tables, significantly enhancing its realism. - Helper Functions: The
helpers.fromRegExpfunction has been improved to correctly ignore wrapper characters. - Documentation: Instructions for resolving v10 compatibility issues with Jest have been added.
Impact for QA Teams
This update directly benefits QA engineers by providing more realistic and diverse test data out-of-the-box. The enhanced locale support and data accuracy reduce the need for custom data generation scripts, streamlining testing workflows for internationalized applications and complex data scenarios.
