Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Core: Formally deprecate push/sort/splice #5653

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 8, 2025

Summary

Since we inlined Sizzle into jQuery, we haven't been actually using these three
methods internally. Therefore, we could add deprecation warnings in Migrate 3.x
for them with jQuery 3.7.0 or newer - both 3.7.0 & 3.7.1 pass all the tests
with them removed (while 3.6.4 does not).

Some basic tests were added as well.

Checklist

@mgol mgol added Core Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Apr 8, 2025
@mgol mgol self-assigned this Apr 8, 2025
Since we inlined Sizzle into jQuery, we haven't been actually using these three
methods internally. Therefore, we could add deprecation warnings in Migrate 3.x
for them with jQuery 3.7.0 or newer - both 3.7.0 & 3.7.1 pass all the tests
with them removed (while 3.6.4 does not).

Some basic tests were added as well.
@mgol mgol force-pushed the push-sort-splice branch from 3b6a80e to 10e654f Compare April 8, 2025 11:58
@mgol
Copy link
Member Author

mgol commented Apr 8, 2025

If we decided to land this, the next version would probably have to be 3.8.0, not 3.7.2. But it's been 1.5 years since 3.7.1 and 3.x-stable had lots of changes landed during that time so this might actually be good.

@mgol
Copy link
Member Author

mgol commented Apr 8, 2025

Migrate PR: jquery/jquery-migrate#568

@mgol mgol added this to the 3.7.2 milestone Apr 14, 2025
@timmywil timmywil removed the Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. label Apr 14, 2025
@mgol mgol merged commit 50d9a8d into jquery:3.x-stable Apr 14, 2025
17 checks passed
@mgol mgol deleted the push-sort-splice branch April 14, 2025 16:58
@mgol mgol removed the Needs review label Apr 14, 2025
mgol added a commit to mgol/jquery-migrate that referenced this pull request May 4, 2025
mgol added a commit to mgol/jquery-migrate that referenced this pull request May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants