From c597af273afda58dd1ec1716003dcca0b85793db Mon Sep 17 00:00:00 2001 From: Chever John Date: Thu, 21 Aug 2025 11:13:35 +0800 Subject: [PATCH] feat: Adds file saver and nanoid Adds file-saver and nanoid packages for file downloading and unique ID generation functionality. These dependencies are essential for implementing a new feature that allows users to download generated data and ensure uniqueness across the application. The file-saver package provides the necessary tools to save files on the client-side, while nanoid generates unique IDs. --- package.json | 9 +++++---- pnpm-lock.yaml | 10 ++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 438f8b7..861a880 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,10 @@ "cmdk": "^1.1.1", "date-fns": "^4.1.0", "embla-carousel-react": "^8.6.0", + "file-saver": "^2.0.5", "input-otp": "^1.4.2", "lucide-react": "^0.503.0", + "nanoid": "^5.1.5", "next-themes": "^0.4.6", "react": "^18.2.0", "react-day-picker": "8.10.1", @@ -61,17 +63,16 @@ "tailwindcss-animate": "^1.0.7", "tw-animate-css": "^1.2.8", "vaul": "^1.1.2", - "zod": "^3.24.3", - "zustand": "^5.0.6", "xlsx": "^0.18.5", - "file-saver": "^2.0.5" + "zod": "^3.24.3", + "zustand": "^5.0.6" }, "devDependencies": { "@eslint/js": "^9.22.0", + "@types/file-saver": "^2.0.7", "@types/node": "^22.14.1", "@types/react": "^18.2.55", "@types/react-dom": "^18.2.19", - "@types/file-saver": "^2.0.7", "@vitejs/plugin-react": "^4.3.4", "autoprefixer": "^10.4.21", "eslint": "^9.22.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5bb0d25..f4f775f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,6 +122,9 @@ importers: lucide-react: specifier: ^0.503.0 version: 0.503.0(react@18.3.1) + nanoid: + specifier: ^5.1.5 + version: 5.1.5 next-themes: specifier: ^0.4.6 version: 0.4.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -2059,6 +2062,11 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanoid@5.1.5: + resolution: {integrity: sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==} + engines: {node: ^18 || >=20} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -4422,6 +4430,8 @@ snapshots: nanoid@3.3.11: {} + nanoid@5.1.5: {} + natural-compare@1.4.0: {} next-themes@0.4.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1):