tranxpress
Version:
A smart async wrapper for Express with MongoDB transaction support.
36 lines (24 loc) • 1.18 kB
Markdown
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [1.1.0](https://github.com/ouranos-technologies-pvt-ltd/tranxpress/compare/v1.0.1...v1.1.0) (2025-05-12)
### ✨ Added
- ErrorResponse Class
- SuccessResponse Class
## [1.0.1](https://github.com/ouranos-technologies-pvt-ltd/tranxpress/compare/v1.0.0...v1.0.1) (2025-04-21)
### 🛠️ Fixed
- Handle Mongoose NetworkError properly
## [1.0.0] - 2025-04-20
### ✨ Added
- Core `asyncHandler` utility with optional Mongoose transaction support.
- `MongoHandledError` class for wrapping common MongoDB errors like:
- `ValidationError`, `CastError`, `DuplicateKeyError`, `MongoServerError`
- Support for deeply nested custom error handlers.
- Automatic attachment of Mongoose session to `req.session`.
- Fully typed TypeScript support for handlers, sessions, and options.
- Dev-friendly logging for all error layers and abort transaction issues.
### 🛠️ Changed
- N/A
### 🧹 Removed
- N/A
---
> Stay tuned for upcoming enhancements like localization and built-in test mocks!