chore: update package dependencies and configurations across the monorepo

This commit is contained in:
Innei
2026-01-10 23:35:37 +08:00
parent 7e216d90d7
commit 08b045e176
35 changed files with 3253 additions and 3544 deletions

View File

@@ -1,9 +1,8 @@
{
"name": "@afilmory/core",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@10.26.2",
"author": "Innei",
"type": "module",
"main": "index.ts",
"scripts": {
"build": "vite build",
@@ -27,28 +26,28 @@
"@afilmory/task-queue": "workspace:*",
"@afilmory/utils": "workspace:*",
"@aws-crypto/sha256-js": "5.2.0",
"@aws-sdk/client-s3": "3.952.0",
"@aws-sdk/s3-request-presigner": "3.952.0",
"@aws-sdk/client-s3": "3.966.0",
"@aws-sdk/s3-request-presigner": "3.966.0",
"@creem_io/better-auth": "0.0.12",
"@hono/node-server": "^1.19.7",
"@hono/node-server": "^1.19.8",
"@resvg/resvg-js": "2.6.2",
"@types/busboy": "1.5.4",
"better-auth": "1.4.7",
"better-auth": "1.4.10",
"busboy": "1.6.0",
"consola": "3.4.2",
"drizzle-orm": "^0.45.1",
"ejs": "3.1.10",
"hono": "4.11.1",
"hono": "4.11.3",
"linkedom": "0.18.12",
"mime-types": "3.0.2",
"pg": "^8.16.3",
"pg-native": "3.5.2",
"picocolors": "1.1.1",
"reflect-metadata": "0.2.2",
"resend": "6.6.0",
"resend": "6.7.0",
"satori": "catalog:",
"tsyringe": "4.10.0",
"zod": "^4.2.1"
"zod": "^4.3.5"
},
"devDependencies": {
"@types/ejs": "3.1.5",
@@ -60,7 +59,8 @@
"vite": "8.0.0-beta.0",
"vite-bundle-analyzer": "1.3.2",
"vite-node": "5.2.0",
"vite-tsconfig-paths": "6.0.1",
"vitest": "4.0.15"
}
"vite-tsconfig-paths": "6.0.4",
"vitest": "4.0.16"
},
"packageManager": "pnpm@10.26.2"
}

View File

