From d82343addd428dee0259e63bca460a4b40727675 Mon Sep 17 00:00:00 2001 From: Priyansh Shah Date: Sat, 15 Mar 2025 01:15:29 -0700 Subject: [PATCH 1/4] fix: making it so that people deploying don't face an error --- dashboard/final-example/app/seed/route.ts | 2 +- dashboard/final-example/package.json | 2 +- dashboard/starter-example/app/seed/route.ts | 2 +- dashboard/starter-example/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard/final-example/app/seed/route.ts b/dashboard/final-example/app/seed/route.ts index c6428b27..3c41d8af 100644 --- a/dashboard/final-example/app/seed/route.ts +++ b/dashboard/final-example/app/seed/route.ts @@ -1,4 +1,4 @@ -import bcrypt from 'bcrypt'; +import bcrypt from 'bcryptjs'; import postgres from 'postgres'; import { invoices, customers, revenue, users } from '../lib/placeholder-data'; diff --git a/dashboard/final-example/package.json b/dashboard/final-example/package.json index 3d691784..c7188954 100644 --- a/dashboard/final-example/package.json +++ b/dashboard/final-example/package.json @@ -9,7 +9,7 @@ "@heroicons/react": "^2.2.0", "@tailwindcss/forms": "^0.5.10", "autoprefixer": "10.4.20", - "bcrypt": "^5.1.1", + "bcryptjs": "^5.1.1", "clsx": "^2.1.1", "next": "latest", "next-auth": "5.0.0-beta.25", diff --git a/dashboard/starter-example/app/seed/route.ts b/dashboard/starter-example/app/seed/route.ts index c6428b27..3c41d8af 100644 --- a/dashboard/starter-example/app/seed/route.ts +++ b/dashboard/starter-example/app/seed/route.ts @@ -1,4 +1,4 @@ -import bcrypt from 'bcrypt'; +import bcrypt from 'bcryptjs'; import postgres from 'postgres'; import { invoices, customers, revenue, users } from '../lib/placeholder-data'; diff --git a/dashboard/starter-example/package.json b/dashboard/starter-example/package.json index 3d691784..c7188954 100644 --- a/dashboard/starter-example/package.json +++ b/dashboard/starter-example/package.json @@ -9,7 +9,7 @@ "@heroicons/react": "^2.2.0", "@tailwindcss/forms": "^0.5.10", "autoprefixer": "10.4.20", - "bcrypt": "^5.1.1", + "bcryptjs": "^5.1.1", "clsx": "^2.1.1", "next": "latest", "next-auth": "5.0.0-beta.25", From 1f09e760a30a09ad45542c8e391c48552c9922a9 Mon Sep 17 00:00:00 2001 From: Priyansh Shah Date: Sat, 15 Mar 2025 01:18:09 -0700 Subject: [PATCH 2/4] fix: making auth also use bcryptjs --- dashboard/final-example/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/final-example/auth.ts b/dashboard/final-example/auth.ts index fbb25a90..7dffd4d9 100644 --- a/dashboard/final-example/auth.ts +++ b/dashboard/final-example/auth.ts @@ -1,6 +1,6 @@ import NextAuth from 'next-auth'; import Credentials from 'next-auth/providers/credentials'; -import bcrypt from 'bcrypt'; +import bcrypt from 'bcryptjs'; import postgres from 'postgres'; import { z } from 'zod'; import type { User } from '@/app/lib/definitions'; From 88147ae81a4be83c10959a4a2a0d5e343a9ecd63 Mon Sep 17 00:00:00 2001 From: Priyansh Shah <105874877+Priyansh4444@users.noreply.github.com> Date: Sat, 15 Mar 2025 01:21:55 -0700 Subject: [PATCH 3/4] Update package.json --- dashboard/final-example/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/final-example/package.json b/dashboard/final-example/package.json index c7188954..33fee0a4 100644 --- a/dashboard/final-example/package.json +++ b/dashboard/final-example/package.json @@ -9,7 +9,7 @@ "@heroicons/react": "^2.2.0", "@tailwindcss/forms": "^0.5.10", "autoprefixer": "10.4.20", - "bcryptjs": "^5.1.1", + "bcryptjs": "^3.0.2", "clsx": "^2.1.1", "next": "latest", "next-auth": "5.0.0-beta.25", From 79697cbbe3fad6248f3b44f93414d721f8f86c31 Mon Sep 17 00:00:00 2001 From: Priyansh Shah <105874877+Priyansh4444@users.noreply.github.com> Date: Sat, 15 Mar 2025 01:22:11 -0700 Subject: [PATCH 4/4] Update package.json --- dashboard/starter-example/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/starter-example/package.json b/dashboard/starter-example/package.json index c7188954..33fee0a4 100644 --- a/dashboard/starter-example/package.json +++ b/dashboard/starter-example/package.json @@ -9,7 +9,7 @@ "@heroicons/react": "^2.2.0", "@tailwindcss/forms": "^0.5.10", "autoprefixer": "10.4.20", - "bcryptjs": "^5.1.1", + "bcryptjs": "^3.0.2", "clsx": "^2.1.1", "next": "latest", "next-auth": "5.0.0-beta.25",