unstale

npm / @faker-js/faker

@faker-js/faker

What changed in @faker-js/faker 7 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

66 breaking1 security10 deprecations100 new APIs and options31 behavior and defaults36 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@faker-js/faker 10109 changes

Breaking changes 15

  • Stops scaling the HSLA alpha into a percentage.

    10.6.0release notes

  • Rejects refDates that a ULID timestamp cannot encode.

    10.6.0release notes

  • Invalid credit card issuer patterns are removed.

    10.0.0release notes

  • Faker v10 is an ESM-only package; CommonJS projects can still use it through Node.js's ESM Modules require feature in sufficiently recent Node versions.

    10.0.0upgrade guiderelease notes

  • Deprecated address methods have been removed; use the corresponding faker.location methods instead.

    10.0.0upgrade guide

  • This method has been removed; the notes point to issue #3201 for details.

    10.0.0upgrade guide

  • This method has been removed; use faker.image.avatar instead.

    10.0.0upgrade guide

  • This method has been removed; use faker.image.dataUri instead.

    10.0.0upgrade guide

  • This method has been removed; use faker.color.rgb instead.

    10.0.0upgrade guide

  • This method has been removed; use faker.internet.username instead.

    10.0.0upgrade guide

  • Deprecated name methods have been removed; use the corresponding faker.person methods instead.

    10.0.0upgrade guide

  • Word methods now default to the fail resolution strategy and throw when no words match the input criteria; use any-length to restore the previous fallback behavior.

    10.0.0upgrade guiderelease notes

  • Node.js v18 is no longer supported; Faker v10 requires Node.js v20.19.0, v22.13.0, or v24.0.0.

    10.0.0upgrade guide

  • For CommonJS codebases, supported module resolution values are now Bundler, Node20, and NodeNext; Node20 requires TypeScript 5.9.0 or newer.

    10.0.0upgrade guide

  • The v9 deprecations are removed.

    10.0.0release notes

Security 1

New APIs and options 43

  • Adds vehicle data for the de locale.

    10.6.0release notes

  • Adds 060 Japanese mobile phone number formats.

    10.6.0release notes

  • Adds Norwegian animal data for the nb_NO locale.

    10.6.0release notes

  • Adds Norwegian food data for the nb_NO locale.

    10.6.0release notes

  • Changes ne to Devangari and adds en_NP.

    10.6.0release notes

  • Introduces the NumberRange type.

    10.6.0release notes

  • Adds Welsh locale data for sex, direction, animals, vehicle fuel, book format, counties, postal addresses and postcodes, internet domain suffixes, phone numbers, continents, city names, street names, states, and building numbers.

    10.5.0release notes

  • Adds color data for the cy locale.

    10.5.0release notes

  • Can now accept a year range when generating a future date.

    10.5.0release notes

  • Can now accept a year range when generating a past date.

    10.5.0release notes

  • Can now accept a date range when generating a recent date.

    10.5.0release notes

  • Can now accept a date range when generating a soon date.

    10.5.0release notes

  • Adds postal_address data and improves secondary_address data.

    10.5.0release notes

  • Adds Farsi airline locale data.

    10.5.0release notes

  • Exposes core.locale as a LocaleProxy.

    10.5.0release notes

  • Introduces FakerCore as a core Faker API.

    10.5.0release notes

  • Adds the sl_SI locale with location module data.

    10.5.0release notes

  • Adds the mn_MN_cyrl Mongolian locale.

    10.5.0release notes

  • Adds postal address generation.

    10.5.0release notes

  • Adds distributor functions to the number module.

    10.5.0release notes

  • Adds a mobile style for generated phone numbers.

    10.5.0release notes

  • Adds the first standalone module functions.

    10.5.0release notes

  • Adds a Norwegian country definition for the nb_NO locale.

    10.4.0release notes

  • UUID v7 is now supported.

    10.3.0release notes

  • Japanese color definitions are added.

    10.3.0release notes

  • A Japanese dog definition is added.

    10.3.0release notes

  • A Japanese food module is added.

    10.3.0release notes

  • Japanese internet definitions are added.

    10.3.0release notes

  • Japanese job definitions are added for the person module.

    10.3.0release notes

  • Japanese suffix definitions are added for the person module.

    10.3.0release notes

  • Norwegian continent definitions are added.

    10.3.0release notes

  • A Norwegian direction definition is added.

    10.3.0release notes

  • Norwegian sex definitions are added.

    10.3.0release notes

  • A Norwegian vehicle definition is added.

    10.3.0release notes

  • Norwegian zodiac sign definitions are added.

    10.3.0release notes

  • Adds a location module for the bn_BD locale.

    10.2.0release notes

  • Adds states (regions) to the Danish locale.

    10.2.0release notes

  • Adds Hungarian city names, full street addresses, continents, countries, and directions.

    10.2.0release notes

  • Adds Indonesian translations for animal, color, commerce, and word data, and adds country data to location.

    10.2.0release notes

  • Adds person module data to the ku_ckb locale.

    10.2.0release notes

  • Adds the ku_kmr_latin locale.

    10.2.0release notes

  • Adds the sl_SI locale and its person module data.

    10.2.0release notes

  • Adds support for UPC.

    10.2.0release notes

