Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data: Patch & warn about props from Object.prototype in data objects #561

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mgol
Copy link
Member

@mgol mgol commented Jan 14, 2025

NOTE: Right now, this PR includes PR #555; only review the commit titled "Data: Patch & warn about props from Object.prototype in data objects". This PR should not be merged before #555; that's the only reason it's in a draft state.

Ref gh-559

mgol added 5 commits January 14, 2025 12:57
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:
1. 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.
2. 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.
3. This was a pretty big break, it may help people update if we still support
   it.
This will save space and avoid potential divergence from Core.

Also, simplify the `deferred.pipe` patch.
Also:
1. Group `warnings.md` by this type.
2. Rename `jQuery.migrateWarnings` to `jQuery.migrateMessages`.
3. Rename `jQuery.migrateDeduplicateWarnings` to
   `jQuery.migrateDeduplicateMessages`.
4. Adding "info" versions of some internal APIs.

Fixes jquerygh-472
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant