Releases: v-checha/nestjs-template
Releases · v-checha/nestjs-template
v3.0.0
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
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
- Feature/linters by @v-checha in #2
- fix(eslint): convert js to mjs by @v-checha in #3
- Feature/swagger/auth by @v-checha in #4
- feat(upload): create storage module by @v-checha in #5
- chore(lint): new line befoe return rule by @v-checha in #6
- fix(auth): added currentuser interface by @v-checha in #7
- fix(files): remove aggregate root for now by @v-checha in #8
- feat(logger): added logger module and simple logs by @v-checha in #9
Full Changelog: https://github.com/v-checha/nestjs-template/commits/2.0.1