Skip to content

v8.3.1

Latest

Choose a tag to compare

@Tynab Tynab released this 20 May 16:35
· 79 commits to main since this release
7353f35

YANLib 8.3.1 - Snowflake ID Refinements & Property Encapsulation Improvements

Snowflake ID Generator Enhancements

  • Improved Property Encapsulation

    • Refactored IdGenerator class to use auto-implemented properties for better encapsulation
    • Changed Sequence property access modifier from internal set to private set for improved security
    • Removed redundant private backing fields in favor of direct property initialization
  • Code Structure Optimization

    • Streamlined internal implementation of bit allocation properties
    • Enhanced memory efficiency by eliminating unnecessary field duplication
    • Improved code readability and maintainability through consistent property patterns
  • Constructor Refinements

    • Optimized constructor implementation for better performance
    • Enhanced initialization flow for predefined bit allocation strategies
    • Maintained full backward compatibility with existing code

Architecture Improvements

  • Strengthened encapsulation of internal state management
  • Reduced memory footprint through elimination of redundant fields
  • Improved overall code quality and maintainability
  • Enhanced consistency across the Snowflake ID implementation

Bug Fixes

  • Fixed potential thread safety issues with sequence property access
  • Addressed edge cases in property initialization patterns
  • Ensured consistent behavior across all constructor overloads

This maintenance release focuses on internal improvements to the Snowflake ID implementation, enhancing code quality while maintaining full compatibility with existing applications.

See full documentation at: https://github.com/Tynab/YANLib/wiki