Skip to content

Commit

Permalink
feat: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqmanuja committed Dec 25, 2024
1 parent f5f5132 commit 4c12a94
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 36 deletions.
Binary file modified bun.lockb
Binary file not shown.
26 changes: 13 additions & 13 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
"preview": "vite preview"
},
"dependencies": {
"@elysiajs/eden": "^1.0.14",
"@tailwindcss/vite": "^4.0.0-alpha.20",
"@elysiajs/eden": "^1.2.0",
"@tailwindcss/vite": "^4.0.0-beta.8",
"@todos/server": "workspace:*",
"lucide-react": "^0.437.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"lucide-react": "^0.469.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sonner": "^1.5.0",
"tailwindcss": "^4.0.0-alpha.20",
"zustand": "^4.5.5"
"tailwindcss": "^4.0.0-beta.8",
"zustand": "^5.0.2"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "^5.5.4",
"vite": "^5.4.2"
"@biomejs/biome": "1.9.4",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.7.2",
"vite": "^6.0.5"
},
"trustedDependencies": ["@biomejs/biome"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"check": "turbo run check"
},
"devDependencies": {
"@biomejs/biome": "1.8.3"
"@biomejs/biome": "1.9.4"
},
"trustedDependencies": ["@biomejs/biome"],
"dependencies": {
"turbo": "^2.0.6"
"turbo": "^2.3.3"
},
"packageManager": "[email protected]"
}
26 changes: 13 additions & 13 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
"check": "biome check"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@types/bun": "^1.1.8",
"drizzle-kit": "^0.24.2"
"@biomejs/biome": "1.9.4",
"@types/bun": "^1.1.14",
"drizzle-kit": "^0.30.1"
},
"peerDependencies": {
"typescript": "^5.5.4"
"typescript": "^5.7.2"
},
"dependencies": {
"@elysiajs/cors": "^1.1.0",
"@elysiajs/swagger": "^1.1.1",
"@libsql/client": "^0.10.0",
"@sinclair/typebox": "^0.33.7",
"@tqman/nice-logger": "^1.0.1",
"drizzle-orm": "^0.33.0",
"drizzle-typebox": "^0.1.1",
"elysia": "^1.1.9",
"picocolors": "^1.0.1"
"@elysiajs/cors": "^1.2.0",
"@elysiajs/swagger": "^1.2.0",
"@libsql/client": "^0.14.0",
"@sinclair/typebox": "^0.34.13",
"@tqman/nice-logger": "^1.1.1",
"drizzle-orm": "^0.38.2",
"drizzle-typebox": "^0.2.0",
"elysia": "^1.2.6",
"picocolors": "^1.1.1"
},
"trustedDependencies": ["@biomejs/biome"],
"exports": {
Expand Down
9 changes: 6 additions & 3 deletions server/src/routes/todos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ import Elysia, { t } from "elysia";
import { db } from "../db";
import { TodoInsertSchema } from "../db/models";
import { todos } from "../db/schema";
import { withoutId } from "../utils/typebox";

const ROUTE_PREFIX = "/todos";

/* https://elysiajs.com/recipe/drizzle#type-instantiation-is-possibly-infinite */
const createTodo = t.Omit(TodoInsertSchema, ["id"]);
const updateTodo = t.Partial(createTodo);

export const todosRoutes = new Elysia({ prefix: ROUTE_PREFIX })
.get("/", () => {
return db.select().from(todos);
Expand All @@ -27,7 +30,7 @@ export const todosRoutes = new Elysia({ prefix: ROUTE_PREFIX })
return todo;
},
{
body: withoutId(TodoInsertSchema),
body: createTodo,
},
)
.patch(
Expand All @@ -41,7 +44,7 @@ export const todosRoutes = new Elysia({ prefix: ROUTE_PREFIX })
return todo;
},
{
body: t.Partial(withoutId(TodoInsertSchema)),
body: updateTodo,
},
)
.delete("/:id", async ({ params }) => {
Expand Down
5 changes: 0 additions & 5 deletions server/src/utils/typebox.ts

This file was deleted.

0 comments on commit 4c12a94

Please sign in to comment.