jQuery 4.1.0 github.com · 304 points · 159 comments · HN thread TL;DR jQuery 4.1...

@best30

jQuery 4.1.0 github.com · 304 points · 159 comments · HN thread

TL;DR jQuery 4.1.0 was released together with jQuery 3.8.0, which the maintainers frame as a send-off rather than a comeback. The GitHub release notes list changes across Ajax (new responseURL field on jqXHR), core, selectors (including a ReDoS fix and a Safari 27 regex workaround), CSS, tests and docs, with many small cleanups. The Hacker News thread, scoring 304 points with 159 comments, is mostly nostalgia for jQuery plus debate over whether it is still relevant.

  • Adds a responseURL field to jqXHR and an alternative completeCallback API for transports.
  • Replaces getElementsByTagName/getElementsByClassName with querySelectorAll and switches some DOM creation to createElementNS to support XML documents.
  • Fixes a ReDoS vulnerability in identifier matching and tightens quick selection paths in the selector engine.
  • Works around a Safari 27 regex interpreter bug and optimizes jQuery.uniqueSort duplicate removal.
  • Adds guidelines for machine-generated contributions and a new commercial support vendor (TuxCare) in the docs.
  • Released alongside jQuery 3.8.0, which keeps support for old browsers such as IE 9-10 and Android 4.0+.

Discussion The thread is mostly reminiscence. Many commenters recall jQuery's role in the era of inconsistent browsers and IE6/IE7, and some praise its chaining API and documentation. A second strand debates whether jQuery is still relevant: some point to its wide usage on the web and to legacy codebases, while others argue that modern DOM APIs, AI-written vanilla JS and smaller libraries have made it unnecessary. The mood is warm and nostalgic, with a fair amount of friendly pushback.

  • Nostalgia and gratitude for jQuery's past impact (many): Many commenters recall jQuery as essential for cross-browser work in the 2000s and credit it with making JavaScript accessible. They say it deserves thanks even if its role has shrunk.
  • Still widely used, so still relevant (many): Commenters cite its share of websites, WordPress bundling and large legacy sites such as Microsoft.com and Yahoo. They argue that its ubiquity keeps it relevant regardless of trends.
  • Vanilla JS and modern APIs have replaced it (many): Several argue that querySelector, classList, fetch and native features cover most needs. They prefer vanilla JS or small helpers, and some say AI-written code makes libraries less necessary.
  • Chaining and collections still make it pleasant (some): Some defend jQuery's concise API, fluent method chaining and collection handling, noting that NodeList lacks Array methods. Others reply that small wrappers or pipeline operators achieve similar results.
  • Still useful for legacy and low-end browsers (a few): A few point out that old browsers, legacy enterprise systems and users on old devices still need jQuery's compatibility. Others counter that polyfills would be lighter for those cases.
  • Lightweight alternatives like HTMX or Datastar fit better (a few): Some suggest modern small libraries for progressive enhancement, such as HTMX, Alpine or Datastar, as successors for the minor-interactivity niche jQuery once filled.

Links from the comments

#jQuery #JavaScript #webDevelopment #frontend #legacyCode #release