Skip to content

v0.3.0: Media Item Event Support

Latest

Choose a tag to compare

@harperreed harperreed released this 23 Oct 19:43
c2de52a

✨ Features

Typed Media Item Event Support

  • Added MediaItemEvent type with strongly-typed fields:
    • action: .added, .updated, .deleted, or .played
    • itemId: Optional item identifier
    • mediaType: .track, .album, .artist, .playlist, or .unknown
    • data: Full event data dictionary
  • New mediaItemUpdates publisher on EventPublisher
  • Comprehensive test coverage for all media item event scenarios

🐛 Fixes

  • Resolved SwiftFormat numeric literal formatting issues
  • Refactored EventPublisher.publish() to meet SwiftLint function length requirements
  • Improved code organization with dedicated event routing methods

📝 Changes

  • Extracted event routing logic into private helper methods for better maintainability
  • All CI checks passing (SwiftFormat, SwiftLint, 76 unit tests)

🔗 Full Changelog

v0.2.1...v0.3.0


🤖 Generated with Claude Code