- Merge request !11Issue #3305831: JavaScript broken when using cropper.js v1.5.12 β (Open) created by robphillips
The patch (https://git.drupalcode.org/project/image_widget_crop/-/merge_requests/11.diff) works for us. Thank you very much!
- π³π±Netherlands timohuisman Leiden, Netherlands
This patch contains a snapshot of MR !11 so it can be safely used with composer-patches.
- π©πͺGermany hosterholz
version: VERSION
uses the core's version, not the modules version. It should be omitted, if it is not updated everytime a change to the library's JS or CSS is made.
See the note on Adding assets (CSS, JS) to a Drupal module via *.libraries.yml β :Starting from Drupal 10.1.2, the version information within a library definition plays a critical role in generating a unique hash for aggregated files. Consequently, it is imperative that the "version" in a library definition is updated whenever a referenced CSS/JS file undergoes changes.
Alternatively, if the version is omitted, the prior behavior will apply, where the content of referenced CSS/JS files is utilized in the hash.
Incorrect usage of version information could lead to browser and edge cache invalidation issues.
See this update β on the related changelog β .
I suggest removing the version property entirely from
cropper.integration
. It is less prone to errors if someone forgets to update the version.