From 675cca351e57168d820aa1dda923e8d3f644e548 Mon Sep 17 00:00:00 2001 From: Andrey Myssak Date: Fri, 19 May 2023 14:52:38 +0600 Subject: [PATCH] Bump @faker-js/faker to v8 (#594) Signed-off-by: Andrey Myssak --- package.json | 2 +- src-docs/src/views/datagrid/additional_controls.js | 8 ++++---- src-docs/src/views/datagrid/column_actions.js | 10 +++++----- src-docs/src/views/datagrid/column_cell_actions.js | 10 +++++----- src-docs/src/views/datagrid/column_widths.js | 10 +++++----- src-docs/src/views/datagrid/container.js | 8 ++++---- src-docs/src/views/datagrid/control_columns.js | 10 +++++----- src-docs/src/views/datagrid/datagrid.js | 10 +++++----- src-docs/src/views/datagrid/focus.js | 4 ++-- src-docs/src/views/datagrid/footer_row.js | 2 +- src-docs/src/views/datagrid/in_memory.js | 8 ++++---- .../src/views/datagrid/in_memory_enhancements.js | 8 ++++---- src-docs/src/views/datagrid/in_memory_pagination.js | 8 ++++---- src-docs/src/views/datagrid/in_memory_sorting.js | 8 ++++---- src-docs/src/views/datagrid/schema.js | 10 +++++----- src-docs/src/views/datagrid/styling.js | 10 +++++----- src-docs/src/views/datagrid/virtualization.js | 12 +++++++----- .../src/views/datagrid/virtualization_constrained.js | 12 +++++++----- yarn.lock | 8 ++++---- 19 files changed, 81 insertions(+), 77 deletions(-) diff --git a/package.json b/package.json index 8353fdd27b..92aec68da5 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "vfile": "^4.2.0" }, "devDependencies": { - "@faker-js/faker": "^7.6.0", + "@faker-js/faker": "^8.0.1", "@axe-core/puppeteer": "^4.1.1", "@babel/cli": "^7.10.5", "@babel/core": "^7.11.4", diff --git a/src-docs/src/views/datagrid/additional_controls.js b/src-docs/src/views/datagrid/additional_controls.js index eb91b4a476..9530efab28 100644 --- a/src-docs/src/views/datagrid/additional_controls.js +++ b/src-docs/src/views/datagrid/additional_controls.js @@ -41,16 +41,16 @@ const data = []; for (let i = 1; i < 20; i++) { data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), city: ( - {faker.helpers.fake('{{address.city}}')} + {faker.helpers.fake('{{location.city}}')} ), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/column_actions.js b/src-docs/src/views/datagrid/column_actions.js index faaffe6b5d..b198734e09 100644 --- a/src-docs/src/views/datagrid/column_actions.js +++ b/src-docs/src/views/datagrid/column_actions.js @@ -68,16 +68,16 @@ for (let i = 1; i < 5; i++) { avatar: ( ), name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), - city: faker.helpers.fake('{{address.city}}'), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + city: faker.helpers.fake('{{location.city}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/column_cell_actions.js b/src-docs/src/views/datagrid/column_cell_actions.js index 96ca5553a6..431950bf03 100644 --- a/src-docs/src/views/datagrid/column_cell_actions.js +++ b/src-docs/src/views/datagrid/column_cell_actions.js @@ -115,16 +115,16 @@ for (let i = 1; i < 5; i++) { avatar: ( ), name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), - city: faker.helpers.fake('{{address.city}}'), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + city: faker.helpers.fake('{{location.city}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/column_widths.js b/src-docs/src/views/datagrid/column_widths.js index b7049a5757..1f5c43b2ee 100644 --- a/src-docs/src/views/datagrid/column_widths.js +++ b/src-docs/src/views/datagrid/column_widths.js @@ -45,16 +45,16 @@ for (let i = 1; i < 5; i++) { avatar: ( ), name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), - city: faker.helpers.fake('{{address.city}}'), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + city: faker.helpers.fake('{{location.city}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/container.js b/src-docs/src/views/datagrid/container.js index b55665f8c8..c8c1cfdffe 100644 --- a/src-docs/src/views/datagrid/container.js +++ b/src-docs/src/views/datagrid/container.js @@ -37,16 +37,16 @@ const data = []; for (let i = 1; i < 20; i++) { data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), city: ( - {faker.helpers.fake('{{address.city}}')} + {faker.helpers.fake('{{location.city}}')} ), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/control_columns.js b/src-docs/src/views/datagrid/control_columns.js index 7420823e54..c716d8d228 100644 --- a/src-docs/src/views/datagrid/control_columns.js +++ b/src-docs/src/views/datagrid/control_columns.js @@ -72,16 +72,16 @@ for (let i = 1; i < 500; i++) { avatar: ( ), name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), - city: faker.helpers.fake('{{address.city}}'), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + city: faker.helpers.fake('{{location.city}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/datagrid.js b/src-docs/src/views/datagrid/datagrid.js index 35f717f13a..091490e8b5 100644 --- a/src-docs/src/views/datagrid/datagrid.js +++ b/src-docs/src/views/datagrid/datagrid.js @@ -37,8 +37,8 @@ const raw_data = []; for (let i = 1; i < 100; i++) { const email = faker.helpers.fake('{{internet.email}}'); - const name = faker.helpers.fake('{{name.lastName}}, {{name.firstName}}'); - const suffix = faker.helpers.fake('{{name.suffix}}'); + const name = faker.helpers.fake('{{person.lastName}}, {{person.firstName}}'); + const suffix = faker.helpers.fake('{{person.suffix}}'); raw_data.push({ name: { formatted: `${name} ${suffix}`, @@ -52,14 +52,14 @@ for (let i = 1; i < 100; i++) { }, location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/src-docs/src/views/datagrid/focus.js b/src-docs/src/views/datagrid/focus.js index daba7eb177..d3ce830033 100644 --- a/src-docs/src/views/datagrid/focus.js +++ b/src-docs/src/views/datagrid/focus.js @@ -30,8 +30,8 @@ const data = []; for (let i = 0; i < 10; i++) { data.push([ - {faker.helpers.fake('{{name.firstName}}')}, - {faker.helpers.fake('{{name.firstName}}')}, + {faker.helpers.fake('{{person.firstName}}')}, + {faker.helpers.fake('{{person.firstName}}')}, diff --git a/src-docs/src/views/datagrid/footer_row.js b/src-docs/src/views/datagrid/footer_row.js index 07e9b498f8..72510ed0cd 100644 --- a/src-docs/src/views/datagrid/footer_row.js +++ b/src-docs/src/views/datagrid/footer_row.js @@ -24,7 +24,7 @@ const raw_data = []; for (let i = 1; i < 20; i++) { raw_data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), date: faker.helpers.fake('{{date.past}}'), amount: faker.helpers.fake('${{commerce.price}}'), diff --git a/src-docs/src/views/datagrid/in_memory.js b/src-docs/src/views/datagrid/in_memory.js index 041cfc9d8b..1a4bda0466 100644 --- a/src-docs/src/views/datagrid/in_memory.js +++ b/src-docs/src/views/datagrid/in_memory.js @@ -47,21 +47,21 @@ const raw_data = []; for (let i = 1; i < 100; i++) { raw_data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: ( {faker.helpers.fake('{{internet.email}}')} ), location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/src-docs/src/views/datagrid/in_memory_enhancements.js b/src-docs/src/views/datagrid/in_memory_enhancements.js index 9b47a5dd78..cd92d1ec62 100644 --- a/src-docs/src/views/datagrid/in_memory_enhancements.js +++ b/src-docs/src/views/datagrid/in_memory_enhancements.js @@ -46,21 +46,21 @@ const raw_data = []; for (let i = 1; i < 100; i++) { raw_data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: ( {faker.helpers.fake('{{internet.email}}')} ), location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/src-docs/src/views/datagrid/in_memory_pagination.js b/src-docs/src/views/datagrid/in_memory_pagination.js index 358380ab05..a1363b7689 100644 --- a/src-docs/src/views/datagrid/in_memory_pagination.js +++ b/src-docs/src/views/datagrid/in_memory_pagination.js @@ -46,21 +46,21 @@ const raw_data = []; for (let i = 1; i < 100; i++) { raw_data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: ( {faker.helpers.fake('{{internet.email}}')} ), location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/src-docs/src/views/datagrid/in_memory_sorting.js b/src-docs/src/views/datagrid/in_memory_sorting.js index 31b088260f..1d807b45a9 100644 --- a/src-docs/src/views/datagrid/in_memory_sorting.js +++ b/src-docs/src/views/datagrid/in_memory_sorting.js @@ -46,21 +46,21 @@ const raw_data = []; for (let i = 1; i < 100; i++) { raw_data.push({ name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: ( {faker.helpers.fake('{{internet.email}}')} ), location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/src-docs/src/views/datagrid/schema.js b/src-docs/src/views/datagrid/schema.js index 0e2379f4cb..ce0e12156e 100644 --- a/src-docs/src/views/datagrid/schema.js +++ b/src-docs/src/views/datagrid/schema.js @@ -56,10 +56,10 @@ for (let i = 1; i < 5; i++) { json = JSON.stringify([ { default: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), boolean: faker.helpers.fake('{{datatype.boolean}}'), - numeric: faker.helpers.fake('{{finance.account}}'), + numeric: faker.helpers.fake('{{finance.accountNumber}}'), currency: faker.helpers.fake('${{finance.amount}}'), date: faker.helpers.fake('{{date.past}}'), custom: faker.helpers.fake('{{date.past}}'), @@ -70,7 +70,7 @@ for (let i = 1; i < 5; i++) { json = JSON.stringify([ { name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), }, ]); @@ -78,10 +78,10 @@ for (let i = 1; i < 5; i++) { storeData.push({ default: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), boolean: faker.helpers.fake('{{datatype.boolean}}'), - numeric: faker.helpers.fake('{{finance.account}}'), + numeric: faker.helpers.fake('{{finance.accountNumber}}'), currency: faker.helpers.fake('${{finance.amount}}'), datetime: faker.helpers.fake('{{date.past}}'), json: json, diff --git a/src-docs/src/views/datagrid/styling.js b/src-docs/src/views/datagrid/styling.js index 4e7390dd99..a8d0a834c8 100644 --- a/src-docs/src/views/datagrid/styling.js +++ b/src-docs/src/views/datagrid/styling.js @@ -54,16 +54,16 @@ for (let i = 1; i < 6; i++) { avatar: ( ), name: faker.helpers.fake( - '{{name.lastName}}, {{name.firstName}} {{name.suffix}}' + '{{person.lastName}}, {{person.firstName}} {{person.suffix}}' ), email: faker.helpers.fake('{{internet.email}}'), - city: faker.helpers.fake('{{address.city}}'), - country: faker.helpers.fake('{{address.country}}'), - account: faker.helpers.fake('{{finance.account}}'), + city: faker.helpers.fake('{{location.city}}'), + country: faker.helpers.fake('{{location.country}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), }); } diff --git a/src-docs/src/views/datagrid/virtualization.js b/src-docs/src/views/datagrid/virtualization.js index 004316c6b1..8e36a535e1 100644 --- a/src-docs/src/views/datagrid/virtualization.js +++ b/src-docs/src/views/datagrid/virtualization.js @@ -78,21 +78,23 @@ function RenderCellValue({ rowIndex, columnId }) { if (data[rowIndex] == null) { const email = faker.helpers.fake('{{internet.email}}'); - const name = faker.helpers.fake('{{name.lastName}}, {{name.firstName}}'); - const suffix = faker.helpers.fake('{{name.suffix}}'); + const name = faker.helpers.fake( + '{{person.lastName}}, {{person.firstName}}' + ); + const suffix = faker.helpers.fake('{{person.suffix}}'); data[rowIndex] = { name: `${name} ${suffix}`, email: {email}, location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/src-docs/src/views/datagrid/virtualization_constrained.js b/src-docs/src/views/datagrid/virtualization_constrained.js index e26f90613b..a9074e65d2 100644 --- a/src-docs/src/views/datagrid/virtualization_constrained.js +++ b/src-docs/src/views/datagrid/virtualization_constrained.js @@ -76,21 +76,23 @@ function RenderCellValue({ rowIndex, columnId }) { if (data[rowIndex] == null) { const email = faker.helpers.fake('{{internet.email}}'); - const name = faker.helpers.fake('{{name.lastName}}, {{name.firstName}}'); - const suffix = faker.helpers.fake('{{name.suffix}}'); + const name = faker.helpers.fake( + '{{person.lastName}}, {{person.firstName}}' + ); + const suffix = faker.helpers.fake('{{person.suffix}}'); data[rowIndex] = { name: `${name} ${suffix}`, email: {email}, location: ( - {`${faker.helpers.fake('{{address.city}}')}, `} + {`${faker.helpers.fake('{{location.city}}')}, `} - {faker.helpers.fake('{{address.country}}')} + {faker.helpers.fake('{{location.country}}')} ), date: faker.helpers.fake('{{date.past}}'), - account: faker.helpers.fake('{{finance.account}}'), + account: faker.helpers.fake('{{finance.accountNumber}}'), amount: faker.helpers.fake('${{commerce.price}}'), phone: faker.helpers.fake('{{phone.number}}'), version: faker.helpers.fake('{{system.semver}}'), diff --git a/yarn.lock b/yarn.lock index f5d243b09c..56625e5d3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1325,10 +1325,10 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@faker-js/faker@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-7.6.0.tgz#9ea331766084288634a9247fcd8b84f16ff4ba07" - integrity sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw== +"@faker-js/faker@^8.0.1": + version "8.0.1" + resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-8.0.1.tgz#2157068931aaab555eda5ff87f50330aeeb6153a" + integrity sha512-kbh5MenpTN9U0B4QcOI1NoTPlZHniSYQ3BHbhAnPjJGAmmFqxoxTE4sGdpy7ZOO9038DPGCuhXyMkjOr05uVwA== "@fisker/parse-srcset@1.0.2": version "1.0.2"