From a279569d18d59abbc0779a606c7c60ad21ebf4e2 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 14 May 2026 08:51:53 +0100 Subject: [PATCH] fix: use correct mapping for `crypto.randomUUID` --- manifests/preferred.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/manifests/preferred.json b/manifests/preferred.json index bd62f85..a7e4fe3 100644 --- a/manifests/preferred.json +++ b/manifests/preferred.json @@ -2675,7 +2675,7 @@ "uid-safe": { "type": "module", "moduleName": "uid-safe", - "replacements": ["node:crypto", "crypto"], + "replacements": ["crypto.randomUUID"], "url": {"type": "e18e", "id": "uuidv4"} }, "underscore": { @@ -2699,13 +2699,13 @@ "uuid": { "type": "module", "moduleName": "uuid", - "replacements": ["node:crypto", "crypto"], + "replacements": ["crypto.randomUUID"], "url": {"type": "e18e", "id": "uuidv4"} }, "uuidv4": { "type": "module", "moduleName": "uuidv4", - "replacements": ["node:crypto", "crypto"], + "replacements": ["crypto.randomUUID"], "url": {"type": "e18e", "id": "uuidv4"} }, "wellknown": { @@ -2996,6 +2996,15 @@ }, "url": {"type": "mdn", "id": "Web/API/Web_Crypto_API"} }, + "crypto.randomUUID": { + "id": "crypto.randomUUID", + "type": "native", + "webFeatureId": { + "featureId": "web-cryptography", + "compatKey": "api.Crypto.randomUUID" + }, + "url": {"type": "mdn", "id": "Web/API/Crypto/randomUUID"} + }, "crypto.timingSafeEqual": { "id": "crypto.timingSafeEqual", "type": "native",