npm / @faker-js/faker
@faker-js/faker
What changed in @faker-js/faker 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking1 security43 new APIs and options19 behavior and defaults31 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@faker-js/faker 1096 changes
Breaking changes 2
Stops scaling the HSLA alpha into a percentage.
Rejects refDates that a ULID timestamp cannot encode.
Security 1
Faker: helpers.fake exploitable into arbritary code execution
New APIs and options 43
Adds vehicle data for the de locale.
Adds 060 Japanese mobile phone number formats.
Adds Norwegian animal data for the nb_NO locale.
Adds Norwegian food data for the nb_NO locale.
Changes ne to Devangari and adds en_NP.
Introduces the NumberRange type.
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.
Adds color data for the cy locale.
Can now accept a year range when generating a future date.
Can now accept a year range when generating a past date.
Can now accept a date range when generating a recent date.
Can now accept a date range when generating a soon date.
Adds postal_address data and improves secondary_address data.
Adds Farsi airline locale data.
Exposes core.locale as a LocaleProxy.
Introduces FakerCore as a core Faker API.
Adds the sl_SI locale with location module data.
Adds the mn_MN_cyrl Mongolian locale.
Adds postal address generation.
Adds distributor functions to the number module.
Adds a mobile style for generated phone numbers.
Adds the first standalone module functions.
Adds a Norwegian country definition for the nb_NO locale.
UUID v7 is now supported.
Japanese color definitions are added.
A Japanese dog definition is added.
A Japanese food module is added.
Japanese internet definitions are added.
Japanese job definitions are added for the person module.
Japanese suffix definitions are added for the person module.
Norwegian continent definitions are added.
A Norwegian direction definition is added.
Norwegian sex definitions are added.
A Norwegian vehicle definition is added.
Norwegian zodiac sign definitions are added.
Adds a location module for the bn_BD locale.
Adds states (regions) to the Danish locale.
Adds Hungarian city names, full street addresses, continents, countries, and directions.
Adds Indonesian translations for animal, color, commerce, and word data, and adds country data to location.
Adds person module data to the ku_ckb locale.
Adds the ku_kmr_latin locale.
Adds the sl_SI locale and its person module data.
Adds support for UPC.
Behavior and default changes 19
Organizes first names by gender in the en locale.
Improves middle names organized by gender for the en locale.
Adds mobile phone number styles for more locales.
Adds more realistic Greek address data.
Improves en_GB postcode data.
Improves en_IE postal address data.
Expands plant-based dish and pattern variety.
Extends Turkish person last names.
Adds Japanese cat breed definitions.
Adds Japanese horse breed definitions.
Adds plant-based dish variety.
sexType can now return 'generic'.
Allows product name patterns to vary by locale.
Uses accents in English country names.
Adds support for Iranian IBANs.
Removes some negative words from the Hungarian locale.
Removes offensive and inappropriate words from the Japanese locale.
Adds counties and states to nb_NO location data.
Moves raspberry from the vegetable category to the fruit category.
Fixes and other changes 31
Gives the LCH hue its full 360 degree range.
Fixes handling of prototype property keys.
Validates CIDR prefix length and octet range in ipv4().
Generates long passwords without causing a stack overflow.
Excludes reserved port 0 from generated internet ports.
Excludes forbidden letter combinations from Dutch postcodes.
Generates only valid French postal codes.
Uses only valid letters in en_CA postcodes.
Calculates the VIN check digit.
The closest strategy now picks the nearest word length.
Updates the nl_BE phone number patterns.
Fixes an incorrect date boundary in past and future.
Fixes an incorrect date boundary in past and future.
Fixes a typo in de_CH last names.
Corrects fruit and vegetable locale data.
Fixes phone numbers for en_AU.
Corrects Farsi phone locales.
Fixes lazy results in fake.
Validates unsupported fileExt mime types.
routingNumber now uses a real FederalReserveRoutingSymbol from a lookup table.
Ignores wrapper characters in fromRegExp and handles single-character patterns.
Removes citation brackets from snake names.
Adds Japanese bear definitions.
Adds Japanese bird definitions.
Adds Japanese cattle breed definitions.
Adds Japanese fish definitions.
Corrects typos and capitalization in Mexican Spanish street names.
Adds phone numbers for the fi locale.
Empty strings are removed from Hebrew lorem words.
The state name is corrected to Trøndelag for the nb_NO locale.
Corrects the locale endonym to use Latin script.