Skip to content

Latest commit

 

History

History
110 lines (81 loc) · 3.86 KB

CHANGELOG.md

File metadata and controls

110 lines (81 loc) · 3.86 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[0.1.1] - 2025-02-20

Added

  • Improved path handling in getMedia

    • Now directly retrieves original media file paths for images and videos.
    • Uses PHAssetResource for more accurate file access on iOS.
  • Thumbnail generation optimizations

    • Web version uses OffscreenCanvas for faster processing.
  • Refactored getMedia structure

    • Introduced includePath instead of path for clarity.
    • Added better error handling when media retrieval fails.
  • Refactored code structure

    • Moved conversion logic into separate helper functions.
    • Improved maintainability and readability.

Fixed

  • Media retrieval issues
    • Fixed an issue where getMedia would sometimes return stale data.
    • Ensured video paths are correctly fetched for playback.

Breaking Changes

  • Renamed generatePath to includePath in getMedia
    • Update your API calls accordingly.

[0.1.0] - 2025-02-01

Added

  • Improved MIME type detection for getMediaList() and getMedia()

  • Now properly returns MIME types based on UTI or file extension fallback

  • More accurate media type detection for images and videos

  • Example with media detail view

  • Media dialog in the example project (example)

  • Media items are now displayed in an Ionic Modal/Dialog

  • Added support for Swipe-to-Close-Feature for improved UX

  • Enhanced media detail presentation

  • New Enums for better API structure:

    • MediaSubtype → Defines special media types (motion_photo, panorama, hdr, screenshot, etc.)
    • MediaFilter → Allows clear filtering (all, panorama, hdr, screenshot)

Changed

  • Optimized image size calculation to prevent redundant computations

Fixed

  • Improvements in getMedia and getMediaList
    • Ensured asynchronous processing with DispatchGroup to guarantee complete data retrieval

[0.0.5] - 2025-01-30

Changed

  • Improved example project with better media handling for Web and native platforms.
  • Refined platform-specific logic to enhance performance.

[0.0.4] - 2025-01-30

Added

  • Implemented photo selection in Web using showDirectoryPicker.
  • Web support now properly reads images and retrieves metadata.

Fixed

  • iOS date format now returns a correct timestamp in milliseconds.
  • iOS width & height calculation now returns the correct original dimensions instead of the thumbnail size.

Improved

  • General stability and performance improvements for media retrieval.

[0.0.3] - 2025-01-30

Added

  • 🚀 Introduced a new Ionic/Angular example project for easier plugin usage.

[0.0.2] - 2025-01-29

Added

  • Implemented getMedias function for iOS.
  • Added support for filtering media by type (image, video, all).
  • Added sorting options (newest, oldest).
  • Added optional flags for additional media details (includeDetails, includeBaseColor).
  • Implemented base color extraction for images.
  • Implemented permission handling (checkPermissions, requestPermissions).

Fixed

  • Fixed TypeScript issues related to createdAt sorting in Web implementation.
  • Fixed missing function references for dominant color extraction.
  • Improved compatibility with older iOS versions.

Changed

  • Refactored iOS implementation to handle PHPhotoLibrary authorization correctly.
  • Updated rollup configuration to properly generate ESM, CJS, and IIFE builds.

[0.0.1] - 2025-01-28

Added

  • Initial implementation of getMediaFiles()
  • Basic Capacitor plugin setup for iOS & Android
  • README, LICENSE, and project structure
  • First functional beta release
  • Implemented echo() function
  • Basic Capacitor plugin structure