Skip to content

Commit ab9fa1f

Browse files
authored
fix(image)!: remove lorempixel (#1641)
1 parent e4839a9 commit ab9fa1f

4 files changed

Lines changed: 2 additions & 454 deletions

File tree

docs/guide/upgrading.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Not the version you are looking for?
3434
| `faker.address.citySuffix` | _Removed_ |
3535
| `faker.address.streetPrefix` | _Removed_ |
3636
| `faker.address.streetSuffix` | _Removed_ |
37+
| `faker.image.lorempixel` | _Removed, as the LoremPixel service is no longer available_ |
3738

3839
### Locale renamed
3940

src/modules/image/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@ import type { Faker } from '../..';
22
import { deprecated } from '../../internal/deprecated';
33
import type { MethodsOf } from '../../utils/types';
44
import { LoremPicsum } from './providers/lorempicsum';
5-
import { Lorempixel } from './providers/lorempixel';
65
import { Placeholder } from './providers/placeholder';
76
import { Unsplash } from './providers/unsplash';
87

98
/**
109
* Module to generate images.
1110
*/
1211
export class ImageModule {
13-
/**
14-
* @deprecated Use `faker.image` instead.
15-
*/
16-
readonly lorempixel: Lorempixel;
17-
1812
/**
1913
* @deprecated Use `faker.image` instead.
2014
*/
@@ -39,7 +33,6 @@ export class ImageModule {
3933
this[name] = this[name].bind(this);
4034
}
4135

42-
this.lorempixel = new Lorempixel(this.faker);
4336
this.unsplash = new Unsplash(this.faker);
4437
this.lorempicsum = new LoremPicsum(this.faker);
4538
this.placeholder = new Placeholder(this.faker);

0 commit comments

Comments
 (0)