Behavior and default changes 20

Fixes and other changes 30

@faker-js/faker 932 changes

Breaking changes 16

  • The package is converted to ESM, affecting how developers load it in their projects.

    9.0.0release notes

  • Prices can now be returned as fractional values.

    9.0.0release notes

  • Date methods fail on invalid dates, between has stricter error handling, and birthdate behavior is improved.

    9.0.0release notes

  • The timeZone method is separated.

    9.0.0release notes

  • The discontinued Maestro credit card issuer is removed from locale data.

    9.0.0release notes

  • Type checking is stricter for the function signature passed to multiple.

    9.0.0release notes

  • Deprecated locale aliases and the unused global locale faker instance are removed.

    9.0.0release notes

  • The default_country definitions are removed.

    9.0.0release notes

  • The v8-deprecated number parameter is removed.

    9.0.0release notes

  • Job definitions are flattened.

    9.0.0release notes

  • Word definitions are reduced to 1,000 in all locales.

    9.0.0release notes

  • Image defaults are randomized.

    9.0.0release notes

  • Locale data uses snake case and singular locale definition keys; location data no longer uses index-value binding.

    9.0.0release notes

  • Support for Node.js versions earlier than 18 is dropped.

    9.0.0release notes

  • Support for TypeScript versions earlier than 5 is dropped.

    9.0.0release notes

  • Deprecated APIs from v8 are removed, including deprecated providers and methods across multiple modules.

    9.0.0release notes

Deprecations 1

New APIs and options 10

  • The en_CA locale now provides postcodes by state.

    9.0.0release notes

  • Multiple bitcoin address types and testnet support are added.

    9.0.0release notes

  • Japanese street and street address support is added.

    9.0.0release notes

  • Additional music genres and album and artist methods are added.

    9.0.0release notes

  • The multipleOf option is added to faker.number.int.

    9.0.0release notes

  • A new style parameter is added to phone methods.

    9.0.0release notes

  • A new food module is available.

    9.0.0release notes

  • The pt_PT locale now includes company information.

    9.0.0release notes

  • The sk locale now includes state information, expanding localized state data.

    9.0.0release notes

  • A Uzbek locale is added and extended with date, color, commerce, location, and lorem data.

    9.0.0release notes

Behavior and default changes 4

  • More simple animals are available in the generated animal types.

    9.0.0release notes

  • Company locale data is extended for Hebrew.

    9.0.0release notes

  • Const generics are used where possible, affecting inferred types.

    9.0.0release notes

  • The pt_PT locale now provides more color data.

    9.0.0release notes

Fixes and other changes 1

@faker-js/faker 884 changes

