From 03ac47198313126c3cc8cb3fb9ef184360bb79eb Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 7 Apr 2024 18:01:22 +0200 Subject: [PATCH] refactor(locale)!: remove deprecated locale aliases (#2787) --- docs/guide/upgrading_v9/2787.md | 9 +++++++++ src/locale/cz.ts | 12 ------------ src/locale/en_IND.ts | 12 ------------ src/locale/ge.ts | 12 ------------ 4 files changed, 9 insertions(+), 36 deletions(-) create mode 100644 docs/guide/upgrading_v9/2787.md delete mode 100644 src/locale/cz.ts delete mode 100644 src/locale/en_IND.ts delete mode 100644 src/locale/ge.ts diff --git a/docs/guide/upgrading_v9/2787.md b/docs/guide/upgrading_v9/2787.md new file mode 100644 index 00000000000..8aae7596521 --- /dev/null +++ b/docs/guide/upgrading_v9/2787.md @@ -0,0 +1,9 @@ +### Remove deprecated locale aliases + +Remove deprecated locale aliases + +| old | replacement | +| ------------------------------------------------------- | ------------------------------------------------------ | +| `import { faker } from '@faker-js/faker/locale/cz'` | `import { faker } from '@faker-js/faker/locale/cs_CZ'` | +| `import { faker } from '@faker-js/faker/locale/en_IND'` | `import { faker } from '@faker-js/faker/locale/en_IN'` | +| `import { faker } from '@faker-js/faker/locale/ge'` | `import { faker } from '@faker-js/faker/locale/ka_GE'` | diff --git a/src/locale/cz.ts b/src/locale/cz.ts deleted file mode 100644 index f7227d82d5b..00000000000 --- a/src/locale/cz.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { deprecated } from '../internal/deprecated'; -import { faker as cs_CZ } from './cs_CZ'; - -export const faker = (() => { - deprecated({ - deprecated: "import { faker } from '@faker-js/faker/locale/cz'", - proposed: "import { faker } from '@faker-js/faker/locale/cs_CZ'", - since: '8.0', - until: '9.0', - }); - return cs_CZ; -})(); diff --git a/src/locale/en_IND.ts b/src/locale/en_IND.ts deleted file mode 100644 index 45d8519fedf..00000000000 --- a/src/locale/en_IND.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { deprecated } from '../internal/deprecated'; -import { faker as en_IN } from './en_IN'; - -export const faker = (() => { - deprecated({ - deprecated: "import { faker } from '@faker-js/faker/locale/en_IND'", - proposed: "import { faker } from '@faker-js/faker/locale/en_IN'", - since: '8.0', - until: '9.0', - }); - return en_IN; -})(); diff --git a/src/locale/ge.ts b/src/locale/ge.ts deleted file mode 100644 index ea512b7128e..00000000000 --- a/src/locale/ge.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { deprecated } from '../internal/deprecated'; -import { faker as ka_GE } from './ka_GE'; - -export const faker = (() => { - deprecated({ - deprecated: "import { faker } from '@faker-js/faker/locale/ge'", - proposed: "import { faker } from '@faker-js/faker/locale/ka_GE'", - since: '8.0', - until: '9.0', - }); - return ka_GE; -})();