File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ### Remove deprecated image methods
2+
3+ Removed deprecated image methods
4+
5+ | old | replacement |
6+ | ------------------------- | ------------------------------------------------------------------------------ |
7+ | ` faker.image.image() ` | ` faker.image.url() ` |
8+ | ` faker.image.imageUrl() ` | ` faker.image.url() ` |
9+ | ` faker.image.abstract() ` | ` faker.image.urlLoremFlickr({ category: 'abstract' }) ` or ` faker.image.url() ` |
10+ | ` faker.image.animals() ` | ` faker.image.urlLoremFlickr({ category: 'animals' }) ` or ` faker.image.url() ` |
11+ | ` faker.image.business() ` | ` faker.image.urlLoremFlickr({ category: 'business' }) ` or ` faker.image.url() ` |
12+ | ` faker.image.cats() ` | ` faker.image.urlLoremFlickr({ category: 'cats' }) ` or ` faker.image.url() ` |
13+ | ` faker.image.city() ` | ` faker.image.urlLoremFlickr({ category: 'city' }) ` or ` faker.image.url() ` |
14+ | ` faker.image.food() ` | ` faker.image.urlLoremFlickr({ category: 'food' }) ` or ` faker.image.url() ` |
15+ | ` faker.image.nightlife() ` | ` faker.image.urlLoremFlickr({ category: 'nightlife' }) ` or ` faker.image.url() ` |
16+ | ` faker.image.fashion() ` | ` faker.image.urlLoremFlickr({ category: 'fashion' }) ` or ` faker.image.url() ` |
17+ | ` faker.image.people() ` | ` faker.image.urlLoremFlickr({ category: 'people' }) ` or ` faker.image.url() ` |
18+ | ` faker.image.nature() ` | ` faker.image.urlLoremFlickr({ category: 'nature' }) ` or ` faker.image.url() ` |
19+ | ` faker.image.sports() ` | ` faker.image.urlLoremFlickr({ category: 'sports' }) ` or ` faker.image.url() ` |
20+ | ` faker.image.technics() ` | ` faker.image.urlLoremFlickr({ category: 'technics' }) ` or ` faker.image.url() ` |
21+ | ` faker.image.transport() ` | ` faker.image.urlLoremFlickr({ category: 'transport' }) ` or ` faker.image.url() ` |
You can’t perform that action at this time.
0 commit comments