From 1099c8e5e80d6f766cb26077b65202fe97008474 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 22 Jan 2025 20:21:46 +0330 Subject: [PATCH] chore: remove old task and add new task and feature --- docs/TODO.md | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/docs/TODO.md b/docs/TODO.md index 6e9f1df..7432268 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -23,16 +23,9 @@ ### Input Validation -- [ ] Create a `@Validate` decorator for request validation. -- [ ] Implement validation rules for body, query, and headers. -- [ ] Support custom validation rules and error handling. - -### CLI Tool - -- [ ] Develop a CLI tool for scaffolding and server management. -- [ ] Add commands for generating controllers, middlewares, and modules. -- [ ] Include server start, stop, and monitoring capabilities. -- [ ] Add debugging tools to identify misconfigurations. +- [x] Create a `@Validate` decorator for request validation. +- [x] Implement validation rules for body, query, and headers. +- [x] Support custom validation rules and error handling. ### Global Guards @@ -43,16 +36,15 @@ - [x] Support configurable `ttl` and custom cache stores. - [x] Integrate with `@medishn/qiks` for advanced caching options. -### Event System - -- [x] Enhance the built-in event system for route and application-level events. -- [x] Provide APIs for custom event handling. +### Phase 5: New Features -## Phase 5: Advanced Router Features +#### Error Management -- [ ] Implement request-response lifecycle hooks for extensibility. -- [ ] Introduce grouped routes with shared middleware and guards. -- [ ] Create a powerful and expressive query builder or ORM (optional). +- [ ] Design structured error objects. +- [ ] Enhance error middleware for async errors. +- [ ] Allow user-defined error handlers. +- [ ] Write tests for various error scenarios. +- [ ] Document custom error handling. ## Phase 6: Testing and Documentation