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

Created on 11 October 2012, about 12 years ago
Updated 21 July 2023, over 1 year 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 3 days 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.

Production build 0.71.5 2024