Problem/Motivation

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.

Steps to reproduce

Proposed resolution

Remove the version number here: https://git.drupalcode.org/project/environment_indicator/-/blob/4.x/envi...

Remaining tasks

Create a merge request to remove the version key.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

trackleft2 created an issue. See original summary.

trackleft2’s picture

Status: Active » Needs review
hitchshock’s picture

Status: Needs review » Reviewed & tested by the community

+1
Files of the library have been updated several times, but the version hasn't been updated for a long time.
So, please, remove the library version or don't forget to update it every time the library files are updated.

I like the solution to remove the version.
So, RTBC.

  • trackleft2 committed 69b76b20 on 4.x
    Issue #3482961 by trackleft2, hitchshock: Remove version key from...
trackleft2’s picture

Status: Reviewed & tested by the community » Fixed
trackleft2’s picture

Granting credit

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.