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

Deprecate internal OutsideClickHandler in favor of react-outside-click-handler package #1191

Merged

Conversation

majapw
Copy link
Collaborator

@majapw majapw commented May 30, 2018

This is a patch because I don't actually delete the OutsideClickHandler in this change but rather ship it with a deprecation message.

to: @ljharb

@majapw majapw added the semver-patch: fixes/refactors/etc Anything that's not major or minor. label May 30, 2018
@majapw majapw force-pushed the maja-deprecate-outside-click-handler-in-favor-of-npm-package branch from f5a01a3 to 9ac1bdd Compare May 30, 2018 16:25
@coveralls
Copy link

coveralls commented May 30, 2018

Coverage Status

Coverage decreased (-0.02%) to 84.852% when pulling 5751221 on maja-deprecate-outside-click-handler-in-favor-of-npm-package into 9b60f32 on master.


// import { forbidExtraProps } from 'airbnb-prop-types'; // TODO: add to propTypes; semver-major
import { addEventListener } from 'consolidated-events';
console.log(`
Copy link
Member

Choose a reason for hiding this comment

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

this should use console.warn instead, i think

@majapw majapw force-pushed the maja-deprecate-outside-click-handler-in-favor-of-npm-package branch 2 times, most recently from 195703c to f4df2a8 Compare May 30, 2018 20:45
@majapw majapw force-pushed the maja-deprecate-outside-click-handler-in-favor-of-npm-package branch from f4df2a8 to 5751221 Compare May 30, 2018 21:49
@majapw
Copy link
Collaborator Author

majapw commented May 31, 2018

So for some reason the status check is stuck even though the job ran successfully on Travis - https://travis-ci.org/airbnb/react-dates/builds/385911685

@ljharb is this safe to merge or is something broken?

@ljharb
Copy link
Member

ljharb commented May 31, 2018

Refresh the page? Everything looks fine except that the coverage threshold still needs tweaking

@majapw
Copy link
Collaborator Author

majapw commented May 31, 2018

@ljharb when I click the travis link in coveralls (which what causes the pass or fail i thought), the travis job is green. Previously it told me that the branch coverage needed tweaking. Is it because of the missed lines in the diff?

screen shot 2018-05-31 at 8 36 05 am

Incidentally this missed line is the console.warn in the OutsideClickHandler... so if that's the case, I'm inclined to just merge through.

@ljharb
Copy link
Member

ljharb commented May 31, 2018

I think it's fine to merge through as long as it's not going to start failing on successive PRs.

@majapw majapw merged commit 95b5dc8 into master Jun 1, 2018
@majapw majapw deleted the maja-deprecate-outside-click-handler-in-favor-of-npm-package branch June 1, 2018 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch: fixes/refactors/etc Anything that's not major or minor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants