jQuery released two versions in a single day, a handoff the team dubbed "Passing the Torch." Version 4.1.0 is the first minor release of the modern 4.x line, while 3.8.0 acts as a final send-off that ends feature work on 3.x and leaves that branch in critical-only maintenance. Both branches picked up the same urgent security fixes, including a ReDoS patch in the selector engine, but 4.1.0 also brings responseURL, a migration to querySelectorAll throughout, and a faster uniqueSort. Despite the farewell framing, jQuery stays dominant with roughly 18.1 million weekly npm downloads, and both versions are now live on the CDN and npm.
jQuery ships 4.1.0 and 3.8.0 together, ends feature work on 3.x
A paired release called "Passing the Torch" puts the 3.x branch into critical-only maintenance while 4.x moves forward.
jQuery made a deliberate call today. It shipped two versions at once, and it wants you to know exactly what each one means. jQuery 4.1.0 is the first minor release of the modern 4.x line, out since January. 3.8.0 is a farewell. It caps a 3.x branch that has been backing a huge chunk of the web for twenty years.
The blog post is titled "Passing the Torch." Timmy Willison, jQuery's core lead, frames the split cleanly: 4.x is the future. 3.x is maintenance-only. The team's framing is blunt. They call 3.8.0 "a send-off, not a comeback," built to clear fixes that have been stuck on the 3.x-stable branch for years.
It's live today. The CDN has both, npm has both, and third-party hosts catch up shortly. Here's the catch. 3.x isn't dead, but it isn't growing either. From here it gets security patches and critical fixes, nothing else. 2.x and 1.x were already retired, last released back in 2016.
What actually shipped
The interesting part is that both branches got the same urgent fixes, so it matters less which one you run.
A ReDoS hole in the selector engine is closed. A crafted selector with a long run of hex escapes could hang a browser tab or a server-side render. jQuery tightened its identifier regex to match the CSS spec, which not only closes the hole but nudges it toward compliance. This is a genuine security win. Both branches got it the same day.
AJAX transports get a fresh callback shape. Instead of the old positional completeCallback(status, statusText, responses, headers), transports can now pass a single object. It's forward-compatible, and 4.1.0 already leans on it.
In 4.1.0 alone, the Ajax layer adds responseURL to jqXHR, mirroring the existing response properties. It only populates when the transport can report it, so no IE 11 and no script or JSONP routes.
The bigger change hides in the core. jQuery has quietly dropped getElementsByTagName and getElementsByClassName, using querySelectorAll throughout. The payoff is a static node list instead of a live one that had to be snapshotted, plus fixes for several long-standing matching bugs.
There's a speed bump too. uniqueSort was rewritten with a single-pass two-pointer compaction, taking duplicate removal from O(N²) down to O(N) with constant space. Behavior's the same. The duplicates just vanish faster.
Keep in mind that 3.8.0 has its own small touches, including hidden="until-found" support and formal deprecations for internal-only methods like push, sort, and splice on the prototype. Those deprecations are the point. They let the jQuery Migrate plugin warn you before you upgrade.
The numbers behind the library
For a library being "passed the torch," the adoption numbers are stubborn. 4.0.0's npm listing pulls roughly 18.1 million weekly downloads across nearly 22,000 dependent packages. That's not fading. It's one of the most distributed packages out there.
The lifecycle math is plain on endoflife.date. 4.x keeps full and security support. 3.x keeps security only. 1.x and 2.x are fully end-of-life, though the core team has backported serious fixes to those older branches before.
Which brings me to something worth pausing on. Nearly half of 3.8.0's ~494 commits belong to a rewrite of the test runner itself. jQuery moved to a tool called jquery-test-runner, swapped Express for a tiny Node server, and started running tests on real Firefox ESRs and Edge in IE mode. It also dropped iOS 10 testing. That machinery is what keeps the critical-only maintenance honest.
And then there's the timing. 4.1.0 also published official guidelines for machine-generated contributions, an honest acknowledgment that AI-assisted code is now flowing into the repo. A library that started at a BarCamp in New York in January 2006 is now writing rules for robots. Fair enough.
Upgrading before the torch goes out
Head to the 4.0 upgrade guide and grab the jQuery Migrate plugin if you're still on 3.x. The team says most users can upgrade with minimal changes.
You can grab either version from the CDN directly:
https://code.jquery.com/jquery-4.1.0.min.js https://code.jquery.com/jquery-3.8.0.min.js
Both also ship in slim builds, and npm works too:
npm install jquery@4.1.0 npm install jquery@3.8.0
Head here to the jQuery website for more information.
