-
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
[@types/serve-static] Remove dependency on @types/mime
#69231
Conversation
86622b8
to
2cc6b66
Compare
@codershiba 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": 69231,
"author": "codershiba",
"headCommitOid": "9df89f8a703e49ffc7f88d56d04140aff52372fd",
"mergeBaseOid": "41aa59f8e323a93b98ecea69fcf67a7a0a2cfa67",
"lastPushDate": "2024-04-01T06:12:31.000Z",
"lastActivityDate": "2024-04-02T16:29:49.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "serve-static",
"kind": "edit",
"files": [
{
"path": "types/serve-static/index.d.ts",
"kind": "definition"
},
{
"path": "types/serve-static/package.json",
"kind": "package-meta-ok"
}
],
"owners": [
"urossmolnik",
"LinusU",
"devanshj"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "jakebailey",
"date": "2024-04-02T16:29:49.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 2029322084,
"ciResult": "pass"
} |
🔔 @urossmolnik @LinusU @devanshj — please review this PR in the next few days. Be sure to explicitly select |
@codershiba 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": 69231,
"author": "codershiba",
"headCommitOid": "9df89f8a703e49ffc7f88d56d04140aff52372fd",
"mergeBaseOid": "41aa59f8e323a93b98ecea69fcf67a7a0a2cfa67",
"lastPushDate": "2024-04-01T06:12:31.000Z",
"lastActivityDate": "2024-04-02T16:29:49.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "serve-static",
"kind": "edit",
"files": [
{
"path": "types/serve-static/index.d.ts",
"kind": "definition"
},
{
"path": "types/serve-static/package.json",
"kind": "package-meta-ok"
}
],
"owners": [
"urossmolnik",
"LinusU",
"devanshj"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "jakebailey",
"date": "2024-04-02T16:29:49.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 2029322084,
"ciResult": "pass"
} |
🔔 @urossmolnik @LinusU @devanshj — please review this PR in the next few days. Be sure to explicitly select |
Why? |
I think the correct fix is in a219ae4 since mime v4 ships with it's own types that may end up being incompatible with |
I think the most accurate solution would be to change the dependency to Because see: https://github.com/expressjs/serve-static/blob/9b5a12a76f4d70530d2d2a8c7742e9158ed3c0a4/index.js#L29 Edit: |
When #69213 landed, half the web broke. That's why. :) Like @stu43005 wrote, refs: |
Then we should revert #69213 then simply delete it without a shim. |
No, nevermind, the shim package is fine as it only applied to mime v4. But we should fix this package. |
I'm not sure why moving it to |
TBH, it looks like the change here is the correct way to go. It's just that packages that depended on it using |
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/send/package.json |
I apparently can't read! |
Thank you for merging. |
Takes some time I guess |
Publishing happens every half hour; give it like 5 minutes or so. |
Sorry for breaking this and causing so much chaos but I guess this was the only major package here that depending on |
All good, our tooling unfortunately can't detect this kind of break because at the point at which a package is removed, the dummy package has not yet been published to npm. A known downside of the new pnpm layout that we need to figure out, probably by erroring on |
Just a note This PR changes the import to |
Feel free to send a PR and tag me, that seemed like an unnecessary change I missed. |
Actually, just sent #69258 |
Please fill in this template.
pnpm test serve-static
.If changing an existing definition:
package.json
.