Releases: fless-lab/node-ts-starter
Releases · fless-lab/node-ts-starter
Core plugins and middleware integration
v1.4.0 - Core Plugins and Middleware Integration
New Features
- Core Plugins Introduced: Added foundational plugins for handling soft deletion, versioning, audit trail, and document history. These plugins are essential for managing the lifecycle and integrity of documents across different scenarios.
- Combined Middleware: Created middleware for combined authentication and user context management to simplify and streamline request handling.
- AsyncLocalStorage Implementation: Introduced the use of AsyncLocalStorage to maintain and manage the user context safely across async operations.
- Enhanced Model Management: Automatically manage
createdBy
,updatedBy
, anddeletedBy
fields for better traceability and auditing.
Improvements
- Improved base repository and service functionalities to support soft/hard deletion based on configuration.
- Enhanced error handling and logging for better diagnostics and debugging.
Fixes
- Improved handling of async operations with user-specific context.
Upgrade Instructions
- Run
npm install
to update dependencies. - Verify that custom models and services align with the new core plugins and middleware structure.
- Review and update project documentation to include information on new plugins and middleware usage.
Projet Structure enhances for a better organization
Full Changelog: v1.3.1...v1.3.3
User Authentication Integrated
CSMODIS v1.2.0 - Enhanced Security, Base Services, and Repositories
CSMODIS v1.2.0 - Enhanced Security, Base Services, and Repositories
New Features and Enhancements:
- Security Enhancements:
- Implemented client authentication middleware to secure all existing routes.
- Added rate limiting to protect against brute force attacks and ensure fair usage.
- Configurable rate limiting settings through environment variables.
- Base Service and Repository Implementation:
- Introduced a Base Service and Base Repository structure for better code organization and reusability.
- Added User Service and User Repository to manage user-related operations and database interactions.
- Content-Security-Policy Improvements:
- Fixed issues with external resource loading by updating Content-Security-Policy settings.
- New Middleware:
- Added validation middleware to ensure request data integrity.
- Implemented brute force protection middleware using
express-brute
.
Bug Fixes:
- Fixed Content-Security-Policy issues for external resources.
- Ensured proper protection of all routes with client authentication.
Other Changes:
- Updated project documentation and README for better clarity and instructions.
- Improved error handling and response messages for unauthorized and too many requests.
- Added new helper functions for time and string manipulations.
We encourage all users to update to this version to benefit from the enhanced security measures, improved project structure, and new features.
Client authentication added
v1.1.0 Client authentication added
Project initialization without any feature
v1.0.0 Initial version with basic setup