Update to Next 15 (and other dependencies)

This commit is contained in:
Andy Chan (12beesinatrenchcoat) 2025-01-08 18:11:59 -05:00
parent 259fa9546d
commit ff0b026688
3 changed files with 7013 additions and 5939 deletions

12870
compass/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,41 +1,41 @@
{ {
"name": "compass", "name": "compass",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev --turbopack",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"prettier": "npx prettier --write \"**/*.{js,jsx,ts,tsx,json,css,scss,md}\"" "prettier": "npx prettier --write \"**/*.{js,jsx,ts,tsx,json,css,scss,md}\""
}, },
"dependencies": { "dependencies": {
"@heroicons/react": "^2.2.0", "@heroicons/react": "^2.2.0",
"@supabase/ssr": "^0.5.2", "@supabase/ssr": "^0.5.2",
"@supabase/supabase-js": "^2.42.3", "@supabase/supabase-js": "^2.42.3",
"@tanstack/match-sorter-utils": "^8.15.1", "@tanstack/match-sorter-utils": "^8.15.1",
"@tanstack/react-table": "^8.15.0", "@tanstack/react-table": "^8.15.0",
"bufferutil": "^4.0.8", "bufferutil": "^4.0.8",
"next": "14.2.18", "next": "15.1.4",
"react": "18.3.1", "react": "19.0.0",
"react-dom": "18.3.1", "react-dom": "19.0.0",
"utf-8-validate": "^6.0.3", "utf-8-validate": "^6.0.3",
"ws": "^8.16.0" "ws": "^8.16.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20", "@types/node": "^20",
"@types/react": "18.3.12", "@types/react": "19.0.4",
"@types/react-dom": "18.3.1", "@types/react-dom": "19.0.2",
"autoprefixer": "^10", "autoprefixer": "^10",
"eslint": "^8", "eslint": "^8",
"eslint-config-next": "14.2.18", "eslint-config-next": "15.1.4",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",
"postcss": "^8", "postcss": "^8",
"tailwindcss": "^3", "tailwindcss": "^3",
"typescript": "^5" "typescript": "^5"
}, },
"overrides": { "overrides": {
"@types/react": "18.3.12", "@types/react": "19.0.4",
"@types/react-dom": "18.3.1" "@types/react-dom": "19.0.2"
} }
} }

View File

@ -1,8 +1,8 @@
import { createServerClient, type CookieOptions } from "@supabase/ssr"; import { createServerClient, type CookieOptions } from "@supabase/ssr";
import { cookies } from "next/headers"; import { cookies, type UnsafeUnwrappedCookies } from "next/headers";
export function createClient() { export function createClient() {
const cookieStore = cookies(); const cookieStore = (cookies() as unknown as UnsafeUnwrappedCookies);
return createServerClient( return createServerClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_URL!,