diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/.vitepress/api-pages.ts | 1 | ||||
| -rw-r--r-- | docs/guide/upgrading_v9/2678.md | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/.vitepress/api-pages.ts b/docs/.vitepress/api-pages.ts index 60cd553d..7df42281 100644 --- a/docs/.vitepress/api-pages.ts +++ b/docs/.vitepress/api-pages.ts @@ -30,7 +30,6 @@ export const apiPages = [ { text: 'Number', link: '/api/number.html' }, { text: 'Person', link: '/api/person.html' }, { text: 'Phone', link: '/api/phone.html' }, - { text: 'Random', link: '/api/random.html' }, { text: 'Science', link: '/api/science.html' }, { text: 'String', link: '/api/string.html' }, { text: 'System', link: '/api/system.html' }, diff --git a/docs/guide/upgrading_v9/2678.md b/docs/guide/upgrading_v9/2678.md new file mode 100644 index 00000000..ce34e1f7 --- /dev/null +++ b/docs/guide/upgrading_v9/2678.md @@ -0,0 +1,12 @@ +### Remove deprecated random module + +Removed deprecated random module + +| old | replacement | +| ----------------------------- | ----------------------------------------------- | +| `faker.random.alpha()` | `faker.string.alpha()` | +| `faker.random.alphaNumeric()` | `faker.string.alphanumeric()` | +| `faker.random.locale()` | `faker.helpers.objectKey(allLocales/allFakers)` | +| `faker.random.numeric()` | `faker.string.numeric()` | +| `faker.random.word()` | `faker.lorem.word()` or `faker.word.sample()` | +| `faker.random.words()` | `faker.lorem.words()` or `faker.word.words()` | |
