Skip to content

Commit

Permalink
Update dependencies and fix TS errors. (vercel#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob authored Jun 7, 2023
1 parent 7de01c4 commit fecc60e
Show file tree
Hide file tree
Showing 10 changed files with 281 additions and 290 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"typescript.tsdk": "node_modules/.pnpm/[email protected]/node_modules/typescript/lib",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
Expand Down
1 change: 0 additions & 1 deletion app/[page]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<Suspense>{children}</Suspense>
</div>
</div>
{/* @ts-expect-error Server Component */}
<Footer />
</Suspense>
);
Expand Down
1 change: 0 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default async function RootLayout({ children }: { children: ReactNode })
return (
<html lang="en" className={inter.variable}>
<body className="bg-white text-black selection:bg-teal-300 dark:bg-black dark:text-white dark:selection:bg-fuchsia-600 dark:selection:text-white">
{/* @ts-expect-error Server Component */}
<Navbar />
<Suspense>
<main>{children}</main>
Expand Down
3 changes: 0 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ export const metadata = {
export default async function HomePage() {
return (
<>
{/* @ts-expect-error Server Component */}
<ThreeItemGrid />
<Suspense>
{/* @ts-expect-error Server Component */}
<Carousel />
<Suspense>
{/* @ts-expect-error Server Component */}
<Footer />
</Suspense>
</Suspense>
Expand Down
3 changes: 0 additions & 3 deletions app/product/[handle]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default async function ProductPage({ params }: { params: { handle: string
</div>

<div className="p-6 lg:col-span-2">
{/* @ts-expect-error Server Component */}
<VariantSelector options={product.options} variants={product.variants} />

{product.descriptionHtml ? (
Expand All @@ -108,10 +107,8 @@ export default async function ProductPage({ params }: { params: { handle: string
</div>
</div>
<Suspense>
{/* @ts-expect-error Server Component */}
<RelatedProducts id={product.id} />
<Suspense>
{/* @ts-expect-error Server Component */}
<Footer />
</Suspense>
</Suspense>
Expand Down
1 change: 0 additions & 1 deletion app/search/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default function SearchLayout({ children }: { children: React.ReactNode }
<FilterList list={sorting} title="Sort by" />
</div>
</div>
{/* @ts-expect-error Server Component */}
<Footer />
</Suspense>
);
Expand Down
1 change: 0 additions & 1 deletion components/layout/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default async function Navbar() {

<div className="flex w-1/3 justify-end">
<Suspense fallback={<CartIcon className="h-6" />}>
{/* @ts-expect-error Server Component */}
<Cart />
</Suspense>
</div>
Expand Down
1 change: 0 additions & 1 deletion components/layout/search/collections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export default function Collections() {
</div>
}
>
{/* @ts-expect-error Server Component */}
<CollectionList />
</Suspense>
);
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@
"*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@headlessui/react": "^1.7.14",
"@vercel/og": "^0.5.4",
"@headlessui/react": "^1.7.15",
"@vercel/og": "^0.5.6",
"clsx": "^1.2.1",
"framer-motion": "^10.12.8",
"framer-motion": "^10.12.16",
"is-empty-iterable": "^3.0.0",
"next": "13.4.1",
"next": "13.4.4",
"react": "18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "18.2.0"
},
"devDependencies": {
"@playwright/test": "^1.33.0",
"@playwright/test": "^1.34.3",
"@tailwindcss/typography": "^0.5.9",
"@types/node": "20.1.0",
"@types/react": "18.2.6",
"@types/node": "20.2.5",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.4",
"@vercel/git-hooks": "^1.0.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.40.0",
"eslint-config-next": "^13.4.1",
"eslint": "^8.42.0",
"eslint-config-next": "^13.4.4",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-unicorn": "^47.0.0",
"lint-staged": "^13.2.2",
"postcss": "^8.4.23",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"tailwindcss": "^3.3.2",
"typescript": "5.0.4"
"typescript": "5.1.3"
}
}
Loading

0 comments on commit fecc60e

Please sign in to comment.