Closed (fixed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2022 at 08:12 UTC
Updated:
30 Sep 2022 at 09:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lauriiiComment #3
catchWhy not move this to tour module itself?
Comment #4
lauriiiCore has always been responsible for providing library definitions for 3rd party dependencies. I have no idea why that is so but it's just how it's always been. IMO we could move the Shepherd.js and CKEditor 5 library definitions to the respective modules but that would require some updates to the vendor-update script since it can only edit the core.libraries.yml file at the moment.
Comment #5
catchOK that's a good reason not to do it in this issue, we should maybe think about a general follow-up to revisit this if we're going to have lots of internal libraries in core.
Comment #6
nod_internal.shepherdno?Comment #7
lauriiiSeems like this snafu was only in the 9.5.x patch so the 10.0.x patch from #2 is still good.
Comment #8
lauriiiComment #9
nod_D10 patch is good to go, 9.5 still has a easy fix to make
This should be
otherwise the library version won't be updated, which is the point of this entry to the vendor-update file :)
Comment #10
lauriiiI guess that was broken before this then given that the library key was not defined there before. 10.0.x patch from #2 is still good.
Comment #11
lauriiiRerolled D10 patch now that #3308783: Update shepherd.js to 10.0.1 has landed.
Comment #12
nod_it was working because the
folderkey was set correctly (see this line in vendor-update.js:const libraryName = library || folder || pack;)Comment #13
lauriiiAh I see! That explains! Thank you @nod_!
Comment #14
lauriiiComment #15
lauriiiComment #18
catchI double checked contrib, the only references are in install profiles (would be nice if we could filter those out on gitlab) https://git.drupalcode.org/search?group_id=2&scope=blobs&search=core%2Fs...
Given that, while this is a bit close to the wire, I don't think it's going to affect anyone and except for making updates easier.
Committed/pushed to 10.1.x, cherry-picked to 10.0.x and 9.5.x, thanks!
Comment #20
quietone commentedPublished the CR.