node: add randomUUIDv7 to crypto module#74974
Conversation
|
@xcfio Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. 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
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": 74974,
"author": "xcfio",
"headCommitOid": "de515b3d319293439157133920975c79622509c1",
"mergeBaseOid": "dafc26dc3da728f912025f73d2629374a9b1aba9",
"lastPushDate": "2026-05-10T13:08:49.000Z",
"lastActivityDate": "2026-05-11T08:42:54.000Z",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"tooManyCommits": false,
"tooManyReviews": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "node",
"kind": "edit",
"files": [
{
"path": "types/node/crypto.d.ts",
"kind": "definition"
},
{
"path": "types/node/node-tests/crypto.ts",
"kind": "test"
}
],
"owners": [
"Microsoft",
"jkomyno",
"r3nya",
"btoueg",
"touffy",
"mohsen1",
"galkin",
"eps1lon",
"WilcoBakker",
"chyzwar",
"trivikr",
"yoursunny",
"qwelias",
"ExE-Boss",
"peterblazejewicz",
"addaleax",
"victorperin",
"NodeJS",
"LinusU",
"wafuwafu13",
"mcollina",
"Semigradsky",
"Renegade334",
"anonrig"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "changereq",
"reviewer": "Renegade334",
"date": "2026-05-11T08:42:54.000Z"
},
{
"type": "stale",
"reviewer": "trivikr",
"date": "2026-05-10T15:06:11.000Z",
"abbrOid": "456ffbc"
}
],
"mainBotCommentID": 4415365086,
"ciResult": "pass"
} |
|
🔔 @microsoft @jkomyno @r3nya @btoueg @Touffy @mohsen1 @galkin @eps1lon @WilcoBakker @chyzwar @trivikr @yoursunny @qwelias @ExE-Boss @peterblazejewicz @addaleax @victorperin @nodejs @LinusU @wafuwafu13 @mcollina @Semigradsky @Renegade334 @anonrig — please review this PR in the next few days. Be sure to explicitly select |
Renegade334
left a comment
There was a problem hiding this comment.
DT doesn't have staged releasing, we have to land new versions' updates in a rolled up package otherwise it breaks the versioning (you're merging this to v25.6 as it stands)
|
@xcfio 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! |
Do I have to wait for v26.1 to roll out? |
|
Yep, we can include this in 26.1. |
|
@Renegade334, @trivikr 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? |
Okay |
|
@xcfio 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! |
Changing an existing definition:
package.json.Context:
crypto.randomUUIDv7()was added in Node.js v26.1.0. This PR adds the type definition reusing the existingRandomUUIDOptionsandUUIDtypes, matching the pattern ofrandomUUID.Test: