[Node]: Update http request listeners#61922
[Node]: Update http request listeners#61922typescript-bot merged 20 commits intoDefinitelyTyped:masterfrom
Conversation
…tom-request-response
Pass classes directly to generic types Ref: 38c1f13
|
@vansergen Thank you for submitting this PR! This is a live comment which I will keep updated. 4 packages in this PR
Code ReviewsThis PR can be merged once it's reviewed. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 61922,
"author": "vansergen",
"headCommitOid": "302f650c7986b4efac2a2e158b13ee286ffa351e",
"mergeBaseOid": "5c248b832935aebece0abff07360102f1e9111f3",
"lastPushDate": "2022-09-07T09:39:48.000Z",
"lastActivityDate": "2022-09-07T20:22:09.000Z",
"maintainerBlessed": "Waiting for Code Reviews",
"mergeOfferDate": "2022-09-07T18:59:48.000Z",
"mergeRequestDate": "2022-09-07T20:22:09.000Z",
"mergeRequestUser": "vansergen",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "node",
"kind": "edit",
"files": [
{
"path": "types/node/http.d.ts",
"kind": "definition"
},
{
"path": "types/node/https.d.ts",
"kind": "definition"
},
{
"path": "types/node/node-tests.ts",
"kind": "test"
},
{
"path": "types/node/test/http.ts",
"kind": "test"
},
{
"path": "types/node/test/https.ts",
"kind": "test"
},
{
"path": "types/node/v14/http.d.ts",
"kind": "definition"
},
{
"path": "types/node/v14/https.d.ts",
"kind": "definition"
},
{
"path": "types/node/v14/test/http.ts",
"kind": "test"
},
{
"path": "types/node/v14/test/https.ts",
"kind": "test"
},
{
"path": "types/node/v16/http.d.ts",
"kind": "definition"
},
{
"path": "types/node/v16/https.d.ts",
"kind": "definition"
},
{
"path": "types/node/v16/node-tests.ts",
"kind": "test"
},
{
"path": "types/node/v16/test/http.ts",
"kind": "test"
},
{
"path": "types/node/v16/test/https.ts",
"kind": "test"
}
],
"owners": [
"Microsoft",
"DefinitelyTyped",
"jkomyno",
"alvis",
"r3nya",
"btoueg",
"smac89",
"touffy",
"DeividasBakanas",
"eyqs",
"Hannes-Magnusson-CK",
"hoo29",
"kjin",
"ajafff",
"islishude",
"mwiktorczyk",
"mohsen1",
"n-e",
"galkin",
"parambirs",
"eps1lon",
"SimonSchick",
"ThomasdenH",
"WilcoBakker",
"wwwy3y3",
"samuela",
"kuehlein",
"bhongy",
"chyzwar",
"trivikr",
"yoursunny",
"qwelias",
"ExE-Boss",
"peterblazejewicz",
"addaleax",
"victorperin",
"ZYSzys",
"NodeJS",
"LinusU",
"wafuwafu13",
"mcollina"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
},
{
"name": "on-finished",
"kind": "edit",
"files": [
{
"path": "types/on-finished/on-finished-tests.ts",
"kind": "test"
}
],
"owners": [
"czechboy0",
"BendingBender"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Popular"
},
{
"name": "request-stats",
"kind": "edit",
"files": [
{
"path": "types/request-stats/request-stats-tests.ts",
"kind": "test"
}
],
"owners": [
"BendingBender"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
},
{
"name": "stoppable",
"kind": "edit",
"files": [
{
"path": "types/stoppable/stoppable-tests.ts",
"kind": "test"
}
],
"owners": [
"EricByers",
"jplusje",
"BendingBender"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Popular"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "mcollina",
"date": "2022-09-07T20:17:20.000Z",
"isMaintainer": false
},
{
"type": "approved",
"reviewer": "sheetalkamat",
"date": "2022-09-07T18:59:01.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 1225963261,
"ciResult": "pass"
} |
|
🔔 @microsoft @DefinitelyTyped @jkomyno @alvis @r3nya @btoueg @smac89 @Touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @bhongy @chyzwar @trivikr @yoursunny @qwelias @ExE-Boss @peterblazejewicz @addaleax @victorperin @ZYSzys @nodejs @LinusU @wafuwafu13 @mcollina @czechboy0 @BendingBender @EricByers @jplusje — please review this PR in the next few days. Be sure to explicitly select |
mcollina
left a comment
There was a problem hiding this comment.
I fear this would be too breaking as a change.
|
@vansergen One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
2d86275 to
3c714aa
Compare
I believe it could be a breaking change in tests (like it happened in other packages |
|
@mcollina 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? |
|
@vansergen The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review. |
84d3ca9 to
d35df07
Compare
sheetalkamat
left a comment
There was a problem hiding this comment.
Need maintainer signoff to see how is the new approach.
|
@vansergen One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
|
@sheetalkamat Could you please be more specific on requested changes? |
|
@mcollina, @sheetalkamat 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? |
|
@mcollina 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? |
|
Ready to merge |
|
Hello @vansergen @mcollina @sheetalkamat. I see this was just released as part of v18.7.16 - I posted a more fleshed out issue that we're seeing now using this version with these changes included. Here's that issue: It's breaking in our CI/CD atm, and reverting to a version without the changes resolves the issue. From reading the error message, the changes have made the |
|
@vansergen could you revert this? I think it's breaking everybody. |
|
@mcollina Sure, I could create a new PR that reverses it. But I think we should collect those breaking examples first. |
|
The following import * as http from "node:http";
import * as https from "node:https";
const createServerFn: typeof http.createServer | typeof https.createServer = https.createServer;
createServerFn({});
// TS2349: This expression is not callable. Each member of the union type has signatures, but none of those signatures are compatible with each other.does not work now. |
Description
The second attempt to merge #58879.
Motivation
Checklist
npm test <package to test>.