Releases: imigueldiaz/mongodb-labeler
Releases · imigueldiaz/mongodb-labeler
v0.4.8
[0.4.8] - 2024-12-06
Changed
- Modified
CreateLabelDatatype to properly handle version validation at runtime - Improved version validation in
createLabelmethod to better handle invalid versions - Updated type definitions to maintain type safety while allowing proper runtime checks
Fixed
- Fixed ESLint warnings related to unnecessary conditions in version validation
- Fixed handling of optional
ctsproperty inmongodb.ts - Improved error handling in
saveLabelmethod
v0.4.7
[0.4.7] - 2024-12-02
Added
- Added export for errors/index.js module for better error handling
- Added Vitest support for testing, replacing Jest
- Added MongoDB 6.0 support
- Added basic usage examples in README for label creation and querying
Changed
- Improved MongoDB date handling in label operations:
- Storing dates as ISO strings for better compatibility
- Enhanced filtering of expired labels using MongoDB queries
- Updated LabelerServer with improved error handling
- Migrated test framework from Jest to Vitest:
- Removed Jest configuration files
- Added Vitest configuration
- Updated test files for Vitest compatibility
- Enhanced ESLint configuration to properly ignore coverage files
Fixed
- Fixed expired label filtering in MongoDB queries
- Fixed date comparison issues in label operations
- Fixed test cases to properly handle expired labels
v0.4.4
[0.4.4] - 2024-12-01
Changed
- Improved package exports configuration with better module resolution
- Simplified index.ts exports using
export *for utility modules - Added CHANGELOG.md to package files
v0.4.3
[0.4.3] - 2024-12-01
Changed
- Enhanced package exports configuration to better support TypeScript types
- Improved module resolution for both ESM and CommonJS environments
- Updated package.json exports field with explicit type declarations
v0.4.2
[0.4.2] - 2024-03-19
Fixed
- Fixed MongoDB client initialization to properly handle database and collection names
- Improved error handling in database connection process
- Simplified MongoDB client setup in LabelerServer
v0.4.1
[0.4.1] - 2024-03-19
Fixed
- Enhanced error handling in MongoDB client operations
- Improved error message consistency in _getNextId method
- Fixed MongoDB collection mocks in tests for better reliability
- Optimized error propagation in saveLabel method
- Removed unused variables and improved test clarity
v0.4.0
[0.4.0] - 2024-03-19
Changed
- Migrated test framework from Jest to Vitest for improved performance and developer experience
- Enhanced test execution and coverage workflow configuration
- Optimized test configuration with improved timeout settings
- Updated test script in coverage workflow with better handling of completion
- Improved CI/CD pipeline configuration and performance
v0.3.3
Changelog
[0.3.3] - 2024-03-19
Fixed
- Fixed hanging tests in CI environment
- Optimized Jest configuration for CI environments
- Improved MongoDB Memory Server handling in tests
Changed
- Updated GitHub Actions workflow configuration
- Modified timeout and log management in CI
- Added timeout control to prevent infinite test execution
v0.2.9
Release v0.2.9
What's Changed
- Enhanced CID and DID validation logic with improved validation rules
- Removed unnecessary code and comments for better maintainability
Technical Details
- Commit d615eef: Version bump to 0.2.8
- Commit 8d13acd: Updated validation logic for CID and DID fields
Contributors
- Ignacio de Miguel Díaz (@imigueldiaz)
v0.2.7
Release v0.2.7
Bug Fixes
- Fixed test assertion in
LabelerServer.test.tsto correctly match the error message thrown when saving negated labels fails during deletion- Updated expected error message from "Failed to delete label" to "Failed to save negated label to database"
- This ensures test expectations align with the actual error handling behavior in the code
Test Coverage
Current coverage metrics:
- Statements: 89.49%
- Branches: 67.34%
- Functions: 88.88%
- Lines: 89.90%
This patch release focuses on maintaining test accuracy and reliability by aligning test assertions with the actual error handling behavior in the codebase.