Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Oct 17, 2024
1 parent 3810442 commit 5fe411f
Show file tree
Hide file tree
Showing 4 changed files with 1,085 additions and 1,164 deletions.
12 changes: 6 additions & 6 deletions app/(main)/courses/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ const getCourseDetail = cache(async (id: string) => {
return response.course_by_pk;
});

export async function generateMetadata({
params,
}: {
params: { id: string };
export async function generateMetadata(props: {
params: Promise<{ id: string }>;
}): Promise<Metadata> {
const params = await props.params;
const id = params.id;

const course = await getCourseDetail(id);
Expand All @@ -47,8 +46,9 @@ export async function generateMetadata({
}

const CourseDetail: React.FC<{
params: { id: string };
}> = async ({ params }) => {
params: Promise<{ id: string }>;
}> = async (props) => {
const params = await props.params;
const id = params.id;

const course = await getCourseDetail(id);
Expand Down
12 changes: 6 additions & 6 deletions app/(main)/courses/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import { getSemesterTextFromId } from "lib/format";
import { graphql } from "gql";
import { GetCoursesQuery } from "gql/graphql";

export async function generateMetadata({
searchParams,
}: {
searchParams: { [key: string]: string | string[] | undefined };
export async function generateMetadata(props: {
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}): Promise<Metadata> {
const searchParams = await props.searchParams;
const query = (searchParams.q ?? "") as string;
const semesterId = (searchParams.s ??
process.env.CURRENT_SEMESTER_ID!) as string;
Expand All @@ -26,8 +25,9 @@ export async function generateMetadata({
}

const CourseX: React.FC<{
searchParams: { [key: string]: string | string[] | undefined };
}> = async ({ searchParams }) => {
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}> = async (props) => {
const searchParams = await props.searchParams;
const query = searchParams.q ?? "";
const semesterId = (searchParams.s ??
process.env.CURRENT_SEMESTER_ID!) as string;
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
{
"name": "thursday",
"private": true,
"packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c",
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228",
"scripts": {
"codegen": "graphql-codegen --config codegen.ts",
"dev": "next dev",
"dev": "next dev --turbo",
"prettier": "prettier --write .",
"lint": "next lint",
"typecheck": "tsc --noUnusedLocals",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/client-preset": "4.3.3",
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/client-preset": "4.4.0",
"@graphql-typed-document-node/core": "3.2.0",
"@primer/css": "21.3.6",
"@primer/css": "21.4.0",
"@tailwindcss/typography": "0.5.15",
"@types/jsonwebtoken": "9.0.7",
"@types/node": "22.5.5",
"@types/react": "18.3.7",
"@types/react-dom": "18.3.0",
"@types/node": "22.7.6",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.1",
"autoprefixer": "10.4.20",
"babel-plugin-react-compiler": "0.0.0-experimental-7449567-20240904",
"daisyui": "4.12.10",
"babel-plugin-react-compiler": "0.0.0-experimental-fa06e2c-20241016",
"daisyui": "4.12.13",
"dotenv": "16.4.5",
"encoding": "0.1.13",
"eslint": "8.57.1",
"eslint-config-next": "15.0.0-canary.157",
"eslint": "9.12.0",
"eslint-config-next": "15.0.0-canary.196",
"expo-server-sdk": "3.11.0",
"graphql": "16.9.0",
"graphql-request": "7.1.0",
"hast-util-sanitize": "5.0.1",
"jsonwebtoken": "9.0.2",
"next": "15.0.0-canary.157",
"next": "15.0.0-canary.196",
"postcss": "8.4.47",
"prettier": "3.3.3",
"react": "19.0.0-rc-f2df5694-20240916",
"react-dom": "19.0.0-rc-f2df5694-20240916",
"react": "19.0.0-rc-77b637d6-20241016",
"react-dom": "19.0.0-rc-77b637d6-20241016",
"rehype-external-links": "3.0.0",
"rehype-raw": "7.0.0",
"rehype-sanitize": "6.0.0",
"rehype-slug": "6.0.0",
"rehype-stringify": "10.0.0",
"rehype-stringify": "10.0.1",
"remark-parse": "11.0.0",
"remark-rehype": "11.1.0",
"remark-rehype": "11.1.1",
"sharp": "0.33.5",
"tailwindcss": "3.4.11",
"typescript": "5.6.2",
"tailwindcss": "3.4.14",
"typescript": "5.6.3",
"unified": "11.0.5"
}
}
Loading

0 comments on commit 5fe411f

Please sign in to comment.