Install
Works with Drupal: ^10.4 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
38.55 KB
MD5: e3e28dd5cbaf71a09dd7094f0fa7d22f
SHA-1: 318def2252bb7e165ac8be1caed3cc47f2ab5ff6
SHA-256: e1c11693a339f1694d084c6e2c290b5b2a90afbd745e6a75e1fbe31d2d7727ea
Download zip
57.42 KB
MD5: 441c0b628bfb53570da62b28ae77365a
SHA-1: 8b01eeba9481515ec84607c01cae1749f7a91274
SHA-256: e439565fbd136e29d8b231b2c9681e37a15c0266a7690c3c58368e9b3a080aac
Release notes
Overview
The 2.0.x branch introduces a major architectural overhaul. Moving away from programmatic image layouts, this branch now leverages Drupal core image styles alongside the "Text overlay" effect from the Image Effects module and Tokens. This makes dynamic image building significantly easier to set up, customize, and use.
Along with this structural shift, this release includes several key enhancements to caching, UI/UX improvements in the settings form, and the introduction of formal test coverage and continuous integration (CI) workflows.
✨ New Features & Enhancements
- File Caching Options: Added new and improved file caching options to give more control over how generated images are stored and served. (Issue #3610083)
- Settings Form UX: Added a helpful UI prompt reminding administrators to save their configuration after an AJAX update occurs in the SettingsForm.
🐛 Bug Fixes
- Cache Key Integrity: Simplified cache key construction in GsmiGenerator by removing null values, and enhanced the overall caching mechanism by including the node change time in the cache key so updates correctly bust the cache.
- Fallback Image Handling: Updated fallback image handling in the SettingsForm to improve the file upload process and related validation.
- Error Handling: Improved general error handling in GsmiGenerator and updated various method signatures for better stability.
- Routing Corrections: Fixed and corrected the routing paths defined in gsmi.routing.yml specifically for media configuration.
- Dependency Consistency: Updated the drupal/token version constraint within composer.json to ensure ecosystem consistency.
- AJAX Previews: Refactored AJAX preview handling within the SettingsForm and introduced a dedicated helper method to handle scenarios where no preview message is available.
⚙️ Maintenance, Refactoring & Testing
- Test Coverage: Introduced formal test coverage to the module to ensure long-term stability. (Issue #3610062)
- Continuous Integration (CI): Added Drupal CI validation workflows and configured them to disallow build failures. (Issue #3610059)
- Code Refactoring: Refactored and updated generator service variable names inside the GsmiController for cleaner, more readable code.
- Automated Fixes: Incorporated standard fixes and maintenance updates processed by the Automated Project Update Bot.
💡 Upgrade Notes
- New Dependencies: Because this version relies heavily on the Image Effects module and Tokens, please ensure these modules are installed and enabled before upgrading from 1.0.x.
- Custom programmatic implementations of image layouts from 1.0.x may need to be recreated using the new Core Image Styles + Text Overlay configuration workflow.