From bbf72c48e19df8985c009ee23e29a35a9629f228 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:59:53 +0800 Subject: [PATCH] Update Node.js data for `PerformanceObserver` and `PerformanceObserverEntryList` (#25001) * Update & fix node.js data for `PerformanceObserver` and `PerformanceObserverEntryList` Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com> Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu --- api/PerformanceObserver.json | 17 +++++++++++------ api/PerformanceObserverEntryList.json | 19 ++++++++++++++++--- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/api/PerformanceObserver.json b/api/PerformanceObserver.json index be3cc2f537c77e..5ce4c42d928287 100644 --- a/api/PerformanceObserver.json +++ b/api/PerformanceObserver.json @@ -20,11 +20,16 @@ "ie": { "version_added": false }, - "nodejs": { - "version_added": "8.5.0", - "partial_implementation": true, - "notes": "Exported from the `perf_hooks` module" - }, + "nodejs": [ + { + "version_added": "19.0.0" + }, + { + "version_added": "8.5.0", + "partial_implementation": true, + "notes": "Available as a part of the `perf_hooks` module." + } + ], "oculus": "mirror", "opera": "mirror", "opera_android": "mirror", @@ -269,7 +274,7 @@ "version_added": false }, "nodejs": { - "version_added": "8.5.0" + "version_added": "16.0.0" }, "oculus": "mirror", "opera": "mirror", diff --git a/api/PerformanceObserverEntryList.json b/api/PerformanceObserverEntryList.json index 3a9790624d241b..0bdf4c4cc606f7 100644 --- a/api/PerformanceObserverEntryList.json +++ b/api/PerformanceObserverEntryList.json @@ -20,9 +20,22 @@ "ie": { "version_added": false }, - "nodejs": { - "version_added": "8.5.0" - }, + "nodejs": [ + { + "version_added": "19.0.0" + }, + { + "version_added": "16.7.0", + "partial_implementation": true, + "notes": "Available as a part of the `perf_hooks` module." + }, + { + "version_added": "8.5.0", + "version_removed": "16.7.0", + "partial_implementation": true, + "notes": "Only available as an internal instance, but can be accessed via the first parameter of the `PerformanceObserver` constructor." + } + ], "oculus": "mirror", "opera": "mirror", "opera_android": "mirror",