From d545e3276ef1ec0cb3faeacc5f033fb532ce8780 Mon Sep 17 00:00:00 2001 From: Yahor Barkouski <94449298+yahorbarkouski@users.noreply.github.com> Date: Sun, 12 Nov 2023 21:12:58 +0300 Subject: [PATCH] fix(www): update faker version, reduce int() deprecation (#1832) * fix: update faker version, reduce int() deprecation * chore: pnpm format:write --------- Co-authored-by: shadcn --- app/examples/tasks/data/seed.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/examples/tasks/data/seed.ts b/app/examples/tasks/data/seed.ts index 15e9a8770d0..f77630856ed 100755 --- a/app/examples/tasks/data/seed.ts +++ b/app/examples/tasks/data/seed.ts @@ -5,7 +5,7 @@ import { faker } from "@faker-js/faker" import { labels, priorities, statuses } from "./data" const tasks = Array.from({ length: 100 }, () => ({ - id: `TASK-${faker.datatype.number({ min: 1000, max: 9999 })}`, + id: `TASK-${faker.number.int({ min: 1000, max: 9999 })}`, title: faker.hacker.phrase().replace(/^./, (letter) => letter.toUpperCase()), status: faker.helpers.arrayElement(statuses).value, label: faker.helpers.arrayElement(labels).value, diff --git a/package.json b/package.json index eda4f1660c5..57d416fe4d8 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache" }, "dependencies": { - "@faker-js/faker": "^7.6.0", + "@faker-js/faker": "^8.2.0", "@hookform/resolvers": "^3.1.0", "@radix-ui/react-accessible-icon": "^1.0.3", "@radix-ui/react-accordion": "^1.1.2",