[ramda] Fix for TS 6.0 - #73646
Conversation
|
@jakebailey Thank you for submitting this PR! This is a live comment that 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": 73646,
"author": "jakebailey",
"headCommitOid": "b5952f3921a24cf04d3e2bd3c6336b9fab7f83eb",
"mergeBaseOid": "80dffc576d90062fca5032bb48526cab4108e40b",
"lastPushDate": "2025-09-10T19:12:46.000Z",
"lastActivityDate": "2025-09-10T21:15:29.000Z",
"mergeOfferDate": "2025-09-10T21:09:24.000Z",
"mergeRequestDate": "2025-09-10T21:15:29.000Z",
"mergeRequestUser": "jakebailey",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "ramda",
"kind": "edit",
"files": [
{
"path": "types/ramda/test/index-tests.ts",
"kind": "test"
},
{
"path": "types/ramda/test/maxBy-tests.ts",
"kind": "test"
},
{
"path": "types/ramda/test/minBy-tests.ts",
"kind": "test"
},
{
"path": "types/ramda/tools.d.ts",
"kind": "definition"
}
],
"owners": [
"harris-miller",
"Nicholaiii",
"kedashoe",
"adispring"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "andrewbranch",
"date": "2025-09-10T21:08:33.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 3276207252,
"ciResult": "pass"
} |
|
🔔 @Harris-Miller @Nicholaiii @kedashoe @adispring — please review this PR in the next few days. Be sure to explicitly select |
|
Ready to merge |
|
@jakebailey thanks for doing some future proofing for us! Question for you: What change in TS 6.0 is causing those two imports to fail at runtime? |
|
microsoft/TypeScript#62320, in service of microsoft/TypeScript#62338. Probably, this package could be changed to But, the old |
Thank you for the explanation. I believe I found the root cause: https://github.com/ramda/ramda/blob/master/package.json#L62-L64 "exports": {
// full config omitted for brevity
"./es/": "./es/",
"./src/": "./src/",
"./dist/": "./dist/"
},Those are invalid. They should explicitly point to the |
Inline a type in the tests;
tools.d.tsdoes not exist upstream and should not be in the package. (#64939 almost removed it)Also, remove tests of the
ramda/srcandramda/esimports. These do not work at runtime.