api.jquery.com
api.jquery.com copied to clipboard
3.0 Deprecations and removals
I'll list them all here including ones we've already completed or may not need to address, just to make sure none slip through the cracks. Per https://jquery.com/upgrade-guide/3.0/ we have these:
Deprecated
- [x] jQuery.fx.interval (PR #969)
- [x] .toggleClass() and .toggleClass(Boolean)
- [x] jQuery.unique renamed to jQuery.uniqueSort
- [x] jQuery.parseJSON
- [x] .ready() signatures other than jQuery( fn )
- [x] easing parameters (issue #766)
- [x] .bind() and .delegate() (PR #948)
- [ ] jQuery.expr[":"] and jQuery.expr.filters (issue #1224)
Removed
- [x] jQuery().context and .selector (needs change to text, see #1030)
- [x] .andSelf()
- [x] jqXHR.success, .error, and .complete (there's proper text at https://api.jquery.com/jQuery.ajax/#jqXHR)
- [x] ~~$(document).on("ready", fn) (never documented?)~~
- [x] .load(), .unload(), and .error() (tweaked in #1223 to separate event descriptions from shorthand pages)
- [x] ~~event.pageX and event.pageY normalization (not sure we need changes)~~
Features
- [x] jQuery.escapeSelector
- [x] jQuery.ready promise-consumable (issue #205, PR #983 (was: #530))
- [ ] jQuery.Deferred Promises/A+ compat
- [ ] jQuery.when() consumes thenables (issue #921)
- [ ] .animate() uses requestAnimationFrame
- [x] settings argument signature for jQuery.get() and .post() (showing 1.12?)
- [x] SVG support for .addClass(), .removeClass(), and .toggleClass() (showing 1.12?)