Skip to content

Commit

Permalink
fix(www): update faker version, reduce int() deprecation (shadcn-ui#1832
Browse files Browse the repository at this point in the history
)

* fix: update faker version, reduce int() deprecation

* chore: pnpm format:write

---------

Co-authored-by: shadcn <[email protected]>
  • Loading branch information
yahorbarkouski and shadcn authored Nov 12, 2023
1 parent ee89ef1 commit d545e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/examples/tasks/data/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d545e32

Please sign in to comment.