- Status changed to Needs review
almost 2 years ago 3:25pm 18 January 2023 - 🇫🇷France Chris64 France
Here a patch for the README.txt file with explanations about jQuery DataTables plugin library update to version 1.10.x with composer. For use with Drupal 10 the patch from 3332040 📌 Drupal core has changed jQuery once() [Drupal 10 compatibility] Fixed is assumed applied.
- 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
Again: Awesome work and clarification on the order of things @Chris64, Great work! +1 will review & commit asap.
- 🇫🇷France Chris64 France
New release with this patch: see https://www.drupal.org/project/datatables/issues/3332040 📌 Drupal core has changed jQuery once() [Drupal 10 compatibility] Fixed .
- 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
There is a chance that DataTables moves gradually away from jQuery or runs more and more parallel projects. It was a long road and long discussion with reasonable and worth to read comments of Allen regarding its long holding use of jQuery until end of 2022. But it looks like there is a mind change. Edited the title regarding this. Back read here if you are interested in his well layout thoughts why still jQuery for so long:
https://datatables.net/forums/discussion/51702/non-jquery-version-of-dat...
We should follow this (I do for years) since Drupal dropped jQuery, Bootstrap dropped jQuery and it more and more becomes a unnecessary weight in dependencies. I am free of opinionated positions to jQuery. I think its not smart to follow each horse immediately. But over the years jQuery became more and more incompatible with other (newer) developments in JS. And additionally: it was different when many depend on the same. But when DataTables and 1or 2 others are the only ones, then it becomes a shift in direction of unbalanced ballast. So it is not a trend following but a final reasonably conclusion.
Read about examples of DataTables without jQuery in progress here for example: https://datatables.net/examples/non_jquery/init.html
And your thoughts are welcome here. Its a META.
- 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
Good news. Drupal will keep jQuery in core, at least in 10 and 11 so we are not in a hurry here ;-)