Releases: jquery/jquery-migrate
4.0.0-beta.1
The first jQuery Migrate pre-release compatible with jQuery 4.0.0-rc.1.
Major changes:
-
Core: Remove patches for breaking changes in jQuery 3.0.0 or older (gh-472, gh-555)
The
self-closed-tags
patch remains, despite being a breaking change in jQuery
3.5.0, not 4.0.0. There are a few reasons for that:- It's an exception that a breaking change arrived in a non-major version bump.
Some people may be upgrading from jQuery 3.4.0 or older and it's good to
make it work for them. - The patch is disabled by default, so the concern of people on newer jQuery
3.x upgrading to jQuery 4.x with Migrate 4.x getting patches restoring
behavior from an version older than the pre-upgrade one does not exist. - This was a pretty big break, it may help people update if we still support
it.
- It's an exception that a breaking change arrived in a non-major version bump.
-
Core: Don't reimplement deprecated but not removed APIs (gh-472, gh-555)
This will save space and avoid potential divergence from Core.
Also, simplify the
deferred.pipe
patch. -
Core: Use
console.info
for deprecations without removals (gh-472, gh-555)Also:
- Group
warnings.md
by this type. - Rename
jQuery.migrateWarnings
tojQuery.migrateMessages
. - Rename
jQuery.migrateDeduplicateWarnings
to
jQuery.migrateDeduplicateMessages
. - Adding "info" versions of some internal APIs.
- Group
-
Core: Provide a package.json exports setup inspired by jQuery Core (gh-524, gh-566)
The Migrate setup is simpler than Core as it doesn't have the slim or factory
versions, but the core ideas are similar. -
Core: Don't warn just on access of
jQuery.fn.push
, etc., but when it's called (gh-571) -
Data: Patch & warn about props from Object.prototype in data objects (gh-561, gh-559)
-
Event: Patch jQuery.event.global (gh-574)
-
Event: Patch jQuery.event.special's prototype (gh-573, gh-542)
Allow to use common
Object.prototype
properties onjQuery.event.special
but
warn as well.