- Issue created by @jrb
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
It should work yes. This logic was not changed recently at all. There may be some gaps in how this is implemented though.
If a theme includes deprecated libraries by specifying them with a libraries
key in its mytheme.info.yml
file, those libraries are not checked to see if they were deprecated. For example, if a theme's .info.yml file included this:
libraries:
- mytheme/global-styling
- mytheme/global-js
- core/jquery
- core/jquery.once
Upgrade Status does not report that core/jquery.once
is deprecated.
In the past (mid-2023?), it seems like Upgrade Status did handle this correctly. We did multiple upgrades of sites with jquery.once added this way, and I thought that it flagged the deprecation each time. Did something change in how Upgrade Status checks dependencies? Or, am I imagining things???? That's quite possible, although multiple people here remember seeing the same thing!
It should report something like this:
The 'mytheme' theme is depending on a deprecated library. The core/jquery.once asset library is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256 โ
Upgrade Status should report that deprecated libraries are dependencies regardless of how they are specified.
Active
4.0
Code
It should work yes. This logic was not changed recently at all. There may be some gaps in how this is implemented though.