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

Core: Deprecate jQuery.trim #4461

Merged
merged 7 commits into from Aug 22, 2019
Merged

Conversation

ShashankaNataraj
Copy link
Contributor

@ShashankaNataraj ShashankaNataraj commented Aug 19, 2019

Summary

Component: Core

  • Moved jQuery.trim() from the core.js file into the deprecated.js file
  • Moved corresponding unit test from test/unit/core.js to test/unit/deprecated.js

Fixes #4363

Checklist

@jsf-clabot
Copy link

jsf-clabot commented Aug 19, 2019

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ ShashankaNataraj
❌ Shashanka N


Shashanka N seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

@mgol
Copy link
Member

mgol commented Aug 19, 2019

Thanks for the PR.

Please follow our guidelines, especially for commit messages: https://contribute.jquery.org/commits-and-pull-requests/

The PR title should be named in the same format as well.

@timmywil
Copy link
Member

The code changes look good.

@mgol
Copy link
Member

mgol commented Aug 19, 2019

@ShashankaNataraj Please sign our CLA.

@timmywil
Copy link
Member

Looks like you did sign the CLA, but one of the commits has different author info. You can fix this with git commit --amend --author=ShashankaNataraj

@ShashankaNataraj
Copy link
Contributor Author

@mgol @timmywil Thanks for your guidance. I hope the above commits do the trick! The issue was I committed with my official mail ID in the git config.

The CLA was picking up my old email ID as I have contributed to jQuery before as well!

Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the trim test from test/unit/basic.js, the tests there should work with deprecated APIs excluded.

@ShashankaNataraj
Copy link
Contributor Author

ShashankaNataraj commented Aug 20, 2019

@mgol @timmywil Does this look correct?

@mgol mgol changed the title Fixes #4363 Core: Deprecate jQuery.trim Aug 21, 2019
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

In the future, please name your commits according to our guidelines at https://contribute.jquery.org/commits-and-pull-requests/#commit-guidelines. The PR title should also follow the same format as the commit title.

@mgol
Copy link
Member

mgol commented Aug 22, 2019

(I updated the PR title to match the proper format)

@mgol mgol merged commit 5ea5946 into jquery:master Aug 22, 2019
@mgol mgol removed the Needs review label Aug 22, 2019
@mgol mgol added this to the 4.0.0 milestone Aug 22, 2019
@ShashankaNataraj
Copy link
Contributor Author

@mgol Will do, thanks!

mgol added a commit that referenced this pull request Aug 30, 2019
mgol pushed a commit that referenced this pull request Sep 25, 2019
Fixes gh-4363
Closes gh-4461

(cherry picked from 5ea5946)
@mgol mgol modified the milestones: 4.0.0, 3.5.0 Sep 25, 2019
@mgol
Copy link
Member

mgol commented Sep 25, 2019

Moving the milestone to 3.5.0 (deprecations can only happen in minor or major releases and previously we didn't plan a minor bump on the 3.x line); I cherry-picked the change (with some necessary modifications) in 56e73e0.

@mgol mgol mentioned this pull request Sep 26, 2019
@ShashankaNataraj ShashankaNataraj deleted the 4363-deprecate-trim branch October 4, 2019 05:26
@lock lock bot locked as resolved and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

Deprecate jQuery.trim?
4 participants