Compatibility issues with latest jQuery 3.5.1

Compatibility issues with latest jQuery 3.5.1

pratikshaspratikshas Posts: 1Questions: 0Answers: 0

WordPress 5.7 is changing from jQuery version 1.12.4 to jQuery 3.5.1!
We are using the data tables js for our table widget. There are few deprecated methods stated by WordPress in datatables.min.js

here is the list of those -
trim() -> https://api.jquery.com/jQuery.trim/#jQuery-trim-str
$.isArray() - https://api.jquery.com/jquery.isarray/
and many more.

Please let us know when you are shipping the compatibility update with jQuery v3.5.1.

Looking forward to the compatibility update.

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    It seems to be happy here. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.

    Cheers,

    Colin

  • skeemerskeemer Posts: 1Questions: 0Answers: 0

    They do still work because they are only deprecated and not removed yet. I noticed that Editor 1.9.5 release notes show that $.isArray() was replaced for the same reason already.

  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin

    Yes, all current releases of DataTables and the extensions are fully compatible with jQuery up to 3.6 (their current release), and we've removed any calls we made to their deprecated methods.

    Allan

This discussion has been closed.