Skip to content

chore: update packages #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@react-email/render": "^1.0.5",
"@scalar/hono-api-reference": "^0.5.184",
"arktype": "^2.1.9",
"better-auth": "^1.2.3",
"better-auth": "^1.2.4",
"drizzle-orm": "^0.39.3",
"hono": "^4.7.4",
"hono-openapi": "^0.4.6",
Expand Down
20 changes: 3 additions & 17 deletions apps/api/src/routes/categories/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { createIssueMsg } from "@hoalu/common/standard-validate";
import { OpenAPI } from "@hoalu/furnace";
import { type } from "arktype";
import { describeRoute } from "hono-openapi";
import { validator as aValidator } from "hono-openapi/arktype";
import { createHonoInstance } from "../../lib/create-app";
import { workspaceMember } from "../../middlewares/workspace-member";
import { idParamValidator } from "../../validators/id-param";
import { jsonBodyValidator } from "../../validators/json-body";
import { workspaceQueryValidator } from "../../validators/workspace-query";
import { CategoryRepository } from "./repositiory";
import {
Expand Down Expand Up @@ -108,14 +108,7 @@ const route = app
}),
workspaceQueryValidator,
workspaceMember,
aValidator("json", insertCategorySchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(insertCategorySchema),
async (c) => {
const workspace = c.get("workspace");
const payload = c.req.valid("json");
Expand Down Expand Up @@ -152,14 +145,7 @@ const route = app
idParamValidator,
workspaceQueryValidator,
workspaceMember,
aValidator("json", updateCategorySchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(updateCategorySchema),
async (c) => {
const workspace = c.get("workspace");
const param = c.req.valid("param");
Expand Down
20 changes: 3 additions & 17 deletions apps/api/src/routes/expenses/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { createIssueMsg } from "@hoalu/common/standard-validate";
import { OpenAPI } from "@hoalu/furnace";
import { type } from "arktype";
import { describeRoute } from "hono-openapi";
import { validator as aValidator } from "hono-openapi/arktype";
import { monetary } from "../../common/monetary";
import { createHonoInstance } from "../../lib/create-app";
import { workspaceMember } from "../../middlewares/workspace-member";
import { idParamValidator } from "../../validators/id-param";
import { jsonBodyValidator } from "../../validators/json-body";
import { workspaceQueryValidator } from "../../validators/workspace-query";
import { ExpenseRepository } from "./repository";
import {
Expand Down Expand Up @@ -109,14 +109,7 @@ const route = app
}),
workspaceQueryValidator,
workspaceMember,
aValidator("json", insertExpenseSchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(insertExpenseSchema),
async (c) => {
const user = c.get("user")!;
const workspace = c.get("workspace");
Expand Down Expand Up @@ -161,14 +154,7 @@ const route = app
idParamValidator,
workspaceQueryValidator,
workspaceMember,
aValidator("json", updateExpenseSchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(updateExpenseSchema),
async (c) => {
const workspace = c.get("workspace");
const param = c.req.valid("param");
Expand Down
20 changes: 3 additions & 17 deletions apps/api/src/routes/tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { createIssueMsg } from "@hoalu/common/standard-validate";
import { OpenAPI } from "@hoalu/furnace";
import { type } from "arktype";
import { describeRoute } from "hono-openapi";
import { validator as aValidator } from "hono-openapi/arktype";
import { createHonoInstance } from "../../lib/create-app";
import { workspaceMember } from "../../middlewares/workspace-member";
import { idParamValidator } from "../../validators/id-param";
import { jsonBodyValidator } from "../../validators/json-body";
import { workspaceQueryValidator } from "../../validators/workspace-query";
import { TaskRepository } from "./repository";
import {
Expand Down Expand Up @@ -108,14 +108,7 @@ const route = app
}),
workspaceQueryValidator,
workspaceMember,
aValidator("json", insertTaskSchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(insertTaskSchema),
async (c) => {
const user = c.get("user")!;
const workspace = c.get("workspace");
Expand Down Expand Up @@ -154,14 +147,7 @@ const route = app
idParamValidator,
workspaceQueryValidator,
workspaceMember,
aValidator("json", updateTaskSchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(updateTaskSchema),
async (c) => {
const workspace = c.get("workspace");
const param = c.req.valid("param");
Expand Down
20 changes: 3 additions & 17 deletions apps/api/src/routes/wallets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { createIssueMsg } from "@hoalu/common/standard-validate";
import { OpenAPI } from "@hoalu/furnace";
import { type } from "arktype";
import { describeRoute } from "hono-openapi";
import { validator as aValidator } from "hono-openapi/arktype";
import { WORKSPACE_CREATOR_ROLE } from "../../common/constants";
import { createHonoInstance } from "../../lib/create-app";
import { workspaceMember } from "../../middlewares/workspace-member";
import { idParamValidator } from "../../validators/id-param";
import { jsonBodyValidator } from "../../validators/json-body";
import { workspaceQueryValidator } from "../../validators/workspace-query";
import { WalletRepository } from "./repository";
import {
Expand Down Expand Up @@ -108,14 +108,7 @@ const route = app
}),
workspaceQueryValidator,
workspaceMember,
aValidator("json", insertWalletSchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(insertWalletSchema),
async (c) => {
const user = c.get("user")!;
const workspace = c.get("workspace");
Expand Down Expand Up @@ -154,14 +147,7 @@ const route = app
idParamValidator,
workspaceQueryValidator,
workspaceMember,
aValidator("json", updateWalletSchema, (result, c) => {
if (!result.success) {
return c.json(
{ message: createIssueMsg(result.errors.issues) },
HTTPStatus.codes.BAD_REQUEST,
);
}
}),
jsonBodyValidator(updateWalletSchema),
async (c) => {
const user = c.get("user")!;
const workspace = c.get("workspace");
Expand Down
20 changes: 10 additions & 10 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
"@hoalu/icons": "workspace:*",
"@hoalu/ui": "workspace:*",
"@tanstack/react-form": "^1.0.5",
"@tanstack/react-query": "^5.67.2",
"@tanstack/react-query-devtools": "^5.67.2",
"@tanstack/react-router": "^1.114.13",
"@tanstack/react-router-devtools": "^1.114.13",
"@tanstack/react-query": "^5.68.0",
"@tanstack/react-query-devtools": "^5.68.0",
"@tanstack/react-router": "^1.114.22",
"@tanstack/react-router-devtools": "^1.114.22",
"@tanstack/react-table": "^8.21.2",
"@tiptap/extension-placeholder": "^2.11.5",
"@tiptap/pm": "^2.11.5",
"@tiptap/react": "^2.11.5",
"@tiptap/starter-kit": "^2.11.5",
"arktype": "^2.1.9",
"better-auth": "^1.2.3",
"better-auth": "^1.2.4",
"date-fns": "^4.1.0",
"hono": "^4.7.4",
"jotai": "^2.12.2",
"next-themes": "^0.4.5",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-aria-components": "^1.7.1",
"react-dom": "^19.0.0",
Expand All @@ -45,16 +45,16 @@
"@hoalu/api": "workspace:*",
"@hoalu/tsconfig": "workspace:*",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/vite": "^4.0.12",
"@tanstack/router-plugin": "^1.114.13",
"@tailwindcss/vite": "^4.0.14",
"@tanstack/router-plugin": "^1.114.22",
"@types/bun": "latest",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react-swc": "^3.8.0",
"tailwind-scrollbar": "4.0.0-beta.0",
"tailwindcss": "^4.0.12",
"vite": "^6.2.1",
"tailwindcss": "^4.0.14",
"vite": "^6.2.2",
"vite-plugin-pwa": "^0.21.1",
"vite-tsconfig-paths": "^5.1.4"
}
Expand Down
Loading