Skip to content

Releases: boxcake/TypedUUID

v1.1.0

15 Jan 04:35
af00c32

Choose a tag to compare

[1.1.0] - 2026-01-14

Added

  • __slots__ optimization: TypedUUID instances now use __slots__ for reduced memory footprint and faster attribute access
  • Short encoding: New .short property returns a compact base62-encoded format (user_7n42DGM5Tflk9n8mt7Fhc7)
  • Short decoding: New from_short() class method to parse short-format strings back to TypedUUID instances
  • Pickle support: Full pickle serialization/deserialization support via __reduce__, __getstate__, and __setstate__
  • Auto-parsing: New TypedUUID.parse() method automatically detects format and returns the correct registered subclass
  • ROADMAP.md: Documentation for planned features (UUID7, timestamp extraction, namespace UUIDs)

Changed

  • Dynamically created TypedUUID subclasses now include __slots__ = () to maintain memory efficiency
  • Improved thread safety with threading.Lock for class registry operations

Fixed

  • Import error in __init__.py (add_pydantic_support renamed to add_pydantic_methods)
  • UUID regex pattern now case-insensitive for proper UUID validation
  • __eq__ and __ne__ methods now use type(self).from_string() instead of base class method
  • FastAPI adapter Type import moved outside try block to prevent NameError
  • Removed stray logger reference from another project in SQLAlchemy adapter