Support version detection of core libraries when implemented through drupal_process_attached (drupal_add_library)

Created on 11 October 2012, over 12 years ago
Updated 21 July 2023, almost 2 years ago

This issue is a followup to #1787222: [meta] Strategy for updating vendor JS libraries within a major stable version β†’

The major concepts of version detection are addressed in the Libraries API contrib module and described here in detail:

http://drupal.org/node/1342220#libraries-detection

The resolution bullet points from #1787222 that require this followup are:

  1. Calls to drupal_add_library() don't specify version, just the library. If you want a specific version, register your own custom library in hook_library_info(), list the dependency that JS code has, and then call drupal_add_library() of that custom library.
  2. When Drupal renders the scripts for the page (e.g., within drupal_get_js() or similar), it looks at the entire list of libraries added to the page, and runs some algorithm to determine which version of each library to provide: requiring compatibility, and among options that are all compatible, choosing the maximum. Details of this algorithm TBD.

This issue addresses the TBD of point #2.

πŸ“Œ Task
Status

Postponed: needs info

Version

9.5

Component
JavascriptΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jessebeach

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    The ticket in #2 was marked won't fix. Is this the same?

  • Status changed to Closed: works as designed 27 days ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    Nearly two years later and there has been no response that this needs to be remain open.

    If there is work to do here, then either re-open the issue and add a comment or open a new issue and reference this one.

Production build 0.71.5 2024