Skip to content

Commit 3829633

Browse files
authored
Upgrade packages in next-learn/dashboard (#1061)
* chore: Bump packages in starter-example * chore: Bump packages in final-example * chore: allow bcrypt to build * chore: prettier fixes
1 parent 4dfc687 commit 3829633

File tree

5 files changed

+529
-486
lines changed

5 files changed

+529
-486
lines changed

dashboard/final-example/app/query/route.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import postgres from 'postgres';
33
const sql = postgres(process.env.POSTGRES_URL!, { ssl: 'require' });
44

55
async function listInvoices() {
6-
const data = await sql`
6+
const data = await sql`
77
SELECT invoices.amount, customers.name
88
FROM invoices
99
JOIN customers ON invoices.customer_id = customers.id
1010
WHERE invoices.amount = 666;
1111
`;
1212

13-
return data;
13+
return data;
1414
}
1515

1616
export async function GET() {
@@ -19,8 +19,8 @@ export async function GET() {
1919
// 'Uncomment this file and remove this line. You can delete this file when you are finished.',
2020
// });
2121
try {
22-
return Response.json(await listInvoices());
22+
return Response.json(await listInvoices());
2323
} catch (error) {
24-
return Response.json({ error }, { status: 500 });
24+
return Response.json({ error }, { status: 500 });
2525
}
2626
}

dashboard/final-example/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@
1414
"next": "latest",
1515
"next-auth": "5.0.0-beta.25",
1616
"postcss": "8.5.1",
17-
"postgres": "^3.4.5",
17+
"postgres": "^3.4.6",
1818
"react": "latest",
1919
"react-dom": "latest",
2020
"tailwindcss": "3.4.17",
2121
"typescript": "5.7.3",
2222
"use-debounce": "^10.0.4",
23-
"zod": "^3.24.1"
23+
"zod": "^3.25.17"
2424
},
2525
"devDependencies": {
2626
"@types/bcrypt": "^5.0.2",
2727
"@types/node": "22.10.7",
2828
"@types/react": "19.0.7",
2929
"@types/react-dom": "19.0.3"
30+
},
31+
"pnpm": {
32+
"onlyBuiltDependencies": [
33+
"bcrypt"
34+
]
3035
}
3136
}

0 commit comments

Comments
 (0)