Skip to content

Releases: v-checha/nestjs-template

v3.0.0

29 Sep 07:27

Choose a tag to compare

Major Features:

  • Complete Admin Panel with Refine framework
  • Advanced Search Functionality with real-time filtering

Technical Implementation:

  • Backend changes (controllers, repositories, CQRS)
  • Frontend architecture (data providers, components)
  • Configuration updates (ESLint, proxy setup)

Detailed Feature List:

  • User management capabilities
  • Dashboard and monitoring features
  • Security implementations
  • API enhancements

Developer Experience:

  • Documentation updates
  • Development workflow improvements
  • Migration guide for existing users

Performance & Bug Fixes:

  • Search optimization
  • ESLint configuration fixes
  • Data handling improvements

Future Enhancements:

  • Planned features for next releases
  • Performance and scaling improvements

Technical Requirements:

  • System requirements
  • Dependencies added
  • Breaking changes (none!)

2.0.1

19 Sep 13:29

Choose a tag to compare

Major Architecture Improvements:

Domain Event System Removal

  • Removed unused domain event infrastructure - Eliminated over-engineered event system that was
    generating events but never dispatching them
  • Simplified entity architecture - Removed AggregateRoot inheritance from User and Role entities
  • Reduced codebase complexity - Deleted entire /src/core/events directory and related services
  • Impact: ~15% reduction in core module complexity, improved maintainability

DTO Architecture Refactoring

  • Migrated from interfaces to class-based DTOs - All DTOs now use proper classes with validation
    decorators
  • Restructured DTO organization - Clear separation between requests/ and responses/ with logical
    subdirectories (auth, user, role, storage)
  • Standardized naming conventions - All DTOs now follow consistent *Request and *Response naming
    patterns
  • Enhanced validation - Added comprehensive validation rules with descriptive error messages
  • Improved API documentation - Enhanced Swagger/OpenAPI annotations with detailed examples and
    constraints

Code Quality Improvements:

  • Removed unnecessary type aliases - Eliminated redundant type exports like IOtpRequiredResponse,
    using DTO classes directly
  • Cleaned up unused code - Removed 12+ unused DTO classes and 4 complete legacy files
  • Fixed all ESLint violations - Resolved 32 linting errors including duplicate imports and
    TypeScript any types
  • Enforced code formatting - Applied Prettier formatting across all 158 TypeScript files

Files Changed:

Deleted Files

  • /src/core/events/ (entire directory)
  • /src/core/services/domain-event.service.ts
  • /src/core/services/application-event.service.ts
  • /src/application/dtos/legacy-requests.ts
  • /src/application/dtos/legacy-types.ts
  • Several unused DTOs including CreateUserRequest, Setup2FAResponse, UserListResponse, etc.

Major Refactors

  • Entity files - Removed domain event logic from User and Role entities
  • DTO structure - Complete reorganization of /src/application/dtos directory
  • Import statements - Updated hundreds of imports across the codebase to use new DTO structure

Technical Details:

Breaking Changes

  • All DTO imports must now use the new structure from @application/dtos
  • Removed domain event methods (addDomainEvent, event handlers)
  • Type aliases no longer available - use DTO classes directly

Migration Guide

// Before
import { LoginDto } from '@application/dtos/auth/login.dto';
import type { IAuthTokenResponse } from '@application/dtos';

// After
import { LoginRequest, AuthTokenResponse } from '@application/dtos';

Performance Improvements

  • Reduced application bootstrap time by removing unused event handlers
  • Decreased memory footprint by eliminating event storage
  • Improved TypeScript compilation speed with cleaner type definitions

What's Changed

Full Changelog: https://github.com/v-checha/nestjs-template/commits/2.0.1