Breaking changes 30

  • The finance account API is renamed accountNumber.

    8.0.0release notes

  • arrayElement no longer has a default value.

    8.0.0release notes

  • The company locale definition key bs is renamed to buzz.

    8.0.0release notes

  • The location locale definition city is renamed city_pattern.

    8.0.0release notes

  • Country codes now use ISO-3166-1.

    8.0.0release notes

  • The locale identifier cz is renamed cs_CZ.

    8.0.0release notes

  • Support for dynamically switching locales is removed.

    8.0.0release notes

  • The en_IND locale identifier changes to en_IN.

    8.0.0release notes

  • Pre-built Faker instances can be imported from the package, though the notes recommend locale-specific imports because of a known bug.

    8.0.0release notes

  • The price method now uses an options object.

    8.0.0release notes

  • The image module is rewritten and lorempixel is removed.

    8.0.0release notes

  • The method now returns a number.

    8.0.0release notes

  • The method now returns a number tuple.

    8.0.0release notes

  • Number-generation methods move to a new module.

    8.0.0release notes

  • The float method defaults to high precision, and its default parameters change.

    8.0.0release notes

  • The hex method's default changes.

    8.0.0release notes

  • The int method's default parameters change.

    8.0.0release notes

  • The name module is renamed to person.

    8.0.0release notes

  • Prefixes are split into gendered versions.

    8.0.0release notes

  • Errors are now thrown when locale data does not exist.

    8.0.0release notes

  • String methods move to a new module.

    8.0.0release notes

  • allowLeadingZeros now defaults to true.

    8.0.0release notes

  • The string method is named symbol after the special method was renamed.

    8.0.0release notes

  • The locale identifier ge is renamed ka_GE.

    8.0.0release notes

  • Support for switching locales at runtime was removed; custom Faker instances can instead use imported locales chained as fallbacks.

    8.0.0release notes

  • The finance mask API is renamed maskedNumber.

    8.0.0release notes

  • Version 8 is the last version that supports Node.js v14; later major versions will not support it.

    8.0.0release notes

  • Locale definitions use null to represent not applicable values.

    8.0.0release notes

  • The location locale definition street is renamed street_pattern.

    8.0.0release notes

  • Locale title moves to metadata.

    8.0.0release notes

Deprecations 7

  • location.cityName is deprecated.

    8.0.0release notes

  • datatype.datetime is deprecated.

    8.0.0release notes

  • Company suffix methods are deprecated.

    8.0.0release notes

  • Raw locale data remains accessible through faker.rawDefinitions, but it is unsupported and may change at any time.

    8.0.0release notes

  • Image providers are deprecated; use the image module directly.

    8.0.0release notes

  • The random module is deprecated.

    8.0.0release notes

  • location.streetName is deprecated.

    8.0.0release notes

New APIs and options 41

Behavior and default changes 3

  • The helper can now generate from an array and allows an empty string.

    8.0.0release notes

  • The method now returns IPv4 and IPv6 addresses.

    8.0.0release notes

  • English locales add hyphenated names.

    8.0.0release notes

Fixes and other changes 3

  • The en_IND locale is restored.

    8.0.0release notes

  • Person locale definitions add last_name_patterns to avoid repeating last names.

    8.0.0release notes

  • Picsum images now use the Faker seed.

    8.0.0release notes

@faker-js/faker 719 changes

Breaking changes 5

  • Deprecated APIs were removed, which may require updating code that still uses them.

    7.0.0release notes

  • The package now targets ES2020, which may affect the JavaScript environments able to run it.

    7.0.0release notes

  • The TypeScript export assignment form was removed, affecting how consumers import the package.

    7.0.0release notes

  • The default export was removed; developers must use the supported named exports instead.

    7.0.0release notes

  • Node.js 12 is no longer supported.

    7.0.0release notes

Deprecations 2

New APIs and options 6

Behavior and default changes 4

  • The banned value can now be provided as a string.

    7.0.0release notes

  • City generation now uses a localized fake pattern.

    7.0.0release notes

  • Street generation now uses a localized fake pattern.

    7.0.0release notes

  • The bigInt generator was reimplemented.

    7.0.0release notes

Fixes and other changes 2