Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Latest commit

 

History

History
174 lines (118 loc) · 6.65 KB

File metadata and controls

174 lines (118 loc) · 6.65 KB

Changelog

2.0.0

Major Changes

  • #88 f564a09 Thanks @Arsabutispik! - # Refactor database schema and eliminate technical debt

    What changed

    • Restructured database schema with normalized table relationships
    • Renamed/removed deprecated columns and tables
    • Updated Prisma models and generated types across all packages
    • Refactored shared utilities (e.g., logBan) to reduce code duplication

    Why

    • Previous schema had accumulated technical debt and inconsistencies
    • Duplicate logic between event handlers and commands needed consolidation
    • Improved maintainability and type safety across the monorepo

    Migration guide

    Database

    Run pnpm db:migrate to apply schema changes. Existing data may require manual migration scripts depending on your deployment.

    Bot (khaxyrewrite)

    • Import shared utilities from src/utils/ instead of inline implementations
    • Update any direct database queries to match new schema field names

    Dashboard (khaxy-dashboard)

    • Update API routes and server actions to use new database types
    • Review any cached data structures that reference old field names

    Breaking changes

    • All packages must be updated together due to shared type dependencies
    • Database schema is incompatible with previous versions

Patch Changes

  • Updated dependencies [f564a09]:
    • @repo/database@1.0.0

1.1.0

Minor Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0 (2025-12-12)

  • refactor!: migrate project to monorepo and switch to PostgreSQL b6ec323

Bug Fixes

  • add postinstall script to generate prisma client on deployment 908852d
  • env variables cf216f2
  • env variables 0e1d9c0
  • env variables ae3e408
  • eslint ci cf97a27
  • update .env.example to include database connection details 3cc3e88
  • update build script to include database deployment c496daf
  • update ecosystem.config.js to correct env_file format b74c507
  • update i18next loadPath to use absolute path for locale files d909635
  • update i18next loadPath to use absolute path for locale files 7ddd6a8
  • update preserve option in ban command to preserve-messages 01ce2bc
  • update README to correct link for environment variables section 634f5c1
  • update release command to specify environment file for release-it 172991a
  • update release command to use dotenv with release-it f98f9b2

Features

  • add .env.example to root and ecosystem.config.js for bot and web app configuration e5452e7
  • add comprehensive README for Khaxy bot and web dashboard 91beb11
  • add dotenv-cli dependency for environment variable management 5d7096a
  • add GitHub Actions workflow for bot deployment 7a92aa8
  • add initial database integration and configuration files a21b7dc
  • add release-it configuration for automated releases 2e8173c
  • enable manual triggering for bot deployment workflow 18f254f
  • rename CI configuration file and enhance deployment workflow 4b5f480
  • update .env.example and README for improved environment variable setup 6d2785b

BREAKING CHANGES

  • This migration restructures the entire codebase into a Monorepo, moves the database from SQLite to PostgreSQL, and changes the build pipeline.

Monorepo Structure:

  • Converted project to pnpm workspaces with Turborepo
  • Moved Discord bot to apps/bot
  • Moved Next.js dashboard to apps/web
  • Created packages/database for shared Prisma types and client

Database & Backend:

  • REMOVED: SQLite and better-sqlite3 native bindings
  • ADDED: PostgreSQL support via pg driver
  • Unified database schema access via @repo/database package
  • Updated Auth.js (Better Auth) to use the shared Postgres connection

Dashboard Features:

  • feat: Added DiscordRoleSelect component with role colors and sorting
  • fix: Added bottom padding to forms to prevent "Unsaved Changes" bar overlap
  • fix: Resolved type safety issues in Moderation Config form

Config:

  • Updated .gitignore to strictly ignore .env files
  • Configured turbo.json for build/dev pipelines
  • Configured tsconfig.json paths for cleaner imports

0.12.0 (2025-11-30)

Bug Fixes

  • add logging for member fetch failures and implement guild info endpoint c1dc4d7
  • clean up cached webhook on deletion event c89e21c
  • database 6c317e6
  • enhance error handling and logging in DiscordTransport 7e55d54
  • improve webhook handling and configuration mapping a40832b
  • locales 2d4c412
  • logs and database 6b3ecd2
  • serverside logic for database fix 0c5f8a2
  • typings b01b4b8
  • update message deletion logic to log messages with attachments (#81) d870787, closes #81
  • Update returnWebhook to be more consistent, hopefully (#73) 5e121fc, closes #73
  • update server listen host to allow external connections 3db33e7
  • Use cache and log if any errors occur 2f8f63a

Features

  • add Fastify API server for dashboard integration with bot routes (#77) ddb04a3, closes #77
  • add roles command to manage user roles (#74) 9150bd6, closes #74

0.11.0 (2025-10-10)

Bug Fixes

  • remove unnecessary error handling for message components 63c112c

0.10.0 (2025-10-10)

0.9.0 (2025-10-06)

Bug Fixes

  • embeds being duplicate 923c853
  • fix all channels triggering a perm update 4cce7d3

Features

  • add guild logs 728e5a8
  • add thread logs af9297c
  • add webhook logs 2c5bca0