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

Add a deprecatedCallback helper #5861

Closed
wants to merge 4 commits into from
Closed

Add a deprecatedCallback helper #5861

wants to merge 4 commits into from

Conversation

satya164
Copy link
Contributor

Sorry for so long, was very busy last 2 weeks and was on vacation during the weekend :)

cc @dmmiller @bestander

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Feb 10, 2016
@mkonicek
Copy link
Contributor

👍 Very cool and welcome back from vacation! :)

Will let @dmmiller review.


'use strict';

// @deprecated, will be removed on March 1 2016
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean we'll break everyone still using callbacks? We could give people a bit more time.

@satya164
Copy link
Contributor Author

@mkonicek Originally I was supposed to work on it 2 weeks back, so the date, changed it to April 1 :D

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.


'use strict';

// @deprecated, will be removed on April 1 2016

Choose a reason for hiding this comment

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

We probably won't remove it then because we may have others that we will get to over time. Maybe we should pass the timeline in to the deprecatedCallback explicitly and add it to the warning that is output.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Won't we have almost 3 releases before April 1st?

Choose a reason for hiding this comment

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

Yea, I'd just rather not commit us to a particular time frame on the utility function. We may need something like this later for other things.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dmmiller Removing.

@dmmiller
Copy link

In general, definitely in the right direction. Thanks for doing this!

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

res => success(res),
err => error(err)
);
case 'node': // handles func(callback)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this right name?
Node.js convention is callback(error, success...).
In this case this is single-callback-success-first I suppose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry typo. Functions are wrong. Fixing.

@bestander
Copy link
Contributor

Great work!

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@bestander
Copy link
Contributor

looks good to me, @dmmiller ?

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@satya164
Copy link
Contributor Author

The update branch button is very nice :D

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@satya164
Copy link
Contributor Author

The bot hates me :(

@bestander
Copy link
Contributor

bot hates all of us.
Something with API between our CI and GitHub

@mkonicek
Copy link
Contributor

Looking into fixing the bot now.

@mkonicek
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@bestander
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@facebook-github-bot
Copy link
Contributor

@satya164 updated the pull request.

@dmmiller
Copy link

@facebook-github-bot shipit

@dmmiller
Copy link

Let's see if the bot is working again :)

@satya164
Copy link
Contributor Author

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/976782889081674/int_phab to review.

@satya164
Copy link
Contributor Author

@facebook-github-bot ❤️

@satya164 satya164 closed this Feb 12, 2016
@satya164 satya164 deleted the deprecatedcallback branch February 12, 2016 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants