unstale

npm / jquery

jquery

What changed in jquery 3 to 4, from its official release notes, upgrade guides and advisories. Also covers @types/jquery. Sources checked 2026-11-30.

25 breaking2 security7 deprecations6 new APIs and options1 performance7 behavior and defaults19 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

jquery 460 changes

Breaking changes 25

  • Quick selection paths apply stricter matching.

    4.1.0release notes

  • Attribute values are no longer stringified in the setter.

    4.0.0release notes

  • Setting a non-ARIA attribute to false removes that attribute.

    4.0.0release notes

  • Support is dropped for IE below 11, iOS below 11, Firefox below 65, Android Browser, and PhantomJS.

    4.0.0release notes

  • The response content-type header, when present, overwrites s.contentType.

    4.0.0release notes

  • Whitespace surrounding CSS Custom Properties values is trimmed; whitespace-only values return undefined.

    4.0.0release notes

  • jQuery no longer automatically adds px to properties, with a few exceptions.

    4.0.0release notes

  • Deprecated jQuery APIs are removed.

    4.0.0release notes

  • Support for Edge Legacy, meaning non-Chromium Microsoft Edge, is dropped.

    4.0.0release notes

  • The project migrates from AMD to ES modules.

    4.0.0release notes

  • The event.which shim was removed.

    4.0.0release notes

  • jQuery stops shimming focusin and focusout events.

    4.0.0release notes

  • getStackHook is renamed to getErrorHook.

    4.0.0release notes

  • Removed jQuery.event.global.

    4.0.0release notes

  • Removed jQuery.fx.interval; developers can no longer configure the animation timer interval through this property.

    4.0.0release notes

  • jQuery.htmlPrefilter is now an identity function, so HTML passed through it is no longer rewritten.

    4.0.0release notes

  • jQuery.trim is deprecated and removed.

    4.0.0release notes

  • Automatic promotion of JSON requests to JSONP is removed.

    4.0.0release notes

  • Support for legacy selector pseudos was dropped.

    4.0.0release notes

  • offsetHeight(true) and related measurements include negative margins.

    4.0.0release notes

  • The opacity CSS hook is removed.

    4.0.0release notes

  • Scripts are not automatically executed unless dataType is provided, and scripts are not executed for unsuccessful HTTP responses.

    4.0.0release notes

  • Callbacks and deferred modules are excluded from the slim build.

    4.0.0release notes

  • The toggleClass(boolean|undefined) signature is removed.

    4.0.0release notes

  • Implemented uniqueSort as a chainable method.

    4.0.0release notes

Security 2

Deprecations 2

  • AJAX event aliases are deprecated.

    4.0.0release notes

  • jQuery.expr.filters and jQuery.expr[":" ] are properly deprecated.

    4.0.0release notes

New APIs and options 5

  • Ajax transports can use an alternative completeCallback API.

    3.8.0, 4.1.0release notesrelease notes

  • jqXHR now exposes the responseURL field.

    4.1.0release notes

  • .even() and .odd() are implemented as replacements for the POS :even and :odd selectors.

    4.0.0release notes

  • globalEval gains a doc parameter, and iframe scripts execute in their own context.

    4.0.0release notes

  • The script transport supports headers for cross-domain requests.

    4.0.0release notes

Performance 1

  • Duplicate removal in jQuery.uniqueSort is optimized.

    4.1.0release notes

Behavior and default changes 7

  • Serialization now supports form-associated custom elements.

    4.1.0release notes

  • The beforeunload event now uses .preventDefault().

    4.0.0release notes

  • Ajax supports binary data, including FormData.

    4.0.0release notes

  • Re-exposed jQuery.find.tokenize, jQuery.find.select, jQuery.find.compile, and jQuery.find.setDocument.

    4.0.0release notes

  • JSONP error script responses are executed.

    4.0.0release notes

  • Ajax requests can use processData: true even for binary data.

    4.0.0release notes

  • The show, hide, and toggle methods are included in the jQuery slim build.

    4.0.0release notes

Fixes and other changes 18

jquery 37 changes

Deprecations 5

New APIs and options 1

  • Support the until-found value for the hidden attribute.

    3.8.0release notes

Fixes and other changes 1

  • Increase robustness of an inner native event in leverageNative.

    3.8.0release notes