Update version tag in libraries.yml file

Created on 7 March 2024, 11 months ago

An often forgotten nit pik is the version: tag in libraries files which will be placed on the end of the library path to tell browser cache if it is the same or not.

Problem/Motivation

The "version: 8.x" lines in the libraries.yml file make it so the libraries' files get cached per module version, which makes only sense if updated with the module version. Otherwise: This can cause fixed bugs to be unresolved when updating this module separate from a Drupal core update. Sadly there is no version: VERSION for reference to module version, only for core which makes no sense here at all.

Proposed resolution

Remove all "version: 8xx" lines from the libraries.yml files or update them with the module version. Caching these static files should not be needed in all cases whatsoever, but if for some reason this is wanted behavior, then the version should at least be set to something relevant to the library definition instead of a Drupal core version or even worse (like at the moment) to an older module version.

๐Ÿ“Œ Task
Status

Active

Version

4.0

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance dqd London | N.Y.C | Paris | Hamburg | Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024