fix: upgrade deps and prune unused packages

Fixes #329
This commit is contained in:
Sai Charan
2026-09-01 18:26:58 +00:00
parent 1070392b9b
commit fbfb5de4c8
9 changed files with 733 additions and 648 deletions
+667 -572
View File
File diff suppressed because it is too large Load Diff
+4 -8
View File
@@ -1,6 +1,4 @@
import { defineConfig } from "eslint/config";
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import remotion from "@remotion/eslint-plugin";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
@@ -15,11 +13,9 @@ const compat = new FlatCompat({
});
export default defineConfig([{
extends: [...nextCoreWebVitals],
plugins: {
"@remotion": remotion,
},
ignores: [".next/", "out/", "public/"],
}, {
extends: [...compat.extends("next/core-web-vitals")],
rules: {
"react-hooks/exhaustive-deps": "off",
@@ -28,4 +24,4 @@ export default defineConfig([{
}, {
files: ["remotion/*.{ts,tsx}"],
extends: [...compat.extends("plugin:@remotion/recommended")],
}]);
}]);
+55 -60
View File
@@ -17,99 +17,94 @@
"url": "https://varunraj.in"
},
"dependencies": {
"@ai-sdk/openai": "^3.0.50",
"@ai-sdk/openai-compatible": "^2.0.38",
"@ai-sdk/react": "^3.0.148",
"@libsql/client": "^0.17.2",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-context-menu": "^2.2.16",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-hover-card": "^1.1.15",
"@ai-sdk/openai-compatible": "^2.0.70",
"@libsql/client": "^0.17.4",
"@radix-ui/react-accordion": "^1.2.20",
"@radix-ui/react-alert-dialog": "^1.1.23",
"@radix-ui/react-avatar": "^1.2.6",
"@radix-ui/react-checkbox": "^1.3.11",
"@radix-ui/react-context-menu": "^2.3.7",
"@radix-ui/react-dialog": "^1.1.23",
"@radix-ui/react-dropdown-menu": "^2.1.24",
"@radix-ui/react-hover-card": "^1.1.23",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toast": "^1.2.15",
"@radix-ui/react-tooltip": "^1.2.8",
"@remotion/cli": "4.0.232",
"@remotion/eslint-plugin": "^4.0.446",
"@tanstack/react-query": "^5.96.2",
"@radix-ui/react-label": "^2.1.15",
"@radix-ui/react-popover": "^1.1.23",
"@radix-ui/react-scroll-area": "^1.2.18",
"@radix-ui/react-select": "^2.3.7",
"@radix-ui/react-slot": "^1.3.3",
"@radix-ui/react-switch": "^1.3.7",
"@radix-ui/react-tabs": "^1.1.21",
"@radix-ui/react-toast": "^1.2.23",
"@radix-ui/react-tooltip": "^1.2.16",
"@remotion/cli": "4.0.516",
"@remotion/eslint-plugin": "^4.0.516",
"@tanstack/react-query": "^5.102.2",
"@tanstack/react-table": "^8.21.3",
"@types/cookie": "^0.6.0",
"@types/qs": "^6.15.0",
"@types/react-autosuggest": "^10.1.11",
"@types/react-calendar-heatmap": "^1.9.0",
"@types/qs": "^6.15.1",
"@types/react-window": "^1.8.8",
"@xyflow/react": "^12.10.2",
"ai": "^6.0.146",
"axios": "^1.14.0",
"@xyflow/react": "^12.11.3",
"ai": "^6.0.264",
"axios": "^1.19.0",
"bs58": "^6.0.0",
"chrono-node": "^1.4.9",
"chrono-node": "^2.10.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.0.0",
"compatibility": "^1.0.1",
"cookie": "^0.6.0",
"cmdk": "1.1.1",
"cookie": "^0.7.2",
"date-fns": "^3.6.0",
"date-fns-tz": "^3.2.0",
"drizzle-orm": "^0.45.2",
"fast-xml-parser": "^5.5.10",
"fast-xml-parser": "^5.11.0",
"jsonwebtoken": "^9.0.3",
"leaflet": "^1.9.4",
"leaflet.heat": "^0.2.0",
"libsodium-wrappers-sumo": "^0.8.2",
"libsodium-wrappers-sumo": "^0.8.4",
"lucide-react": "^0.428.0",
"next": "15.5.14",
"next": "15.5.23",
"next-themes": "^0.3.0",
"node-cron": "3.0.3",
"pg": "^8.20.0",
"qs": "^6.15.0",
"pg": "^8.23.0",
"qs": "^6.15.3",
"rc-mentions": "^2.20.0",
"react": "19.2.4",
"react-autosuggest": "^10.1.0",
"react": "19.2.8",
"react-day-picker": "9.0.8",
"react-dom": "19.2.4",
"react-dom": "19.2.8",
"react-hot-toast": "^2.6.0",
"react-leaflet": "^4.2.1",
"react-photo-album": "^3.5.1",
"react-photo-album": "^3.6.1",
"react-window": "^1.8.11",
"recharts": "^2.15.4",
"remotion": "4.0.232",
"sass": "^1.99.0",
"remotion": "4.0.516",
"sass": "^1.103.1",
"tailwind-merge": "^2.6.1",
"tailwindcss-animate": "^1.0.7",
"yet-another-react-lightbox": "^3.30.1",
"zod": "^4.3.6"
"yet-another-react-lightbox": "^3.32.2",
"zod": "^4.4.3"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.96.2",
"@types/jsonwebtoken": "^9.0.10",
"@types/leaflet": "^1.9.21",
"@types/leaflet": "^1.9.22",
"@types/leaflet.heat": "^0.2.5",
"@types/libsodium-wrappers-sumo": "^0.8.2",
"@types/node": "^20.19.39",
"@types/node": "^20.19.43",
"@types/node-cron": "3.0.11",
"@types/pg": "^8.20.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"autoprefixer": "^10.4.27",
"@types/pg": "^8.23.1",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.5",
"autoprefixer": "^10.5.4",
"drizzle-kit": "^0.31.10",
"eslint": "^9.39.4",
"eslint-config-next": "15.5.14",
"postcss": "^8.5.8",
"eslint": "^9.39.5",
"eslint-config-next": "15.5.23",
"postcss": "^8.5.26",
"tailwindcss": "^3.4.19",
"typescript": "^5.9.3"
},
"overrides": {
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3"
"@types/react": "19.2.18",
"@types/react-dom": "19.2.5",
"postcss": "^8.5.26",
"sharp": "^0.35.3",
"uuid": "^11.1.1"
}
}
@@ -69,7 +69,7 @@ export default function PotentialAlbumsAssets() {
useEffect(() => {
if (startDate) fetchAssets();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [startDate, endDate, tripCity]);
if (loading)
@@ -47,7 +47,7 @@ export default function PotentialAlbumsDates() {
useEffect(() => {
fetchData();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [filters, minAssets]);
return (
+1 -2
View File
@@ -9,8 +9,7 @@ import { Calendar } from '../ui/calendar';
import { Button } from '../ui/button';
import { Input } from '../ui/input';
// @ts-ignore
import chrono from 'chrono-node'
import * as chrono from 'chrono-node'
interface IProps {
person: IPerson
+1 -1
View File
@@ -1,4 +1,4 @@
/* eslint-disable @next/next/no-img-element */
import { humanizeDuration } from '@/helpers/string.helper'
import { PlayIcon } from '@radix-ui/react-icons'
import { CircleCheck } from 'lucide-react'
+1 -1
View File
@@ -1,4 +1,4 @@
/* eslint-disable @next/next/no-img-element */
import { ImageProps } from 'next/image'
import React, { useEffect } from 'react'
+2 -2
View File
@@ -16,7 +16,7 @@ import { getAssetStatistics, getLivePhotoStatistics } from "@/handlers/api/analy
import { humanizeBytes } from "@/helpers/string.helper";
import {
Camera,
Image,
Image as ImageIcon,
Video,
Aperture,
MapPin,
@@ -194,7 +194,7 @@ export default function ExifDataAnalytics() {
label="Images"
value={statistics.images}
loading={loading}
icon={<Image className="h-5 w-5" />}
icon={<ImageIcon className="h-5 w-5" />}
accent="bg-emerald-500 text-emerald-600"
/>
<StatCard