@@ -61,7 +61,7 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
hono.onError((error, context) => {
if (error instanceof BizException) {
return new Response(JSON.stringify(error.toResponse()), {
return Response.json(error.toResponse(), {
status: error.getHttpStatus(),
headers: {
'content-type': 'application/json',
@@ -70,7 +70,7 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
}
if (error instanceof HttpException) {
return new Response(JSON.stringify(error.getResponse()), {
return Response.json(error.getResponse(), {
status: error.getStatus(),
headers: {
'content-type': 'application/json',
@@ -84,7 +84,7 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
? (error as { statusCode?: number }).statusCode!
: 500
return new Response(JSON.stringify(error), {
return Response.json(error, {
status: statusCode,
headers: {
'content-type': 'application/json',
@@ -94,11 +94,11 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
honoErrorLogger.error(`Unhandled error ${context.req.method} ${context.req.url}`, error)
return new Response(
JSON.stringify({
return Response.json(
{
statusCode: 500,
message: 'Internal server error',
}),
},
{
status: 500,
headers: {

View File

@@ -20,7 +20,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
}
if (exception instanceof BizException) {
const response = exception.toResponse()
return new Response(JSON.stringify(response), {
return Response.json(response, {
status: exception.getHttpStatus(),
headers: {
'content-type': 'application/json',
@@ -29,7 +29,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
}
if (exception instanceof HttpException) {
return new Response(JSON.stringify(exception.getResponse()), {
return Response.json(exception.getResponse(), {
status: exception.getStatus(),
headers: {
'content-type': 'application/json',
@@ -38,7 +38,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
}
if (typeof exception === 'object' && exception !== null && 'statusCode' in exception) {
return new Response(JSON.stringify(exception), {
return Response.json(exception, {
status: exception.statusCode as number,
headers: {
'content-type': 'application/json',
@@ -46,11 +46,11 @@ export class AllExceptionsFilter implements ExceptionFilter {
})
}
return new Response(
JSON.stringify({
return Response.json(
{
statusCode: 500,
message: 'Internal server error',
}),
},
{
status: 500,
headers: {

View File

@@ -18,7 +18,7 @@ const storageSignQuerySchema = z
.optional()
.transform((val) => {
if (!val || val.trim().length === 0) {
return undefined
return
}
const parsed = Number.parseInt(val, 10)
return Number.isFinite(parsed) ? parsed : undefined

View File

@@ -306,7 +306,7 @@ export class AuthRegistrationService {
)
}
const response = new Response(JSON.stringify({ tenant: updatedTenant }), {
const response = Response.json({ tenant: updatedTenant }, {
status: 200,
headers: { 'Content-Type': 'application/json' },
})
@@ -392,7 +392,7 @@ export class AuthRegistrationService {
response = signupResponse
} else if (sessionUser && tenantId) {
userId = await this.attachSessionUserToTenant(tenantId)
response = new Response(JSON.stringify({ user: { id: userId } }), {
response = Response.json({ user: { id: userId } }, {
status: 200,
headers: { 'Content-Type': 'application/json' },
})

View File

@@ -582,7 +582,7 @@ export class AuthController {
headers.set('content-type', 'application/json; charset=utf-8')
return new Response(JSON.stringify(responseBody), {
return Response.json(responseBody, {
status: source.status,
statusText: source.statusText,
headers,
@@ -655,7 +655,7 @@ export class AuthController {
url: wrappedUrl,
}
return new Response(JSON.stringify(nextPayload), {
return Response.json(nextPayload, {
status: response.status,
statusText: response.statusText,
headers,

View File

@@ -1,12 +1,11 @@
{
"name": "@afilmory/dashboard",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@10.26.2",
"repository": {
"type": "git",
"url": "https://github.com/afilmory/afilmory"
},
"type": "module",
"scripts": {
"build": "vite build",
"build:prod:saas": "SAAS=1 vite build",
@@ -16,6 +15,17 @@
"prepare": "simple-git-hooks",
"serve": "vite preview"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --ignore-path ./.gitignore --write "
],
"*.{js,ts,cjs,mjs,jsx,tsx,json}": [
"eslint --fix"
]
},
"dependencies": {
"@afilmory/hooks": "workspace:*",
"@afilmory/ui": "workspace:*",
@@ -36,26 +46,26 @@
"@radix-ui/react-switch": "1.2.6",
"@radix-ui/react-tooltip": "1.2.8",
"@react-hook/window-size": "3.1.1",
"@tanstack/react-form": "1.27.4",
"@tanstack/react-query": "5.90.12",
"better-auth": "1.4.7",
"@tanstack/react-form": "1.27.7",
"@tanstack/react-query": "5.90.16",
"better-auth": "1.4.10",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"es-toolkit": "1.43.0",
"foxact": "0.2.49",
"i18next": "25.7.3",
"foxact": "0.2.51",
"i18next": "25.7.4",
"i18next-browser-languagedetector": "8.2.0",
"immer": "11.0.1",
"jotai": "2.16.0",
"lucide-react": "0.561.0",
"motion": "12.23.26",
"immer": "11.1.3",
"jotai": "2.16.1",
"lucide-react": "0.562.0",
"motion": "12.25.0",
"nanoid": "5.1.6",
"ofetch": "1.5.1",
"radix-ui": "1.4.3",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-i18next": "16.5.0",
"react-router": "7.10.1",
"react-i18next": "16.5.1",
"react-router": "7.12.0",
"react-scan": "0.4.3",
"sonner": "2.0.7",
"tailwind-merge": "3.4.0",
@@ -65,20 +75,20 @@
"devDependencies": {
"@egoist/tailwindcss-icons": "1.9.0",
"@iconify-json/mingcute": "catalog:",
"@iconify-json/simple-icons": "1.2.63",
"@iconify-json/simple-icons": "1.2.65",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/postcss": "catalog:",
"@tailwindcss/typography": "0.5.19",
"@tailwindcss/vite": "4.1.18",
"@types/node": "24.10.1",
"@types/react": "19.2.7",
"@types/react": "19.2.8",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"autoprefixer": "10.4.23",
"babel-plugin-react-compiler": "1.0.0",
"code-inspector-plugin": "1.3.3",
"code-inspector-plugin": "1.3.4",
"eslint": "9.39.2",
"eslint-config-hyoban": "4.0.10",
"eslint-config-hyoban": "5.0.3",
"lint-staged": "16.2.7",
"masonic": "4.1.0",
"postcss": "8.5.6",
@@ -96,17 +106,7 @@
"vite": "8.0.0-beta.0",
"vite-plugin-checker": "0.12.0",
"vite-plugin-route-builder": "0.5.0-alpha.1",
"vite-tsconfig-paths": "6.0.1"
"vite-tsconfig-paths": "6.0.4"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --ignore-path ./.gitignore --write "
],
"*.{js,ts,cjs,mjs,jsx,tsx,json}": [
"eslint --fix"
]
}
"packageManager": "pnpm@10.26.2"
}

View File

@@ -1,8 +1,8 @@
{
"name": "@afilmory/oauth-gateway",
"type": "module",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"dev": "nodemon",
@@ -11,7 +11,7 @@
"dependencies": {
"@afilmory/be-utils": "workspace:*",
"@afilmory/utils": "workspace:*",
"@hono/node-server": "^1.19.7",
"@hono/node-server": "^1.19.8",
"hono": "^4.11.3",
"zod": "catalog:"
},

View File

@@ -1,9 +1,9 @@
{
"name": "@afilmory/be",
"type": "module",
"version": "1.0.0",
"private": true,
"author": "Innei",
"type": "module",
"main": "index.js",
"scripts": {
"db:generate": "pnpm --filter core db:generate",
@@ -14,22 +14,22 @@
"prepare": "simple-git-hooks",
"test": "pnpm run -r test"
},
"dependencies": {
"prettier": "3.7.4"
},
"devDependencies": {
"eslint": "9.39.2",
"eslint-config-hyoban": "4.0.10",
"jiti": "2.6.1",
"lint-staged": "16.2.7",
"simple-git-hooks": "2.13.1",
"typescript": "catalog:"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*": "eslint --fix",
"*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
},
"dependencies": {
"prettier": "3.7.4"
},
"devDependencies": {
"eslint": "9.39.2",
"eslint-config-hyoban": "5.0.3",
"jiti": "2.6.1",
"lint-staged": "16.2.7",
"simple-git-hooks": "2.13.1",
"typescript": "catalog:"
}
}

View File

@@ -1,7 +1,7 @@
{
"name": "@afilmory/db",
"type": "module",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
@@ -20,7 +20,7 @@
"nodejs-snowflake": "^2.0.1",
"pg": "^8.16.3",
"pg-native": "3.5.2",
"zod": "^4.2.1"
"zod": "^4.3.5"
},
"devDependencies": {
"drizzle-kit": "0.31.8"

View File

@@ -1,7 +1,7 @@
{
"name": "@afilmory/env",
"type": "module",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
@@ -13,6 +13,6 @@
"dependencies": {
"@t3-oss/env-core": "^0.13.10",
"dotenv": "17.2.3",
"zod": "^4.2.1"
"zod": "^4.3.5"
}
}

View File

@@ -1,7 +1,7 @@
{
"name": "@afilmory/framework",
"type": "module",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
@@ -15,21 +15,21 @@
"test:coverage": "vitest run --coverage",
"test:watch": "vitest"
},
"peerDependencies": {
"ioredis": ">=5.8.0"
},
"dependencies": {
"hono": "4.11.1",
"hono": "4.11.3",
"picocolors": "1.1.1",
"reflect-metadata": "0.2.2",
"tsyringe": "4.10.0",
"zod": "^4.2.1"
"zod": "^4.3.5"
},
"devDependencies": {
"@types/node": "^25.0.3",
"@vitest/coverage-v8": "4.0.15",
"ioredis": "5.8.2",
"@vitest/coverage-v8": "4.0.16",
"ioredis": "5.9.1",
"unplugin-swc": "1.5.9",
"vitest": "4.0.15"
"vitest": "4.0.16"
},
"peerDependencies": {
"ioredis": ">=5.8.0"
}
}

View File

@@ -1101,7 +1101,7 @@ export class HonoHttpApplication {
private json(context: Context, payload: unknown, status: number): Response {
const normalizedPayload = payload === undefined ? null : payload
return new Response(JSON.stringify(normalizedPayload), {
return Response.json(normalizedPayload, {
status,
headers: {
'content-type': 'application/json',

View File

@@ -1623,7 +1623,7 @@ describe('APP_* providers and auto-registration of decorator enhancers', () => {
@injectable()
class AppFilter2 implements ExceptionFilter {
async catch(_e: unknown, _host: ArgumentsHost) {
return new Response(JSON.stringify({ handled: 'app' }), {
return Response.json({ handled: 'app' }, {
status: 499,
headers: {
'content-type': 'application/json',

View File

@@ -1,7 +1,7 @@
{
"name": "@afilmory/redis",
"type": "module",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
@@ -11,6 +11,6 @@
"main": "./src/index.ts",
"types": "./src/index.ts",
"dependencies": {
"ioredis": "^5.8.2"
"ioredis": "^5.9.1"
}
}

View File

@@ -1,7 +1,7 @@
{
"name": "@afilmory/task-queue",
"type": "module",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
@@ -14,17 +14,17 @@
"test": "vitest run --coverage",
"test:watch": "vitest"
},
"peerDependencies": {
"ioredis": "^5.8.0"
},
"dependencies": {
"@afilmory/framework": "workspace:*",
"tsyringe": "^4.10.0"
},
"devDependencies": {
"@types/node": "^25.0.3",
"@vitest/coverage-v8": "4.0.15",
"ioredis": "^5.8.2",
"vitest": "4.0.15"
"@vitest/coverage-v8": "4.0.16",
"ioredis": "^5.9.1",
"vitest": "4.0.16"
},
"peerDependencies": {
"ioredis": "^5.8.0"
}
}

View File

@@ -1,7 +1,7 @@
{
"name": "@afilmory/be-utils",
"type": "module",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts",
@@ -16,7 +16,7 @@
"types": "./src/index.ts",
"dependencies": {
"nodejs-snowflake": "^2.0.1",
"zod": "^4.2.1"
"zod": "^4.3.5"
},
"devDependencies": {
"@types/node": "^25.0.3"