Skip to content

Commit

Permalink
fix(image)!: remove lorempixel (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Dec 10, 2022
1 parent e4839a9 commit ab9fa1f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 454 deletions.
1 change: 1 addition & 0 deletions docs/guide/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Not the version you are looking for?
| `faker.address.citySuffix` | _Removed_ |
| `faker.address.streetPrefix` | _Removed_ |
| `faker.address.streetSuffix` | _Removed_ |
| `faker.image.lorempixel` | _Removed, as the LoremPixel service is no longer available_ |

### Locale renamed

Expand Down
7 changes: 0 additions & 7 deletions src/modules/image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ import type { Faker } from '../..';
import { deprecated } from '../../internal/deprecated';
import type { MethodsOf } from '../../utils/types';
import { LoremPicsum } from './providers/lorempicsum';
import { Lorempixel } from './providers/lorempixel';
import { Placeholder } from './providers/placeholder';
import { Unsplash } from './providers/unsplash';

/**
* Module to generate images.
*/
export class ImageModule {
/**
* @deprecated Use `faker.image` instead.
*/
readonly lorempixel: Lorempixel;

/**
* @deprecated Use `faker.image` instead.
*/
Expand All @@ -39,7 +33,6 @@ export class ImageModule {
this[name] = this[name].bind(this);
}

this.lorempixel = new Lorempixel(this.faker);
this.unsplash = new Unsplash(this.faker);
this.lorempicsum = new LoremPicsum(this.faker);
this.placeholder = new Placeholder(this.faker);
Expand Down
Loading

0 comments on commit ab9fa1f

Please sign in to comment.