Skip to content

Commit 770a954

Browse files
pacphiclaude
andcommitted
chore: upgrade dependencies (dependabot PRs #2 & #3) with breaking-change fixes
Production dependency upgrades: - prisma + @prisma/client: 6 → 7 (major) - zod: 3 → 4 (major) - uuid: 11 → 13 (major) - pino: 9 → 10 (major) - @xterm/xterm: 5 → 6 (major) - @tanstack/react-router: 1.114 → 1.162 - @types/recharts: 1 → 2 - lucide-react: 0.475 → 0.575 - xterm addons: minor bumps Dev dependency upgrades: - vite: 6 → 7 (major) - @vitejs/plugin-react: 4 → 5 (major) - @types/node: 22 → 25 - typescript: 5.7 → 5.9 - @tanstack/router-plugin: minor bump - jsdom: 26 → 28 Breaking-change fixes: - Prisma 7: move datasource URL out of schema.prisma into prisma.config.ts; add @prisma/adapter-pg + pg; update PrismaClient to use PrismaPg adapter - Zod v4: z.record(v) → z.record(z.string(), v) in alerts.ts and logs.ts - pnpm: approve @prisma/engines and prisma build scripts via onlyBuiltDependencies Database migrations: - Consolidate 9 incremental migrations (000–008) into single 20260224000000_init - Heartbeat and Metric tables created with composite PK (id, timestamp) for TimescaleDB hypertable compatibility from the start Makefile: - Add deps-upgrade, deps-upgrade-interactive, deps-outdated targets All 668 tests pass; full typecheck clean. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 8659a82 commit 770a954

20 files changed

Lines changed: 1935 additions & 1632 deletions

File tree

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.PHONY: install build dev test test-coverage lint typecheck \
66
fmt fmt-check audit \
7+
deps-upgrade deps-upgrade-interactive deps-outdated \
78
infra-up infra-down infra-reset infra-logs infra-status \
89
stack-build stack-up stack-down stack-nuke stack-logs stack-status stack-rebuild \
910
db-migrate db-migrate-deploy db-generate db-seed db-reset db-studio \
@@ -83,6 +84,24 @@ audit:
8384
pnpm audit
8485
@echo "$(GREEN)✓ Security audit complete$(RESET)"
8586

87+
# ============================================================================
88+
# Dependency Management
89+
# ============================================================================
90+
91+
deps-upgrade:
92+
@echo "$(BLUE)Upgrading npm dependencies to latest...$(RESET)"
93+
pnpm update --recursive --latest
94+
@echo "$(GREEN)✓ npm dependencies upgraded$(RESET)"
95+
96+
deps-upgrade-interactive:
97+
@echo "$(BLUE)Interactive npm dependency upgrade...$(RESET)"
98+
pnpm update --recursive --interactive
99+
100+
deps-outdated:
101+
@echo "$(BLUE)Checking for outdated npm dependencies...$(RESET)"
102+
pnpm outdated --recursive
103+
@echo "$(GREEN)✓ Outdated check complete$(RESET)"
104+
86105
# ============================================================================
87106
# Infrastructure (postgres + redis only)
88107
# ============================================================================

apps/api/package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,25 @@
2525
},
2626
"dependencies": {
2727
"@hono/node-server": "^1.13.7",
28-
"@prisma/client": "^6.3.1",
28+
"@prisma/adapter-pg": "^7.4.1",
29+
"@prisma/client": "^7.4.1",
2930
"hono": "^4.7.2",
31+
"pg": "^8.16.3",
3032
"ioredis": "^5.4.2",
31-
"pino": "^9.6.0",
33+
"pino": "^10.3.1",
3234
"pino-pretty": "^13.0.0",
33-
"prisma": "^6.3.1",
35+
"prisma": "^7.4.1",
3436
"ws": "^8.18.1",
35-
"zod": "^3.24.2",
36-
"uuid": "^11.1.0"
37+
"zod": "^4.3.6",
38+
"uuid": "^13.0.0"
3739
},
3840
"devDependencies": {
39-
"@types/node": "^22.13.4",
41+
"@types/node": "^25.3.0",
42+
"@types/pg": "^8.11.14",
4043
"@types/ws": "^8.5.14",
4144
"@types/uuid": "^10.0.0",
4245
"tsx": "^4.19.2",
43-
"typescript": "^5.7.3",
46+
"typescript": "^5.9.3",
4447
"vitest": "^4.0.0",
4548
"@vitest/coverage-v8": "^4.0.0"
4649
},

apps/api/prisma.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from "prisma/config";
2+
3+
export default defineConfig({
4+
schema: "./prisma/schema.prisma",
5+
// DATABASE_URL is only required for migrate/deploy/studio commands, not for generate.
6+
...(process.env.DATABASE_URL
7+
? { datasource: { url: process.env.DATABASE_URL } }
8+
: {}),
9+
migrations: {
10+
path: "./prisma/migrations",
11+
},
12+
});

apps/api/prisma/migrations/20260217000000_initial_schema/migration.sql

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)