diff options
| author | Shinigami <[email protected]> | 2024-03-06 17:50:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-06 16:50:00 +0000 |
| commit | b3afc8f351003cf9df9984fb5be6cd46e18f71d8 (patch) | |
| tree | 52554570e9738e311f11e3b64ecfb3b832452e3c /src/modules/git/index.ts | |
| parent | 2716865a0441b8502c8d0ee3efbdbe1bcebe0101 (diff) | |
| download | faker-b3afc8f351003cf9df9984fb5be6cd46e18f71d8.tar.xz faker-b3afc8f351003cf9df9984fb5be6cd46e18f71d8.zip | |
refactor(git)!: remove v8 deprecated git method (#2716)
Diffstat (limited to 'src/modules/git/index.ts')
| -rw-r--r-- | src/modules/git/index.ts | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/modules/git/index.ts b/src/modules/git/index.ts index 0c50b614..8f33f0c5 100644 --- a/src/modules/git/index.ts +++ b/src/modules/git/index.ts @@ -1,4 +1,3 @@ -import { deprecated } from '../../internal/deprecated'; import { ModuleBase } from '../../internal/module-base'; const nbsp = '\u00A0'; @@ -196,6 +195,8 @@ export class GitModule extends ModuleBase { * * @example * faker.git.commitSha() // '2c6e3880fd94ddb7ef72d34e683cdc0c47bec6e6' + * faker.git.commitSha({ length: 7 }) // 'dbee57b' + * faker.git.commitSha({ length: 8 }) // '0e52376a' * * @since 5.0.0 */ @@ -216,24 +217,4 @@ export class GitModule extends ModuleBase { prefix: '', }); } - - /** - * Generates a random commit sha (short). - * - * @example - * faker.git.shortSha() // '6155732' - * - * @since 5.0.0 - * - * @deprecated Use `faker.git.commitSha({ length: 7 })` instead. - */ - shortSha(): string { - deprecated({ - deprecated: 'faker.git.shortSha()', - proposed: 'faker.git.commitSha({ length: 7 })', - since: '8.0', - until: '9.0', - }); - return this.commitSha({ length: 7 }); - } } |
