From 2a6f578149aebdb5c375378a778383249e9819f3 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 21 Apr 2023 18:36:00 +0200 Subject: refactor(location): deprecate streetName (#2071) --- src/modules/location/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/modules') diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 1d0bd4a4..76b3e100 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -199,12 +199,22 @@ export class LocationModule { /** * Returns a random localized street name. * + * @see faker.location.street() + * * @example * fakerDE.location.streetName() // 'Cavill Avenue' * * @since 8.0.0 + * + * @deprecated Use `faker.location.street()` instead. */ streetName(): string { + deprecated({ + deprecated: 'faker.location.streetName', + proposed: 'faker.location.street', + since: '8.0', + until: '9.0', + }); return this.faker.helpers.arrayElement( this.faker.definitions.location.street_name ); -- cgit v1.2.3