Skip to content

Commit 056678a

Browse files
committed
update libraries
1 parent e5bb40d commit 056678a

File tree

5 files changed

+904
-1237
lines changed

5 files changed

+904
-1237
lines changed

app/profile/[login]/components/fetch-user-button.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ import { useParams } from 'next/navigation';
44
import { FC } from 'react';
55

66
import { Button } from '@/components/ui/button';
7+
import { cn } from '@/lib/utils';
78

89
type FetchUserButtonProps = {
910
label?: string;
11+
className?: string;
1012
};
1113

12-
export const FetchUserButton: FC<FetchUserButtonProps> = ({ label = 'Fetch user from GitHub' }) => {
14+
export const FetchUserButton: FC<FetchUserButtonProps> = ({ label = 'Fetch user from GitHub', className }) => {
15+
// const { data: session } = useSession();
1316
const params = useParams<{ login: string }>();
1417

1518
const fetchUser = async () => {
@@ -22,5 +25,9 @@ export const FetchUserButton: FC<FetchUserButtonProps> = ({ label = 'Fetch user
2225
return res.json();
2326
};
2427

25-
return <Button onClick={fetchUser}>{label}</Button>;
28+
return (
29+
<Button onClick={fetchUser} className={cn(className)}>
30+
{label}
31+
</Button>
32+
);
2633
};

lib/graphql/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'server-only';
1+
'use server';
22
import { signedFetch } from '../signed-fetch';
33

44
export async function request(

lib/signed-fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'server-only';
1+
'use server';
22
import jwt from 'jsonwebtoken';
33

44
export async function signedFetch(path: string, init: RequestInit = {}) {

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,60 +14,60 @@
1414
"figma:icons": "tsc lib/figma/download-icons.ts --outDir dist && dotenv -e .env.local node dist/download-icons.js && pnpm run icons"
1515
},
1616
"dependencies": {
17-
"@auth/mongodb-adapter": "^3.8.0",
17+
"@auth/mongodb-adapter": "^3.9.1",
1818
"@hookform/resolvers": "^5.0.1",
19-
"@radix-ui/react-aspect-ratio": "^1.1.4",
20-
"@radix-ui/react-avatar": "^1.1.7",
19+
"@radix-ui/react-aspect-ratio": "^1.1.7",
20+
"@radix-ui/react-avatar": "^1.1.10",
2121
"@radix-ui/react-dropdown-menu": "^2.1.15",
22-
"@radix-ui/react-label": "^2.1.4",
23-
"@radix-ui/react-navigation-menu": "^1.2.12",
22+
"@radix-ui/react-label": "^2.1.7",
23+
"@radix-ui/react-navigation-menu": "^1.2.13",
2424
"@radix-ui/react-popover": "^1.1.14",
25-
"@radix-ui/react-radio-group": "^1.3.4",
26-
"@radix-ui/react-select": "^2.2.2",
27-
"@radix-ui/react-separator": "^1.1.4",
28-
"@radix-ui/react-slot": "^1.2.0",
29-
"@radix-ui/react-tooltip": "^1.2.4",
25+
"@radix-ui/react-radio-group": "^1.3.7",
26+
"@radix-ui/react-select": "^2.2.5",
27+
"@radix-ui/react-separator": "^1.1.7",
28+
"@radix-ui/react-slot": "^1.2.3",
29+
"@radix-ui/react-tooltip": "^1.2.7",
3030
"class-variance-authority": "^0.7.1",
3131
"clsx": "^2.1.1",
3232
"date-fns": "^4.1.0",
3333
"jsonwebtoken": "^9.0.2",
34-
"lucide-react": "^0.494.0",
35-
"mongodb": "^6.15.0",
36-
"next": "15.3.1",
37-
"next-auth": "5.0.0-beta.25",
34+
"lucide-react": "^0.511.0",
35+
"mongodb": "^6.16.0",
36+
"next": "15.4.0-canary.51",
37+
"next-auth": "5.0.0-beta.28",
3838
"next-themes": "^0.4.6",
3939
"nuqs": "^2.4.3",
40-
"posthog-js": "^1.236.2",
41-
"posthog-node": "^4.12.0",
40+
"posthog-js": "^1.246.0",
41+
"posthog-node": "^4.17.2",
4242
"react": "^19.1.0",
4343
"react-dom": "^19.1.0",
44-
"react-hook-form": "^7.56.1",
44+
"react-hook-form": "^7.56.4",
4545
"react-icons": "^5.5.0",
4646
"react-spinners": "^0.17.0",
47-
"satori": "^0.12.2",
47+
"satori": "^0.13.1",
4848
"sonner": "^2.0.3",
49-
"tailwind-merge": "^3.2.0",
49+
"tailwind-merge": "^3.3.0",
5050
"tailwindcss-animate": "^1.0.7",
51-
"zod": "^3.24.3"
51+
"zod": "^3.25.28"
5252
},
5353
"devDependencies": {
5454
"@eslint/eslintrc": "^3.3.1",
5555
"@graphql-codegen/cli": "^5.0.5",
5656
"@graphql-codegen/typed-document-node": "^5.1.1",
5757
"@svgr/cli": "^8.1.0",
58-
"@tailwindcss/postcss": "^4.1.4",
58+
"@tailwindcss/postcss": "^4.1.7",
5959
"@types/jsonwebtoken": "^9.0.9",
60-
"@types/node": "^22.14.1",
61-
"@types/react": "^19.1.2",
62-
"@types/react-dom": "^19.1.2",
60+
"@types/node": "^22.15.21",
61+
"@types/react": "^19.1.5",
62+
"@types/react-dom": "^19.1.5",
6363
"dotenv-cli": "^8.0.0",
64-
"eslint": "^9.24.0",
65-
"eslint-config-next": "15.3.1",
64+
"eslint": "^9.27.0",
65+
"eslint-config-next": "15.4.0-canary.51",
6666
"eslint-plugin-import": "^2.31.0",
6767
"eslint-plugin-react-hooks": "^5.2.0",
68-
"graphql": "^16.10.0",
68+
"graphql": "^16.11.0",
6969
"postcss": "^8.5.3",
70-
"tailwindcss": "^4.1.4",
70+
"tailwindcss": "^4.1.7",
7171
"typescript": "^5.8.3"
7272
}
7373
}

0 commit comments

Comments
 (0)