Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@noeldemartin/faker

noeldemartin296MIT7.6.0TypeScript support: included

Generate massive amounts of fake contextual data

faker, faker.js, fakerjs, faker-js, fake data generator, fake data, fake-data, fake-generator, fake-data-generator, fake content generator, fake contextual data generator, fake contextual data

readme

Faker (fork)

This is a fork of @faker-js/faker with a "sideEffects": true declaration in the package.json, nothing else is changed.

This is done in order to make the library tree-shakable, as discussed in #1791. It is a temporary workaround, and it probably won't be necessary once the issue is resolved in the main library. Use it at your own discretion, as this naive fix may break some existing functionality.

You can install it the same way you'd install the main library, but using @noeldemartin/faker instead:

npm install @noeldemartin/faker

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

7.6.0 (2022-10-12)

Features

Bug Fixes

  • finance: adjust min length of generated bitcoin address (#1384) (10aded2)
  • finance: fix typo in Belarusian Ruble's name (#1395) (fe214c3)
  • finance: Update Belarusian Ruble to new version (#1392) (526906f)
  • finance: update Venezuelan bolívar name and code (#1394) (0e65143)
  • finance: update Zambian Kwacha to new version (#1393) (115e859)
  • image: properly lock loremflickr.com images (#1396) (2539e6a)
  • improve default seed initialization (#1334) (925db3a)
  • locale: change id_ID name to Indonesian (#1401) (ec0181e)

7.5.0 (2022-08-29)

Features

Bug Fixes

7.4.0 (2022-08-08)

Features

  • add rodent breed on animal 'en' locale (#1136) (a65f1a2)
  • dev: add male_first_name,female_first_name, jp locale (#1217) (ad885ea)
  • image: add image via.placeholder provider (#1186) (00d4741)
  • locales.en: extend vehicle (#1102) (07a970f)
  • locales.pl: add pl translation for gender and binary gender (#1162) (22a050e)
  • system.fileName: file extension count (#1101) (968134c)
  • system.networkInterface: add networkInterface faker (#1133) (5979f82)

Bug Fixes

  • finance.bic: remove hardcoded elements and simplify function (#1171) (5a397e0)

7.3.0 (2022-06-20)

New & Noteworthy

  • Webpack v4 should now be supported 🚀

Features

Bug Fixes

7.2.0 (2022-06-06)

⚠ SOFT BREAKING CHANGES

  • always use https for loremflickr (#1034)
    • we removed the last parameter for image.imageUrl and always generate https urls

Features

Bug Fixes

  • 🇫🇷 fr and 🇨🇭 fr_CH 🎨 colors (#1007) (d96457e)

7.1.0 (2022-05-25)

Features

Bug Fixes

  • Luhn generation algorithms and tests (#980) (c95826f)
  • typescript: support module Node16/NodeNext (#1005) (8736c2a)

7.0.1 (2022-05-23)

Bug Fixes

7.0.0 (2022-05-23)

⚠ BREAKING CHANGES

  • remove faker default export (#799)
  • target es2020 (#848)
  • remove deprecations (#916)
  • get rid of export = (#849)
  • remove node v12 support (#850)
  • reorganize src folder (#909)

Features

Bug Fixes

  • empty array passed into helpers.arrayElements (#921) (100a1ea)
  • generate:locale: make the definition types extendible (#915) (984fbb4)
  • type exports for module NodeNext, Node16 (#979) (73db3a7)
  • typo in error message (#925) (3ea64ce)

build

6.3.1 (2022-05-02)

Bug Fixes

  • replace deprecated arrayElement calls (#903) (42d6795)

6.3.0 (2022-05-02)

Features

Bug Fixes

6.2.0 (2022-04-21)

Features

Bug Fixes

  • Maryland (MD) wrong postal code (#804) (4ac2a04)
  • use \n as default separator for lorem.paragraphs() (#783) (6a2d8fc)

6.1.2 (2022-04-04)

Features

Bug Fixes

  • datatype.number when min = max + precision, throw when max > min (#664) (0304120)
  • deterministic results for address.nearbyGPSCoordinate (#737) (bc7bd57)
  • random word fails on undefined (#771) (fb1b87e)
  • remove doubled extension in system.filePath (#300) (2532eb9)

6.1.1 (2022-03-28)

Bug Fixes

  • forgot to run pnpm run build

6.1.0 (2022-03-28)

WARNING: This build is broken due to missing build files. Please don't use this version!

Features

  • types: generate all locales index files with non-any types (#494) (b611ca1)
  • types: provide strong typing for locales 2 (#398) (419e9e2)

Bug Fixes

6.0.0 (2022-03-15)

Bug Fixes

6.0.0-beta.0 (2022-03-07)

Features

  • types: generate all locales index files with non-any types (#494) (b611ca1)
  • types: provide strong typing for locales 2 (#398) (419e9e2)

Bug Fixes

6.0.0-alpha.7 (2022-02-20)

Features

  • types: generate all locales index files with non-any types (#494) (b611ca1)
  • types: provide strong typing for locales 2 (#398) (419e9e2)

Bug Fixes

6.0.0-alpha.6 (2022-02-10)

Features

  • add chat.fakerjs.dev subdomain redirection to discord (#306) (32b4839)
  • auto generate/update locale files (#252) (df48704)
  • types: provide strong typing for locales (#363) (5e6754d)

Bug Fixes

  • improve internet tests and fix bug in domain name generation (#258) (c6f7aa9)
  • optional args on faker.finance.iban() (#431) (c71469c)
  • param can be optional (#381) (f8a95a1)
  • remove redundant precision from datatype.datetime options (#335) (9d5a7a2)
  • removed dead code and adjusted fileExt (#304) (471bc1d)
  • removed node v12 from the pipe (#309) (537f56e)
  • some return types (#307) (4ca61ca)

6.0.0-alpha.5 (2022-01-25)

Bug Fixes

6.0.0-alpha.4 (2022-01-24)

⚠ BREAKING CHANGES

  • support tree-shaking (#152)

Features

Bug Fixes

6.0.0-alpha.3 (2022-01-15)

Features

Bug Fixes

  • added missing keys into package.json (#148) (b20f80b)

6.0.0-alpha.2 (2022-01-14)

6.0.0-alpha.1 (2022-01-14)

6.0.0-alpha.0 (2022-01-07)

For changes prior to version v6.0.0-alpha.1, see the old changelog.