jQuery 3.2.0 Is Out!

Posted on by

jQuery 3.2.0 has been released!

This release includes some bug fixes, improvements, and some deprecations. There should be no compatibility issues if upgrading from jQuery 3.0+.

If you haven’t yet upgraded to jQuery 3+, please have a look at the 3.0 Upgrade Guide. The jQuery Migrate 3.0 plugin will help you to identify compatibility issues in your code.

Please try out this new release and let us know about any issues you experienced.

Notable Updates

Added support for custom CSS properties (#3144).

Deprecated jQuery.holdReady (#3288).

(#3288). Deprecated jQuery.nodeName (#3475).

(#3475). Deprecated jQuery.isArray (#2961).

(#2961). Fixed a bug in .width() , .height() , and related methods where CSS transforms were included in the calculations. For instance, an element with the style transform: scale(2x) should not have its width and height values doubled (#3193).

, , and related methods where CSS transforms were included in the calculations. For instance, an element with the style should not have its width and height values doubled (#3193). Added support for <template> elements to the .contents() method (#3436).

elements to the method (#3436). Added back the deprecated module to the slim build. This change is largely insignificant given the module’s small size. We believe it makes more sense to remove deprecated pieces from the slim build at the same time as the main jQuery build (#3237).

Download

You can get the files from the jQuery CDN, or link to them directly:

https://code.jquery.com/jquery-3.2.0.js

https://code.jquery.com/jquery-3.2.0.min.js

You can also get this release from npm:

npm install jquery@3.2.0

Slim build

Sometimes you don’t need ajax, or you prefer to use one of the many standalone libraries that focus on ajax requests. And often it is simpler to use a combination of CSS and class manipulation for all your web animations. Along with the regular version of jQuery that includes the ajax and effects modules, we’ve released a “slim” version that excludes these modules. The size of jQuery is very rarely a load performance concern these days, but the slim build is about 6k gzipped bytes smaller than the regular version – 23.6k vs 30k. These files are also available in the npm package and on the CDN:

https://code.jquery.com/jquery-3.2.0.slim.js

https://code.jquery.com/jquery-3.2.0.slim.min.js

These updates are already available as the current versions on npm and Bower. Information on all the ways to get jQuery is available at https://jquery.com/download/. Public CDNs receive their copies today, please give them a few days to post the files. If you’re anxious to get a quick start, use the files on our CDN until they have a chance to update.

Thanks

Many thanks to all of you who participated in this release by testing, reporting bugs, or submitting patches, including Connor Atherton, Jason Bedard, David Broder-Rodgers, Oleg Gaidarenko, Michał Gołębiowski, Richard Gibson, karan-96, Manoj Kumar, Alexander Lisianoi, Alex Louden, Alex Padilla, and the whole jQuery team.

GitHub changelog: Issues fixed in 3.2.0 | All changes

Full changelog

Callbacks

Prevent add() from unlocking with-memory lists (#3469, 9d822bc1)

Core

CSS

Remove dead code in getWidthOrHeight (96533cd0)

Support custom properties (#3144, 619bf98d)

Deferred

Stop inventing jQuery.when() resolution values (#3442, 5d79c646)

Dimensions

Ignore transforms when retrieving width/height (#3193, c920ff6e)

Docs

Remove supported jQuery versions from ISSUE_TEMPLATE.md (fedc1aa6)

Correct typo in issue template (a8816caf)

Effects

Stabilize rAF logic & align timeout logic with it (#3434, 6d43dc42)

Resolve issues revealed by recent Callbacks fix (#3502, #3503, 3c89329c)

Event

Trigger checkbox and radio click events identically (#3423, b442abac)

Add radio click triggering tests (5f35b5b4)

Manipulation

Restrict the tbody search to child nodes (#3439, efdb8a46)

Offset

Eliminate little-used internal function (#3449, bf3a43ef)

Report offset for 0 sized elements (#3267, 1777899a)

Tests

Skip CSS custom properties tests in non-supporting browsers (bcec54ee)

Update the loader so test pages always get jQuery (14b393d0)

Added tests for symbol-separated tag names (#2006, bd9145fa)

Clean up after the CSS Custom Properties support test (fc34dbc2)

Traversing

$.fn.contents() supports HTMLTemplateElement (#3436, 3e3b09d6)

Build