jQuery 4.1.0
jQuery 4.1.0

原始链接: https://github.com/jquery/jquery/releases/tag/4.1.0

jQuery 4.1.0 和 3.8.0 已发布,标志着“传递火炬”的过渡。更新包括 Ajax 改进,例如向 jqXHR 添加 responseURL 和传输回调支持;Core 重构以及选择器/DOM 变更;CSS 和 XML 文档修复;文档和 README 更新,包括 TuxCare 商业支持和版本指导;针对 Safari、ReDoS、转义和性能的选择器修复;以及更广泛的测试覆盖。它还包括兼容性调整和序列化/选择器行为更新。总体而言,此次发布专注于稳定性、安全性、浏览器兼容性和可维护性,同时继续支持当前的 jQuery 版本。

一篇 Hacker News 帖子宣布 jQuery 4.1.0 发布。评论者对 jQuery 仍被维护且广泛使用感到惊讶,援引约 63% 的网站和大型企业为例。一些人认为现代原生 JavaScript 已降低对 jQuery 的需求,而另一些人仍欣赏其在某些模式下的简洁可读风格。该讨论还涉及旧浏览器历史、jQuery UI 的维护模式及过去的重写问题,以及对操作空选集时更严格行为的期望。还有关于 AI 生成旧技术和 jQuery 在许多主要服务宕机时仍然存活的玩笑。总体而言,尽管存在现代替代方案,jQuery 仍被视为一个仍然相关的遗留工具。
相关文章

原文

https://blog.jquery.com/2026/11/17/jquery-4-1-0-and-3-8-0-released-passing-the-torch/

Ajax

  • Add the responseURL field to jqXHR (#4339, 5691e03a)
  • Support an alternative completeCallback API for transports (a05c3d73)

Core

  • Refactor loops to avoid going behind array bounds (5f8ed054)
  • Drop getElementsBy{Tag,Class}Name in favor of querySelectorAll (#3642, 53a2bcf9)

CSS

  • Empty the computeTableStyleTests probe table when it might be reused (#5932, f37226f0)
  • Use createElementNS to support XML documents (#4730, dcb31ae8)

Data

Docs

  • Add a new commercial support vendor: TuxCare (b75c1fef)
  • Fix spelling of XMLHttpRequest in README (#5903) (71c0dd14)
  • Add guidelines for machine-generated contributions (51eb576c)
  • Update the jQuery NES HeroDevs link in README (#5853) (dd7b28f4)
  • Update active version table (fef45254)
  • update README with 4.0 release (#5781, 5bffcc1a)

Selector

  • Work around a Safari 27 regex interepreter bug (b557a8c4)
  • Fix the runescape regex in unescapeSelector (e77f87c8)
  • Decode invalid escape code points to U+FFFD (#5845) (7e1efd77)
  • Optimize jQuery.uniqueSort duplicate removal (35789e76)
  • Be more strict in quick selection paths (a104324d)
  • Fix ReDoS in identifier matching (d41cf7dd)
  • Use loose document comparisons everywhere (74439453)

Serialize

Tests

  • Expect reliableTrDimensions to fail in Chrome (feaa9fcd)
  • Make the "jQuery.parseXML - error reporting" test less strict (5ed303d0)
  • Accept old & new :enabled/:disabled option/optgroup semantics (99f32901)
  • Add tests for jQuery.text (3818952f)
  • Add unit tests for callback-only animation signatures (#1738, ac837496)
  • Re-enable the AJAX binary data tests in IE (882be391)
  • Add jQuery.ajaxPrefilter & jQuery.ajaxTransport tests (0872b898)
  • Add tests for .data() on SVG elements (d1ff507a)
  • Increase test coverage of the serialize module (d97d76f1)
联系我们 contact @ memedata.com