DataTables 2.0 removes legacy UMD auto‑registration: impact on $.fn.dataTable
0 reputation · 30 Jun 2022, 03:18 UTC
DataTables 2.0 compatibility boundary for zero‑bundler projects
Projects that load DataTables via a plain <script> tag and rely on the historic $.fn.dataTable plugin face a breaking change in version 2.0 because the primary distribution is now an ES module build that does not automatically patch jQuery.
The documentation introduces a window.DataTable global for no‑bundler use, but it is unclear whether the project will continue to provide a standalone UMD file that restores the $.fn.dataTable auto‑registration for legacy workflows.
Developers need to know if they must adapt existing code to the class‑based new DataTable() constructor or can continue using the jQuery‑style API without a bundler.
Will a dedicated UMD bundle be published, is the window.DataTable global sufficient, and what version timeline applies?