Skip to content

Core plugins and middleware integration

Latest
Compare
Choose a tag to compare
@fless-lab fless-lab released this 03 Sep 06:59
· 4 commits to master since this release
020ff65

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, and deletedBy 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.