jQuery 4.1.0 introduces an important update to its AJAX module by adding the `responseURL` field to the jqXHR object. This provides more detailed information about the response source. Additionally, the release supports an alternative `completeCallback` API for transports, offering more flexibility in handling AJAX requests.
In the core module, loops have been refactored to prevent going beyond array bounds, improving stability. A significant change is the deprecation of `getElementsByTagName` and `getElementsByClassName` in favor of `querySelectorAll`, aligning with modern browser APIs and potentially improving performance.
The CSS module received updates to empty the `computeTableStyleTests` probe table when it might be reused, preventing potential issues. Support for XML documents has been improved by using `createElementNS` for proper element creation within XML contexts.
Selector improvements include a workaround for a Safari 27 regex interpreter bug and fixes for the `runescape` regex in `unescapeSelector`. The release also optimizes `jQuery.uniqueSort` for duplicate removal and addresses a ReDoS vulnerability in identifier matching, enhancing security and performance.
Documentation updates include adding TuxCare as a new commercial support vendor and guidelines for machine-generated contributions. Various links and spelling errors in the README have also been corrected. The release also includes numerous new unit tests for features like `jQuery.text`, `.data()` on SVG elements, and AJAX prefilters/transports, increasing test coverage and reliability.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
jQuery 4.1.0 has been released, introducing new features and fixes across various modules. Key updates include adding the `responseURL` field to jqXHR, refactoring core loops, and using `querySelectorAll` instead of `getElementsByTagName/ClassName`.