Skip to content

Commit

Permalink
refactor(random)!: remove v8 deprecated image methods (#2697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Feb 29, 2024
1 parent 5125d6c commit e99fba9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 517 deletions.
21 changes: 21 additions & 0 deletions docs/guide/upgrading_v9/2697.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### Remove deprecated image methods

Removed deprecated image methods

| old | replacement |
| ------------------------- | ------------------------------------------------------------------------------ |
| `faker.image.image()` | `faker.image.url()` |
| `faker.image.imageUrl()` | `faker.image.url()` |
| `faker.image.abstract()` | `faker.image.urlLoremFlickr({ category: 'abstract' })` or `faker.image.url()` |
| `faker.image.animals()` | `faker.image.urlLoremFlickr({ category: 'animals' })` or `faker.image.url()` |
| `faker.image.business()` | `faker.image.urlLoremFlickr({ category: 'business' })` or `faker.image.url()` |
| `faker.image.cats()` | `faker.image.urlLoremFlickr({ category: 'cats' })` or `faker.image.url()` |
| `faker.image.city()` | `faker.image.urlLoremFlickr({ category: 'city' })` or `faker.image.url()` |
| `faker.image.food()` | `faker.image.urlLoremFlickr({ category: 'food' })` or `faker.image.url()` |
| `faker.image.nightlife()` | `faker.image.urlLoremFlickr({ category: 'nightlife' })` or `faker.image.url()` |
| `faker.image.fashion()` | `faker.image.urlLoremFlickr({ category: 'fashion' })` or `faker.image.url()` |
| `faker.image.people()` | `faker.image.urlLoremFlickr({ category: 'people' })` or `faker.image.url()` |
| `faker.image.nature()` | `faker.image.urlLoremFlickr({ category: 'nature' })` or `faker.image.url()` |
| `faker.image.sports()` | `faker.image.urlLoremFlickr({ category: 'sports' })` or `faker.image.url()` |
| `faker.image.technics()` | `faker.image.urlLoremFlickr({ category: 'technics' })` or `faker.image.url()` |
| `faker.image.transport()` | `faker.image.urlLoremFlickr({ category: 'transport' })` or `faker.image.url()` |

0 comments on commit e99fba9

Please sign in to comment.