From 8f7c3a7923574b9bd076eb214d892627d49703c7 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:09:47 +0800 Subject: [PATCH] Update & fix nodejs data for `Crypto` (#24979) * Update & fix nodejs data for `Crypto` * Update api/Crypto.json Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu --------- Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com> Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu --- api/Crypto.json | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/api/Crypto.json b/api/Crypto.json index 2e684d29712226..6d9237090c6bee 100644 --- a/api/Crypto.json +++ b/api/Crypto.json @@ -35,15 +35,12 @@ }, "nodejs": [ { - "version_added": "19.0.0", - "notes": "`Crypto` is not a concrete interface, but its methods are available on the global `crypto` object." + "version_added": "19.0.0" }, { - "alternative_name": "crypto.webcrypto", "version_added": "15.0.0", - "version_removed": "19.0.0", "partial_implementation": true, - "notes": "`Crypto` is not a concrete interface, but calling `require('crypto').webcrypto` returns an instance of the `Crypto` class." + "notes": "Available as a part of the `crypto` module." } ], "oculus": "mirror", @@ -94,7 +91,8 @@ "version_added": "11" }, "nodejs": { - "version_added": "17.4.0" + "version_added": "15.0.0", + "notes": "Since v17.4.0, a similar method is available via the `crypto` module." }, "oculus": "mirror", "opera": "mirror", @@ -142,16 +140,10 @@ "ie": { "version_added": false }, - "nodejs": [ - { - "version_added": "19.0.0" - }, - { - "version_added": "16.7.0", - "version_removed": "19.0.0", - "notes": "From version 14.17.0, a similar method is available as [`crypto.randomUUID()`](https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_crypto)." - } - ], + "nodejs": { + "version_added": "16.7.0", + "notes": "Since 14.17.0 and 15.6.0, a similar method is available via the `crypto` module." + }, "oculus": "mirror", "opera": "mirror", "opera_android": "mirror",