-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
fix(react): Remove unstable APIs #44896
fix(react): Remove unstable APIs #44896
Conversation
@eps1lon Thank you for submitting this PR! Code ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 44896,
"author": "eps1lon",
"owners": [
"johnnyreilly",
"bbenezech",
"pzavolinsky",
"digiguru",
"ericanderson",
"DovydasNavickas",
"theruther4d",
"guilhermehubner",
"ferdaber",
"jrakotoharisoa",
"pascaloliv",
"hotell",
"franklixuefei",
"Jessidhia",
"saranshkataria",
"lukyth",
"eps1lon",
"zieka",
"dancerphil",
"dimitropoulos",
"disjukr",
"vhfmag",
"hellatan"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "03f1ea4",
"headCommitOid": "03f1ea4bcd7ae34bd78e23fd9394f98aa408e4ae",
"mergeIsRequested": false,
"stalenessInDays": 0,
"lastCommitDate": "2020-06-23T08:10:53.000Z",
"lastCommentDate": "2020-06-23T21:14:23.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44896/files",
"hasMergeConflict": false,
"authorIsOwner": true,
"isFirstContribution": false,
"popularityLevel": "Critical",
"anyPackageIsNew": false,
"packages": [
"react"
],
"files": [
{
"filePath": "types/react/index.d.ts",
"kind": "definition",
"package": "react"
},
{
"filePath": "types/react/test/tsx.tsx",
"kind": "test",
"package": "react"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"reviewersWithStaleReviews": [
{
"reviewedAbbrOid": "b2356e6",
"reviewer": "dimitropoulos",
"date": "2020-05-20T12:14:55Z"
},
{
"reviewedAbbrOid": "c39d69c",
"reviewer": "ferdaber",
"date": "2020-05-19T21:02:48Z"
},
{
"reviewedAbbrOid": "44455d1",
"reviewer": "johnnyreilly",
"date": "2020-05-19T20:29:19Z"
}
],
"approvalFlags": 0,
"isChangesRequested": false
} |
🔔 @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @DovydasNavickas @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @Hotell @franklixuefei @Jessidhia @saranshkataria @lukyth @zieka @dancerphil @dimitropoulos @disjukr @vhfmag @hellatan - please review this PR in the next few days. Be sure to explicitly select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this shipping as it will resolve the issues raised by @gaearon in the linked issue. Would appreciate a second pair of eyes on this too.
@eps1lon looks like there's some test failures? |
I can reproduce these on master as well. I can work on a separate PR to fix them. Though we'd loose a bit of confidence since I can't branch |
Will there be changes to |
I think we should get these in as well. |
I would keep |
@eps1lon The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
b2356e6
to
288ac0a
Compare
@eps1lon The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
288ac0a
to
8719c35
Compare
@eps1lon The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
8719c35
to
a3c4973
Compare
@eps1lon The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
a3c4973
to
8977a7e
Compare
@dimitropoulos, @ferdaber, @johnnyreilly Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
Only rebased onto |
@sandersn Could you remove the label? The build is passing and the bot doesn't want to remove the label. Or someone manually merge this manually. |
This is in the correct bucket -- Needs Maintainer Review -- because the new bot ignores the Travis label. |
I just published |
---defaultValue: unknown,
+++defaultValue: T, |
* fix(react): Remove unstable APIs * Add regression tests * fix(react-dom): Remove unstable APIs * Revert "fix(react-dom): Remove unstable APIs" This reverts commit 3653977.
If you came here because this broke type-checking for you: You were probably using unstable, undocumented APIs. If you still want to use them without supressing type checking, you can add them back via module augmentation:
unstable APIs of `react`
Closes #44886