Skip to content

Releases: imigueldiaz/mongodb-labeler

v0.4.8

06 Dec 07:56
557021e

Choose a tag to compare

v0.4.8 Pre-release
Pre-release

[0.4.8] - 2024-12-06

Changed

  • Modified CreateLabelData type to properly handle version validation at runtime
  • Improved version validation in createLabel method 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 cts property in mongodb.ts
  • Improved error handling in saveLabel method

v0.4.7

02 Dec 14:28
6dea2af

Choose a tag to compare

v0.4.7 Pre-release
Pre-release

[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

01 Dec 10:41
1c0d9fe

Choose a tag to compare

v0.4.4 Pre-release
Pre-release

[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

01 Dec 10:21
6b84cc2

Choose a tag to compare

v0.4.3 Pre-release
Pre-release

[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

01 Dec 08:45
c040a4f

Choose a tag to compare

v0.4.2 Pre-release
Pre-release

[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

01 Dec 08:29
da5c5bd

Choose a tag to compare

v0.4.1 Pre-release
Pre-release

[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

30 Nov 17:57
b8be066

Choose a tag to compare

v0.4.0 Pre-release
Pre-release

[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

29 Nov 12:14
0a33bd9

Choose a tag to compare

v0.3.3 Pre-release
Pre-release

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

27 Nov 09:34
e5d2383

Choose a tag to compare

v0.2.9 Pre-release
Pre-release

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

Compare full changes

v0.2.7

26 Nov 12:37
713c124

Choose a tag to compare

v0.2.7 Pre-release
Pre-release

Release v0.2.7

Bug Fixes

  • Fixed test assertion in LabelerServer.test.ts to 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.