패키지 버전 업데이트 및 SvelteKit 3, Tailwind CSS 4로 마이그레이션

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
staticandClaude Opus 5.5 committed 2026-10-11 20:49:24 +09:00
1 parent 35f3e92b5a
commit 67989f4741
155 files changed
+1834 -2299

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import { Kysely, PostgresDialect } from "kysely";
import { Migrator } from "kysely/migration";
import pg from "pg";
import env from "$lib/server/loadenv";
import env from "#lib/server/loadenv.js";
import migrations from "./migrations";
import type { Database } from "./schema";
+1 -1
View File
@@ -1,5 +1,5 @@
import pg from "pg";
import env from "$lib/server/loadenv";
import env from "#lib/server/loadenv.js";
import { IntegrityError } from "./error";
import db from "./kysely";
+26 -20
View File
@@ -1,29 +1,35 @@
import ms from "ms";
import { building } from "$app/environment";
import { env } from "$env/dynamic/private";
if (!building) {
if (!env.DATABASE_PASSWORD) throw new Error("DATABASE_PASSWORD not set");
if (!env.SESSION_SECRET) throw new Error("SESSION_SECRET not set");
}
import {
NODE_ENV,
DATABASE_HOST,
DATABASE_PORT,
DATABASE_USER,
DATABASE_PASSWORD,
DATABASE_NAME,
SESSION_SECRET,
SESSION_EXPIRES,
USER_CLIENT_CHALLENGE_EXPIRES,
SESSION_UPGRADE_CHALLENGE_EXPIRES,
LIBRARY_PATH,
THUMBNAILS_PATH,
} from "$app/env/private";
export default {
nodeEnv: env.NODE_ENV || "development",
nodeEnv: NODE_ENV,
database: {
host: env.DATABASE_HOST,
port: env.DATABASE_PORT ? parseInt(env.DATABASE_PORT, 10) : undefined,
user: env.DATABASE_USER,
password: env.DATABASE_PASSWORD!,
name: env.DATABASE_NAME,
host: DATABASE_HOST,
port: DATABASE_PORT,
user: DATABASE_USER,
password: DATABASE_PASSWORD,
name: DATABASE_NAME,
},
session: {
secret: env.SESSION_SECRET!,
exp: ms(env.SESSION_EXPIRES || "14d"),
secret: SESSION_SECRET,
exp: SESSION_EXPIRES,
},
challenge: {
userClientExp: ms(env.USER_CLIENT_CHALLENGE_EXPIRES || "5m"),
sessionUpgradeExp: ms(env.SESSION_UPGRADE_CHALLENGE_EXPIRES || "5m"),
userClientExp: USER_CLIENT_CHALLENGE_EXPIRES,
sessionUpgradeExp: SESSION_UPGRADE_CHALLENGE_EXPIRES,
},
libraryPath: env.LIBRARY_PATH || "library",
thumbnailsPath: env.THUMBNAILS_PATH || "thumbnails",
libraryPath: LIBRARY_PATH,
thumbnailsPath: THUMBNAILS_PATH,
};
+3 -2
View File
@@ -1,5 +1,6 @@
import { error, redirect, type Handle } from "@sveltejs/kit";
import { cookieOptions, authenticate, AuthenticationError } from "$lib/server/modules/auth";
import { error, redirect } from "@sveltejs/kit";
import type { Handle } from "@sveltejs/kit/hooks";
import { cookieOptions, authenticate, AuthenticationError } from "#lib/server/modules/auth.js";
export const authenticateMiddleware: Handle = async ({ event, resolve }) => {
try {
+2 -1
View File
@@ -1,4 +1,5 @@
import { error, type Handle } from "@sveltejs/kit";
import { error } from "@sveltejs/kit";
import type { Handle } from "@sveltejs/kit/hooks";
export const setAgentInfoMiddleware: Handle = async ({ event, resolve }) => {
const ip = event.getClientAddress();
+3 -3
View File
@@ -1,7 +1,7 @@
import { error } from "@sveltejs/kit";
import { ClientRepo, SessionRepo, IntegrityError } from "$lib/server/db";
import env from "$lib/server/loadenv";
import { verifySessionId } from "$lib/server/modules/crypto";
import { ClientRepo, SessionRepo, IntegrityError } from "#lib/server/db/index.js";
import env from "#lib/server/loadenv.js";
import { verifySessionId } from "#lib/server/modules/crypto.js";
export interface Session {
sessionId: string;
+1 -1
View File
@@ -2,7 +2,7 @@ import { error } from "@sveltejs/kit";
import { createReadStream } from "fs";
import { stat } from "fs/promises";
import { Readable } from "stream";
import { FileRepo, MediaRepo } from "$lib/server/db";
import { FileRepo, MediaRepo } from "#lib/server/db/index.js";
const createEncContentStream = async (
path: string,
+3 -3
View File
@@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit";
import { open } from "fs/promises";
import { Readable } from "stream";
import { ENCRYPTION_OVERHEAD, ENCRYPTED_CHUNK_SIZE } from "$lib/constants";
import { UploadRepo } from "$lib/server/db";
import { safeUnlink } from "$lib/server/modules/filesystem";
import { ENCRYPTION_OVERHEAD, ENCRYPTED_CHUNK_SIZE } from "#lib/constants/index.js";
import { UploadRepo } from "#lib/server/db/index.js";
import { safeUnlink } from "#lib/server/modules/filesystem.js";
const chunkLocks = new Set<string>();