Skip to content

Releases: infinia-yzl/image-set

v2.1.0

27 Jul 07:52
Compare
Choose a tag to compare

Apply the patch to upgrade from v2.0.1 (or older) to v2.1.0

Instructions to upgrade

If you've previously created a repository using this template, you can upgrade to the latest version (2.1.0) by applying a patch. Follow these steps:

  1. Download the upgrade-to-v2.1.0.patch file from the latest release. I recommend including the patch file in your repo under a new folder ./patches/ to keep track of the applied patches.

  2. In your project directory, apply the patch:

    git apply --reject --whitespace=fix upgrade-to-v2.1.0.patch
    

    Or if you're using IntelliJ IDEA, you can apply the patch using the UI / action:
    image

  3. If there are any rejected hunks, you'll see .rej files. Review these files to manually apply any changes that couldn't be applied automatically.

  4. After applying the patch, run the following command to ensure everything is working correctly:

    npm run process-images
    

    This will also perform any necessary migrations for your existing metadata.

  5. Review the changes, run your tests, and commit the updates:

    git add .
    git commit -m "Upgrade to v2_1_0"
    

Note: This patch updates the internal structure of how image metadata is stored and processed. While it maintains backwards compatibility, it's recommended to test your specific use case after applying the update.

Changelog

Added

  • Automatic migration feature for updating metadata to the new structure
  • New ensureTagArray function in process-images.js for consistent tag handling

Changed

  • Updated metadata structure: tags are now stored as an array of strings instead of objects
  • Modified getImageMetadata function to return full tag objects, maintaining backwards compatibility
  • Updated getImageMetadataByPath to use the new getImageMetadata function
  • Refactored promptForTags function to work with tag names instead of full tag objects
  • Updated 'view' action in CLI to display tags according to the new structure

Fixed

  • Resolved inconsistencies in tag handling across different functions
  • Updated test suite to align with the new metadata structure

Development

  • Improved code consistency and reduced redundancy in metadata processing