Skip to content

Commit

Permalink
Bump to latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
venables committed Apr 1, 2024
1 parent fc2018a commit d0be441
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 53 deletions.
40 changes: 32 additions & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
const { resolve } = require("node:path")

const project = resolve(process.cwd(), "tsconfig.json")

/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
Expand All @@ -10,12 +14,30 @@ module.exports = {
"next/core-web-vitals",
"plugin:tailwindcss/recommended"
],
// parser: "@typescript-eslint/parser",
// plugins: ["@typescript-eslint"],
env: {
node: true,
browser: true
},
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: true
},
settings: {
"import/resolver": {
typescript: {
project
}
},
tailwindcss: {
callees: ["className", "clsx", "cls", "cva", "cn"]
}
},
ignorePatterns: [
// Ignore dotfiles
".*.js",
"node_modules/",
"dist/"
],
overrides: [
/**
* Config files (ex: jest.config.js, prettier.config.js, tailwind.config.js)
Expand Down Expand Up @@ -80,11 +102,6 @@ module.exports = {
}
}
],
settings: {
tailwindcss: {
callees: ["className", "clsx", "cls", "cva", "cn"]
}
},
rules: {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": [
Expand All @@ -109,6 +126,13 @@ module.exports = {
varsIgnorePattern: "^_"
}
],
"@typescript-eslint/restrict-template-expressions": [
"warn",
{
allowBoolean: true,
allowNumber: true
}
],
"import/order": [
"error",
{
Expand Down
5 changes: 2 additions & 3 deletions app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export default async function AuthLayout({ children }: Props) {
await getData()

return (
<>
<ThemePickerProvider>
<div className="flex min-h-screen flex-col">
<main className="flex flex-1 flex-col">{children}</main>
</div>
<ThemePickerProvider />
</>
</ThemePickerProvider>
)
}
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion components/ui/alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AlertDialogContent = React.forwardRef<
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
className={cn(
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
"fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
className
)}
ref={ref}
Expand Down
4 changes: 2 additions & 2 deletions components/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const DropdownMenuSubContent = React.forwardRef<
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.SubContent
className={cn(
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className
)}
ref={ref}
Expand All @@ -63,7 +63,7 @@ const DropdownMenuContent = React.forwardRef<
<DropdownMenuPrimitive.Portal>
<DropdownMenuPrimitive.Content
className={cn(
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className
)}
ref={ref}
Expand Down
6 changes: 0 additions & 6 deletions lib/db/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import { drizzle } from "drizzle-orm/neon-http"

import { env } from "@/env"

/**
* Opt-in to experimental connection caching
* @see {@link https://neon.tech/docs/serverless/serverless-driver#use-experimental-caching}
*/
neonConfig.fetchConnectionCache = true

export const client = neon(env.DATABASE_URL) satisfies NeonQueryFunction<
boolean,
boolean
Expand Down
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"db:migrate": "npx tsx ./bin/migrate.ts",
"dev": "next dev",
"dev:email": "email preview ./emails",
"format": "prettier --write . --ignore-path .gitignore",
"format:check": "prettier --check . --ignore-path .gitignore",
"format": "prettier --write . \"!drizzle/**/*.json\" --ignore-path .gitignore",
"format:check": "prettier --check . \"!drizzle/**/*.json\" --ignore-path .gitignore",
"postinstall": "patch-package",
"lint": "next lint",
"outdated": "npx npm-check-updates --interactive --format group",
Expand All @@ -23,11 +23,11 @@
"type-check": "tsc --noEmit --pretty"
},
"dependencies": {
"@auth/core": "^0.27.0",
"@auth/drizzle-adapter": "0.7.0",
"@auth/core": "^0.28.2",
"@auth/drizzle-adapter": "0.8.2",
"@hookform/resolvers": "^3.3.4",
"@neondatabase/serverless": "^0.8.1",
"@next/mdx": "^14.1.0",
"@neondatabase/serverless": "^0.9.0",
"@next/mdx": "^14.1.4",
"@paralleldrive/cuid2": "^2.2.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
Expand All @@ -39,51 +39,51 @@
"@t3-oss/env-nextjs": "^0.9.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"drizzle-orm": "^0.29.4",
"geist": "^1.2.2",
"jsx-email": "^1.10.11",
"lucide-react": "^0.338.0",
"next": "^14.1.0",
"next-auth": "5.0.0-beta.13",
"next-themes": "^0.2.1",
"drizzle-orm": "^0.30.6",
"geist": "^1.3.0",
"jsx-email": "^1.10.12",
"lucide-react": "^0.363.0",
"next": "^14.1.4",
"next-auth": "5.0.0-beta.16",
"next-themes": "^0.3.0",
"nextjs-google-analytics": "^2.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.50.1",
"sonner": "^1.4.1",
"tailwind-merge": "^2.2.1",
"typed-route-handler": "^0.1.1",
"react-hook-form": "^7.51.2",
"sonner": "^1.4.41",
"tailwind-merge": "^2.2.2",
"typed-route-handler": "^0.2.4",
"zod": "^3.22.4"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@tailwindcss/typography": "^0.5.12",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/react": "^14.2.2",
"@types/jest": "^29.5.12",
"@types/mdx": "^2.0.11",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/react-dom": "^18.2.19",
"@vercel/style-guide": "^5.2.0",
"autoprefixer": "^10.4.17",
"@types/mdx": "^2.0.12",
"@types/node": "^20.12.2",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.23",
"@vercel/style-guide": "^6.0.0",
"autoprefixer": "^10.4.19",
"concurrently": "^8.2.2",
"drizzle-kit": "^0.20.14",
"eslint": "^8.57.0",
"eslint-config-next": "^14.1.0",
"eslint-config-next": "^14.1.4",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-tailwindcss": "^3.14.3",
"eslint-plugin-tailwindcss": "^3.15.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"next-secure-headers": "^2.2.0",
"oxlint": "^0.2.10",
"oxlint": "^0.2.15",
"patch-package": "^8.0.0",
"pg": "^8.11.3",
"postcss": "^8.4.35",
"postgres": "^3.4.3",
"pg": "^8.11.4",
"postcss": "^8.4.38",
"postgres": "^3.4.4",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.1",
"tailwindcss": "^3.4.3",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.3.3"
"typescript": "^5.4.3"
}
}

0 comments on commit d0be441

Please sign in to comment.