-
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(node-fetch): restore form-data dependency to ^3.0.0 #58804
fix(node-fetch): restore form-data dependency to ^3.0.0 #58804
Conversation
@peterblazejewicz Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. 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": 58804,
"author": "peterblazejewicz",
"headCommitOid": "bb42125bbb73dc49194ac59927e77f6a47433ac3",
"mergeBaseOid": "24308482dd19406877bb52bfed03d84c8168d457",
"lastPushDate": "2022-02-15T19:10:06.000Z",
"lastActivityDate": "2022-02-15T19:45:43.000Z",
"mergeOfferDate": "2022-02-15T19:44:38.000Z",
"mergeRequestDate": "2022-02-15T19:45:43.000Z",
"mergeRequestUser": "peterblazejewicz",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "node-fetch",
"kind": "edit",
"files": [
{
"path": "types/node-fetch/package.json",
"kind": "package-meta-ok"
}
],
"owners": [
"torstenwerner",
"nikcorg",
"vinaybedre",
"kyranet",
"AndrewLeedham",
"JasonLi914",
"southpolesteve",
"ExE-Boss",
"alexandrusavin",
"OmgImAlexis",
"kbkk",
"glasser"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "andrewbranch",
"date": "2022-02-15T19:44:00.000Z",
"isMaintainer": true
},
{
"type": "approved",
"reviewer": "glasser",
"date": "2022-02-15T19:18:14.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 1040620786,
"ciResult": "pass"
} |
🔔 @torstenwerner @nikcorg @vinaybedre @kyranet @AndrewLeedham @JasonLi914 @southpolesteve @ExE-Boss @alexandrusavin @OmgImAlexis @kbkk @glasser — please review this PR in the next few days. Be sure to explicitly select |
@peterblazejewicz 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. |
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 trust you know better than me here. I don't know why this worked in the past before it was deleted? But it does look like the native typings were added in v2.5.0. form-data/form-data@a3c0142
Well it does appear that this PR isn't quite correct for the reasons that CI is saying, though I suspect you know better than me how to fix it! |
Worth noting that node-fetch 2.x only has a dev dep on form-data, so maybe we don't need to take its constraint so seriously and we can change our constraint to be |
Ah, there is no |
So you can change this to |
what a mess, there is 2.2.1: |
@glasser amended to 2.2.1 (@types/form-data). |
@peterblazejewicz 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. |
OK, so it was never added to white listed types (a bummer), the only option for now is either to wait and whitelist |
@glasser 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? |
v2.6 depends on v2.3 of `form-data`. That verison of `form-data` is not TS native, requires different dependency DefinitelyTyped#58693 (comment) /cc @glasser @distracteddev Thanks!
db0f4aa
to
b4794a8
Compare
Co-authored-by: David Glasser <glasser@apollographql.com>
@glasser 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? |
@andrewbranch, at your discretion, please! |
@peterblazejewicz: Everything looks good here. I am ready to merge this PR (at bb42125) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@torstenwerner, @nikcorg, @vinaybedre, @kyranet, @AndrewLeedham, @JasonLi914, @southpolesteve, @ExE-Boss, @alexandrusavin, @OmgImAlexis, @kbkk, @glasser: you can do this too.) |
Ready to merge 💘 |
…ependency to ^3.0.0 by @peterblazejewicz * fix(node-fetch): swap dependency to @types/form-data v2.6 depends on v2.3 of `form-data`. That verison of `form-data` is not TS native, requires different dependency DefinitelyTyped#58693 (comment) /cc @glasser @distracteddev Thanks! * Update types/node-fetch/package.json * Update types/node-fetch/package.json * Update types/node-fetch/package.json Co-authored-by: David Glasser <glasser@apollographql.com> Co-authored-by: David Glasser <glasser@apollographql.com>
We recently restored the deleted node-fetch types. We lowered
the dependency on form-data from
^3.0.0
to^2.3.3
since that'swhat the dev dependency in
node-fetch@2
itself had but that olderversion didn't ship its own types.
This PR restores the dependency to the same constraint it had when
we previously published
@types/node-fetch
. While it seems a bitsuspect to depend on a newer major version than
node-fetch
does,the only change in
form-data
v3 is droppingnode@4
support, andit's just a dev dependency upstream.
#58693 (comment)
/cc @glasser @distracteddev
Thanks!