Bump deps

This commit is contained in:
Sam Becker 2025-09-01 21:03:25 -05:00
parent 4dc3a976b7
commit 1a72a84497
7 changed files with 373 additions and 370 deletions

View File

@ -9,10 +9,10 @@
"analyze": "ANALYZE=true next build" "analyze": "ANALYZE=true next build"
}, },
"dependencies": { "dependencies": {
"@ai-sdk/openai": "^2.0.22", "@ai-sdk/openai": "^2.0.23",
"@ai-sdk/rsc": "^1.0.27", "@ai-sdk/rsc": "^1.0.29",
"@aws-sdk/client-s3": "3.878.0", "@aws-sdk/client-s3": "3.879.0",
"@aws-sdk/s3-request-presigner": "3.878.0", "@aws-sdk/s3-request-presigner": "3.879.0",
"@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16", "@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-tooltip": "^1.2.8", "@radix-ui/react-tooltip": "^1.2.8",
@ -22,7 +22,7 @@
"@vercel/analytics": "^1.5.0", "@vercel/analytics": "^1.5.0",
"@vercel/blob": "^1.1.1", "@vercel/blob": "^1.1.1",
"@vercel/speed-insights": "^1.2.0", "@vercel/speed-insights": "^1.2.0",
"ai": "^5.0.27", "ai": "^5.0.29",
"camelcase-keys": "^9.1.3", "camelcase-keys": "^9.1.3",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"cmdk": "^1.1.1", "cmdk": "^1.1.1",
@ -47,14 +47,14 @@
"sonner": "^2.0.7", "sonner": "^2.0.7",
"swr": "^2.3.6", "swr": "^2.3.6",
"ts-exif-parser": "^0.2.2", "ts-exif-parser": "^0.2.2",
"use-debounce": "^10.0.5", "use-debounce": "^10.0.6",
"viewerjs": "^1.11.7" "viewerjs": "^1.11.7"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.3.1", "@eslint/eslintrc": "^3.3.1",
"@next/bundle-analyzer": "15.5.2", "@next/bundle-analyzer": "15.5.2",
"@next/eslint-plugin-next": "^15.5.2", "@next/eslint-plugin-next": "^15.5.2",
"@stylistic/eslint-plugin": "^5.2.3", "@stylistic/eslint-plugin": "^5.3.1",
"@tailwindcss/postcss": "^4.1.12", "@tailwindcss/postcss": "^4.1.12",
"@testing-library/dom": "^10.4.1", "@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.8.0", "@testing-library/jest-dom": "^6.8.0",
@ -70,8 +70,8 @@
"eslint": "9.34.0", "eslint": "9.34.0",
"eslint-config-next": "15.5.2", "eslint-config-next": "15.5.2",
"eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-hooks": "^5.2.0",
"jest": "^30.1.1", "jest": "^30.1.2",
"jest-environment-jsdom": "^30.1.1", "jest-environment-jsdom": "^30.1.2",
"postcss": "8.5.6", "postcss": "8.5.6",
"tailwindcss": "4.1.12", "tailwindcss": "4.1.12",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",

684
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -336,17 +336,17 @@ export const HIGH_DENSITY_GRID =
// DESIGN // DESIGN
export const DEFAULT_THEME = export const DEFAULT_THEME =
process.env.NEXT_PUBLIC_DEFAULT_THEME === 'dark' process.env.NEXT_PUBLIC_DEFAULT_THEME === 'dark'
? 'dark' ? 'dark'
: process.env.NEXT_PUBLIC_DEFAULT_THEME === 'light' : process.env.NEXT_PUBLIC_DEFAULT_THEME === 'light'
? 'light' ? 'light'
: 'system'; : 'system';
export const MATTE_PHOTOS = export const MATTE_PHOTOS =
process.env.NEXT_PUBLIC_MATTE_PHOTOS === '1'; process.env.NEXT_PUBLIC_MATTE_PHOTOS === '1';
export const MATTE_COLOR = export const MATTE_COLOR =
process.env.NEXT_PUBLIC_MATTE_COLOR; process.env.NEXT_PUBLIC_MATTE_COLOR;
export const MATTE_COLOR_DARK = export const MATTE_COLOR_DARK =
process.env.NEXT_PUBLIC_MATTE_COLOR_DARK; process.env.NEXT_PUBLIC_MATTE_COLOR_DARK;
// SETTINGS // SETTINGS

View File

@ -2,7 +2,7 @@ import { CategoryQueryMeta } from '@/category';
import type { Photo } from '@/photo'; import type { Photo } from '@/photo';
import { isCameraMakeApple } from '@/platforms/apple'; import { isCameraMakeApple } from '@/platforms/apple';
import { formatSonyModel, isMakeSony } from '@/platforms/sony'; import { formatSonyModel, isMakeSony } from '@/platforms/sony';
import { parameterize } from '@/utility/string'; import { MakeModelTextLength, parameterize } from '@/utility/string';
const CAMERA_PLACEHOLDER: Camera = { make: 'Camera', model: 'Model' }; const CAMERA_PLACEHOLDER: Camera = { make: 'Camera', model: 'Model' };
@ -60,11 +60,7 @@ export const cameraFromPhoto = (
export const formatCameraText = ( export const formatCameraText = (
{ make, model: _model }: Camera, { make, model: _model }: Camera,
length: length: MakeModelTextLength = 'medium',
'long' | // Unmodified make and model
'medium' | // Make and model, with modifiers removed
'short' // Model only
= 'medium',
) => { ) => {
// Capture simple make without modifiers like 'Corporation' or 'Company' // Capture simple make without modifiers like 'Corporation' or 'Company'
const makeSimple = make.match(/^(\S+)/)?.[1]; const makeSimple = make.match(/^(\S+)/)?.[1];

View File

@ -1,5 +1,5 @@
import { Photo } from '@/photo'; import { Photo } from '@/photo';
import { parameterize } from '@/utility/string'; import { MakeModelTextLength, parameterize } from '@/utility/string';
import { formatAppleLensText, isLensApple } from '../platforms/apple'; import { formatAppleLensText, isLensApple } from '../platforms/apple';
import { MISSING_FIELD } from '@/app/path'; import { MISSING_FIELD } from '@/app/path';
import { formatGoogleLensText, isLensGoogle } from '../platforms/google'; import { formatGoogleLensText, isLensGoogle } from '../platforms/google';
@ -89,11 +89,7 @@ export const lensFromPhoto = (
export const formatLensText = ( export const formatLensText = (
lens: Lens, lens: Lens,
length: length: MakeModelTextLength = 'medium',
'long' | // Unmodified make and model
'medium' | // Make and model, with modifiers removed
'short' // Model only
= 'medium',
) => { ) => {
const { make, model: modelRaw } = lens; const { make, model: modelRaw } = lens;

View File

@ -244,11 +244,11 @@ export const getFujifilmSimulationFromMakerNote = (
switch (tag) { switch (tag) {
case TAG_ID_SATURATION: case TAG_ID_SATURATION:
filmModeFromSaturation = filmModeFromSaturation =
getFujifilmSimulationFromSaturation(numbers[0]); getFujifilmSimulationFromSaturation(numbers[0]);
break; break;
case TAG_ID_FILM_MODE: case TAG_ID_FILM_MODE:
filmMode = filmMode =
getFujifilmMode(numbers[0]); getFujifilmMode(numbers[0]);
break; break;
} }
}, },

View File

@ -1,3 +1,8 @@
export type MakeModelTextLength =
'long' | // Unmodified make and model
'medium' | // Make and model, with modifiers removed
'short'; // Model only
export const convertStringToArray = ( export const convertStringToArray = (
string?: string, string?: string,
shouldParameterize = true, shouldParameterize = true,