unstale

pypi / faker

faker

What changed in faker 38 to 40, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.

7 breaking36 new APIs and options10 behavior and defaults27 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

faker 4070 changes

Breaking changes 5

  • The bank provider was updated for pt_BR, which may change generated bank data for that locale.

    40.26.0release notes

  • The job provider was updated for pt_BR, which may change generated job data for that locale.

    40.26.0release notes

  • The phone_number provider was updated for pt_BR, which may change generated phone numbers for that locale.

    40.26.0release notes

  • The ssn provider was updated for pt_BR, which may change generated SSNs for that locale.

    40.26.0release notes

  • bank() now raises NotImplementedError for locales without banks data.

    40.23.1release notes

New APIs and options 30

  • Adds a bank provider for the es_CO locale.

    40.43.0release notes

  • Adds an internet provider for the es_CO locale.

    40.43.0release notes

  • Adds a Sinhala (Sri Lanka) person provider for the si_LK locale.

    40.38.0release notes

  • Pillow is added as an optional dependency.

    40.37.0release notes

  • Adds alphanumeric CNPJ support for pt_BR via a flag.

    40.33.0release notes

  • Adds the allowed_path_traversal_elements option to file_path().

    40.32.0release notes

  • Adds an automotive license plate provider for the es_MX locale.

    40.28.0release notes

  • Adds an SSN provider for the sr_BA locale.

    40.27.0release notes

  • Adds the Macedonian locale.

    40.24.0release notes

  • Adds the person, address, and phone_number providers for the mr_IN locale.

    40.22.0release notes

  • Adds a banks list for the en_GB locale, changing the bank data available to developers using that locale.

    40.21.0release notes

  • Adds the gstin generator to the en_IN SSN provider.

    40.20.0release notes

  • Adds the pan generator to the en_IN SSN provider.

    40.20.0release notes

  • The misc provider adds uuid1, allowing developers to generate UUID version 1 values.

    40.19.0release notes

  • The misc provider adds uuid7, allowing developers to generate UUID version 7 values.

    40.19.0release notes

  • Automotive providers are now available for the ar_DZ and fr_DZ locales.

    40.18.0release notes

  • The phone_number provider is now available for the ar_DZ and fr_DZ locales.

    40.18.0release notes

  • Adds an Ethiopia phone_number provider for the am_ET locale.

    40.17.0release notes

  • Company providers are now available for the ar_DZ and fr_DZ locales.

    40.15.0release notes

  • Currency providers are now available for the ar_DZ and fr_DZ locales.

    40.15.0release notes

  • The date_time provider is now available for the ar_DZ locale.

    40.15.0release notes

  • Geo providers are now available for the ar_DZ and fr_DZ locales.

    40.15.0release notes

  • Job providers are now available for the ar_DZ and fr_DZ locales.

    40.15.0release notes

  • SSN providers are now available for the ar_DZ and fr_DZ locales.

    40.15.0release notes

  • Address providers are now available for the ar_DZ locale.

    40.12.0release notes

  • Address providers are now available for the fr_DZ locale.

    40.12.0release notes

  • The he_IL locale now includes country names.

    40.6.0release notes

  • Adds cie support for the it_IT locale.

    40.4.0release notes

  • Adds passport support for the it_IT locale.

    40.4.0release notes

  • Adds selective uniqueness with exclude_types.

    40.1.0release notes

Behavior and default changes 9

  • uuid1() is reproducible under a fixed seed.

    40.33.1release notes

  • French social security number generation now includes Corsican codes.

    40.23.0release notes

  • The Swiss bank provider now includes major Swiss banks.

    40.11.0release notes

  • The hu_HU locale now includes free email domains.

    40.8.0release notes

  • Polish addresses now categorize street types and prefixes, improving address grammar.

    40.7.0release notes

  • Adds missing formats and removes duplicates in user_name_formats, changing the available username formats.

    40.5.0release notes

  • The bank provider for el_GR now includes major Greek banks.

    40.3.0release notes

  • The internet provider’s domains, TLDs, and slugify data were updated for the pt_BR locale.

    40.2.0release notes

  • The requirement for tzdata now depends on the platform.

    40.1.2release notes

Fixes and other changes 26

  • IBANs generated for fa_IR and mk_MK now have the correct BBAN length.

    40.42.0release notes

  • Updated Vietnamese address formats, administrative units, and postcodes.

    40.41.0release notes

  • Fixes generation of invalid CNP birth dates for ro_RO ssn().

    40.40.0release notes

  • Norwegian MOD11 check digits are now computed correctly so no_NO iban() passes stdnum validation.

    40.39.0release notes

  • Irish IBANs generated for en_IE are now structurally valid.

    40.37.0release notes

  • Corrects the uk_UA bban_format to 6 digits + 19 letters so iban() generates valid Ukrainian IBANs.

    40.36.0release notes

  • For ru_RU, iban() now generates valid Russian IBANs using the correct bban_format.

    40.35.0release notes

  • Corrects BBAN length so da_DK iban() generates valid Danish IBANs.

    40.34.0release notes

  • Validates positive=True against a non-positive max_value.

    40.33.2release notes

  • uuid7() is reproducible under a fixed seed.

    40.33.1release notes

  • Corrects BBAN length so pt_BR iban() generates valid Brazilian IBANs.

    40.31.0release notes

  • Generates valid Belgian bank codes for the nl_BE locale.

    40.30.0release notes

  • Generates valid Spanish CCC control digits in es_ES.

    40.29.0release notes

  • Fixes the ISO 7064 Mod 11,10 check digit generated for de_DE vat_id values.

    40.28.1release notes

  • Outdated Korean locale names were updated.

    40.25.0release notes

  • Prevents infinite recursion when both bounds collapse to the same integer.

    40.24.1release notes

  • Fixes shared state mutation in the en_IN pincode_in_state method.

    40.19.1release notes

  • The placekitten URL was updated to placekittens.

    40.14.0release notes

  • Locale selection is now deterministic in multi-locale mode.

    40.13.0release notes

  • Deepcopy proxies are rebound to copied Faker instances.

    40.11.1release notes

  • Fixed mixed-gender names in the es_MX locale.

    40.10.0release notes

  • Fixes the postalcode format for pt_PT in the address provider.

    40.9.0release notes

  • Fixes mutable default providers.

    40.8.1release notes

  • Fixes a missing return statement in _get_local_timezone().

    40.5.1release notes

  • Fixes a TypeError when combining positive=True with max_value.

    40.1.3release notes

  • Fixes grouping for the -i CLI parameter.

    40.1.1release notes

faker 392 changes

Breaking changes 1

  • Duplicate entries were removed from Russian professions, changing the values Faker may generate.

    39.0.0release notes

New APIs and options 1

faker 388 changes

Breaking changes 1

New APIs and options 5

  • Adds a French company RCS number provider method.

    38.3.0release notes

  • Adds the date_time provider for the fr_DZ locale.

    38.1.0release notes

  • Adds the person provider for the ar_DZ locale.

    38.1.0release notes

  • Adds the person provider for the fr_DZ locale.

    38.1.0release notes

  • Adds the phone_number provider for the fr_DZ locale.

    38.1.0release notes

Behavior and default changes 1

Fixes and other changes 1