diff options
| author | Shinigami <[email protected]> | 2024-03-12 15:46:55 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-12 14:46:55 +0000 |
| commit | 19bcf886e41b13a6b77b92bac4775b18e8aa9418 (patch) | |
| tree | 5b72671c7b8ca7c126d4a1f4f2c73e31a85d8db5 /src/modules | |
| parent | e130549e82a3d59af46f2d595ed47fa9a39724a3 (diff) | |
| download | faker-19bcf886e41b13a6b77b92bac4775b18e8aa9418.tar.xz faker-19bcf886e41b13a6b77b92bac4775b18e8aa9418.zip | |
refactor(company)!: remove v8 deprecated company methods (#2726)
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/company/index.ts | 130 |
1 files changed, 0 insertions, 130 deletions
diff --git a/src/modules/company/index.ts b/src/modules/company/index.ts index e0f79e62..b4e8befd 100644 --- a/src/modules/company/index.ts +++ b/src/modules/company/index.ts @@ -1,4 +1,3 @@ -import { deprecated } from '../../internal/deprecated'; import { ModuleBase } from '../../internal/module-base'; /** @@ -17,30 +16,6 @@ import { ModuleBase } from '../../internal/module-base'; */ export class CompanyModule extends ModuleBase { /** - * Returns an array with possible company name suffixes. - * - * @see faker.company.name(): For generating a complete company name. - * - * @example - * faker.company.suffixes() // [ 'Inc', 'and Sons', 'LLC', 'Group' ] - * - * @since 2.0.1 - * - * @deprecated Use `faker.company.name` instead. - */ - suffixes(): string[] { - deprecated({ - deprecated: 'faker.company.suffixes', - proposed: 'faker.company.name', - since: '8.0', - until: '9.0', - }); - // Don't want the source array exposed to modification, so return a copy - // eslint-disable-next-line deprecation/deprecation - return [...this.faker.definitions.company.suffix]; - } - - /** * Generates a random company name. * * @example @@ -53,31 +28,6 @@ export class CompanyModule extends ModuleBase { } /** - * Returns a random company suffix. - * - * @see faker.company.name(): For generating a complete company name. - * - * @example - * faker.company.companySuffix() // 'and Sons' - * - * @since 2.0.1 - * - * @deprecated Use `faker.company.name` instead. - */ - companySuffix(): string { - deprecated({ - deprecated: 'faker.company.companySuffix', - proposed: 'faker.company.name', - since: '8.0', - until: '9.0', - }); - return this.faker.helpers.arrayElement( - // eslint-disable-next-line deprecation/deprecation - this.suffixes() - ); - } - - /** * Generates a random catch phrase that can be displayed to an end user. * * @example @@ -94,26 +44,6 @@ export class CompanyModule extends ModuleBase { } /** - * Generates a random company bs phrase. - * - * @example - * faker.company.bs() // 'cultivate synergistic e-markets' - * - * @since 2.0.1 - * - * @deprecated Use `faker.company.buzzPhrase` instead. - */ - bs(): string { - deprecated({ - deprecated: 'faker.company.bs', - proposed: 'faker.company.buzzPhrase', - since: '8.0', - until: '9.0', - }); - return this.buzzPhrase(); - } - - /** * Generates a random buzz phrase that can be used to demonstrate data being viewed by a manager. * * @example @@ -166,26 +96,6 @@ export class CompanyModule extends ModuleBase { } /** - * Returns a random company bs adjective. - * - * @example - * faker.company.bsAdjective() // 'one-to-one' - * - * @since 2.0.1 - * - * @deprecated Use `faker.company.buzzAdjective` instead. - */ - bsAdjective(): string { - deprecated({ - deprecated: 'faker.company.bsAdjective', - proposed: 'faker.company.buzzAdjective', - since: '8.0', - until: '9.0', - }); - return this.buzzAdjective(); - } - - /** * Returns a random buzz adjective that can be used to demonstrate data being viewed by a manager. * * @example @@ -200,26 +110,6 @@ export class CompanyModule extends ModuleBase { } /** - * Returns a random company bs buzz word. - * - * @example - * faker.company.bsBuzz() // 'empower' - * - * @since 2.0.1 - * - * @deprecated Use `faker.company.buzzVerb` instead. - */ - bsBuzz(): string { - deprecated({ - deprecated: 'faker.company.bsBuzz', - proposed: 'faker.company.buzzVerb', - since: '8.0', - until: '9.0', - }); - return this.buzzVerb(); - } - - /** * Returns a random buzz verb that can be used to demonstrate data being viewed by a manager. * * @example @@ -234,26 +124,6 @@ export class CompanyModule extends ModuleBase { } /** - * Returns a random company bs noun. - * - * @example - * faker.company.bsNoun() // 'paradigms' - * - * @since 2.0.1 - * - * @deprecated Use `faker.company.buzzNoun` instead. - */ - bsNoun(): string { - deprecated({ - deprecated: 'faker.company.bsNoun', - proposed: 'faker.company.buzzNoun', - since: '8.0', - until: '9.0', - }); - return this.buzzNoun(); - } - - /** * Returns a random buzz noun that can be used to demonstrate data being viewed by a manager. * * @example |
