HeadlinesBriefing favicon HeadlinesBriefing.com

jQuery 4.0.0 Released with Major Updates

Hacker News: Front Page •
×

jQuery, a JavaScript library that has been a cornerstone of web development for two decades, has released its latest version, jQuery 4.0.0. This update marks a significant milestone, as it is the first major release in almost 10 years. The new version includes several improvements and modernizations, making it more efficient and compatible with current web standards.

The update drops support for older browsers, including Internet Explorer 10 and earlier, as well as Edge Legacy and older versions of iOS and Firefox. This decision aligns with the industry trend of phasing out support for outdated technologies. Developers using these browsers are advised to stick with jQuery 3.x to ensure compatibility.

jQuery 4.0.0 introduces support for Trusted Types and Content Security Policy (CSP), enhancing security for web applications. Additionally, the library has been migrated to ES modules, making it compatible with modern build tools and workflows. This change allows developers to use ES modules directly, improving integration with contemporary development environments.

The release also removes several deprecated APIs and internal-only methods, streamlining the library and reducing its size. This cleanup, combined with the removal of legacy code, results in a more efficient and modern jQuery that reflects the evolution of web development practices.