Repository: nodejs/node
Pull request: doc: mark stability markers consistent in `globals.md`

Also removing `<!-- type=global -->` that I don't think we're using.
<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: doc/api/globals.md
patch: @@ -4,6 +4,8 @@
 
 <!-- type=misc -->
 
+> Stability: 2 - Stable
+
 These objects are available in all modules.
 
 The following variables may appear to be global but are not. They exist only in
@@ -31,10 +33,6 @@ changes:
     description: No longer experimental.
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 A utility class used to signal cancelation in selected `Promise`-based APIs.
 The API is based on the Web API {AbortController}.
 
@@ -232,10 +230,6 @@ If `abortSignal.aborted` is `true`, throws `abortSignal.reason`.
 added: v18.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 See {Blob}.
 
 ## Class: `Buffer`
@@ -244,10 +238,6 @@ See {Blob}.
 added: v0.1.103
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 * {Function}
 
 Used to handle binary data. See the [buffer section][].
@@ -290,8 +280,6 @@ Global alias for [`buffer.atob()`][].
 added: v18.0.0
 -->
 
-> Stability: 2 - Stable
-
 See {BroadcastChannel}.
 
 ## `btoa(data)`
@@ -310,10 +298,6 @@ Global alias for [`buffer.btoa()`][].
 added: v0.9.1
 -->
 
-> Stability: 2 - Stable
-
-<!--type=global-->
-
 [`clearImmediate`][] is described in the [timers][] section.
 
 ## `clearInterval(intervalObject)`
@@ -322,10 +306,6 @@ added: v0.9.1
 added: v0.0.1
 -->
 
-> Stability: 2 - Stable
-
-<!--type=global-->
-
 [`clearInterval`][] is described in the [timers][] section.
 
 ## `clearTimeout(timeoutObject)`
@@ -334,10 +314,6 @@ added: v0.0.1
 added: v0.0.1
 -->
 
-> Stability: 2 - Stable
-
-<!--type=global-->
-
 [`clearTimeout`][] is described in the [timers][] section.
 
 ## Class: `CloseEvent`
@@ -346,10 +322,6 @@ added: v0.0.1
 added: v23.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 A browser-compatible implementation of {CloseEvent}. Disable this API
 with the [`--no-experimental-websocket`][] CLI flag.
 
@@ -373,10 +345,6 @@ A browser-compatible implementation of [`CompressionStream`][].
 added: v0.1.100
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 * {Object}
 
 Used to print to stdout and stderr. See the [`console`][] section.
@@ -410,8 +378,6 @@ changes:
     description: No longer behind `--experimental-global-webcrypto` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {Crypto}. This global is available
 only if the Node.js binary was compiled with including support for the
 `node:crypto` module.
@@ -431,8 +397,6 @@ changes:
     description: No longer behind `--experimental-global-webcrypto` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of the [Web Crypto API][].
 
 ## Class: `CryptoKey`
@@ -450,8 +414,6 @@ changes:
     description: No longer behind `--experimental-global-webcrypto` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {CryptoKey}. This global is available
 only if the Node.js binary was compiled with including support for the
 `node:crypto` module.
@@ -476,10 +438,6 @@ changes:
     description: No longer behind `--experimental-global-customevent` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 A browser-compatible implementation of {CustomEvent}.
 
 ## Class: `DecompressionStream`
@@ -506,10 +464,6 @@ changes:
     description: No longer experimental.
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 A browser-compatible implementation of the `Event` class. See
 [`EventTarget` and `Event` API][] for more details.
 
@@ -536,10 +490,6 @@ changes:
     description: No longer experimental.
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 A browser-compatible implementation of the `EventTarget` class. See
 [`EventTarget` and `Event` API][] for more details.
 
@@ -563,8 +513,6 @@ changes:
     description: No longer behind `--experimental-fetch` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of the [`fetch()`][] function.
 
 ```mjs
@@ -613,10 +561,6 @@ The following globals are available to use with `fetch`:
 added: v20.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 See {File}.
 
 ## Class: `FormData`
@@ -635,8 +579,6 @@ changes:
     description: No longer behind `--experimental-fetch` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {FormData}.
 
 ## `global`
@@ -645,8 +587,6 @@ A browser-compatible implementation of {FormData}.
 added: v0.1.27
 -->
 
-<!-- type=global -->
-
 > Stability: 3 - Legacy. Use [`globalThis`][] instead.
 
 * {Object} The global namespace object.
@@ -674,8 +614,6 @@ changes:
     description: No longer behind `--experimental-fetch` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {Headers}.
 
 ## `localStorage`
@@ -700,10 +638,6 @@ of a server, it is shared across all users and requests.
 added: v15.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `MessageChannel` class. See [`MessageChannel`][] for more details.
 
 ## Class: `MessageEvent`
@@ -712,10 +646,6 @@ The `MessageChannel` class. See [`MessageChannel`][] for more details.
 added: v15.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 A browser-compatible implementation of {MessageEvent}.
 
 ## Class: `MessagePort`
@@ -724,10 +654,6 @@ A browser-compatible implementation of {MessageEvent}.
 added: v15.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `MessagePort` class. See [`MessagePort`][] for more details.
 
 ## `module`
@@ -848,10 +774,6 @@ console.log(`The user-agent is ${navigator.userAgent}`); // Prints "Node.js/21"
 added: v19.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `PerformanceEntry` class. See [`PerformanceEntry`][] for more details.
 
 ## Class: `PerformanceMark`
@@ -860,10 +782,6 @@ The `PerformanceEntry` class. See [`PerformanceEntry`][] for more details.
 added: v19.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `PerformanceMark` class. See [`PerformanceMark`][] for more details.
 
 ## Class: `PerformanceMeasure`
@@ -872,10 +790,6 @@ The `PerformanceMark` class. See [`PerformanceMark`][] for more details.
 added: v19.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `PerformanceMeasure` class. See [`PerformanceMeasure`][] for more details.
 
 ## Class: `PerformanceObserver`
@@ -884,10 +798,6 @@ The `PerformanceMeasure` class. See [`PerformanceMeasure`][] for more details.
 added: v19.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `PerformanceObserver` class. See [`PerformanceObserver`][] for more details.
 
 ## Class: `PerformanceObserverEntryList`
@@ -896,10 +806,6 @@ The `PerformanceObserver` class. See [`PerformanceObserver`][] for more details.
 added: v19.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `PerformanceObserverEntryList` class. See
 [`PerformanceObserverEntryList`][] for more details.
 
@@ -909,10 +815,6 @@ The `PerformanceObserverEntryList` class. See
 added: v19.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The `PerformanceResourceTiming` class. See [`PerformanceResourceTiming`][] for
 more details.
 
@@ -922,8 +824,6 @@ more details.
 added: v16.0.0
 -->
 
-> Stability: 2 - Stable
-
 The [`perf_hooks.performance`][] object.
 
 ## `process`
@@ -932,10 +832,6 @@ The [`perf_hooks.performance`][] object.
 added: v0.1.7
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 * {Object}
 
 The process object. See the [`process` object][] section.
@@ -946,10 +842,6 @@ The process object. See the [`process` object][] section.
 added: v11.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 * `callback` {Function} Function to be queued.
 
 The `queueMicrotask()` method queues a microtask to invoke `callback`. If
@@ -1086,8 +978,6 @@ changes:
     description: No longer behind `--experimental-fetch` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {Response}.
 
 ## Class: `Request`
@@ -1106,8 +996,6 @@ changes:
     description: No longer behind `--experimental-fetch` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {Request}.
 
 ## `sessionStorage`
@@ -1128,10 +1016,6 @@ the currently running process, and is not shared between workers.
 added: v0.9.1
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 [`setImmediate`][] is described in the [timers][] section.
 
 ## `setInterval(callback, delay[, ...args])`
@@ -1140,10 +1024,6 @@ added: v0.9.1
 added: v0.0.1
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 [`setInterval`][] is described in the [timers][] section.
 
 ## `setTimeout(callback, delay[, ...args])`
@@ -1152,10 +1032,6 @@ added: v0.0.1
 added: v0.0.1
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 [`setTimeout`][] is described in the [timers][] section.
 
 ## Class: `Storage`
@@ -1175,10 +1051,6 @@ A browser-compatible implementation of {Storage}.
 added: v17.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The WHATWG [`structuredClone`][] method.
 
 ## Class: `SubtleCrypto`
@@ -1193,8 +1065,6 @@ changes:
     description: No longer behind `--experimental-global-webcrypto` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {SubtleCrypto}. This global is available
 only if the Node.js binary was compiled with including support for the
 `node:crypto` module.
@@ -1205,10 +1075,6 @@ only if the Node.js binary was compiled with including support for the
 added: v17.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The WHATWG {DOMException} class.
 
 ## Class: `TextDecoder`
@@ -1217,10 +1083,6 @@ The WHATWG {DOMException} class.
 added: v11.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The WHATWG `TextDecoder` class. See the [`TextDecoder`][] section.
 
 ## Class: `TextDecoderStream`
@@ -1243,10 +1105,6 @@ A browser-compatible implementation of [`TextDecoderStream`][].
 added: v11.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The WHATWG `TextEncoder` class. See the [`TextEncoder`][] section.
 
 ## Class: `TextEncoderStream`
@@ -1297,10 +1155,6 @@ A browser-compatible implementation of [`TransformStreamDefaultController`][].
 added: v10.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The WHATWG `URL` class. See the [`URL`][] section.
 
 ## Class: `URLPattern`
@@ -1311,8 +1165,6 @@ added: v24.0.0
 
 > Stability: 1 - Experimental
 
-<!-- type=global -->
-
 The WHATWG `URLPattern` class. See the [`URLPattern`][] section.
 
 ## Class: `URLSearchParams`
@@ -1321,10 +1173,6 @@ The WHATWG `URLPattern` class. See the [`URLPattern`][] section.
 added: v10.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 The WHATWG `URLSearchParams` class. See the [`URLSearchParams`][] section.
 
 ## Class: `WebAssembly`
@@ -1333,10 +1181,6 @@ The WHATWG `URLSearchParams` class. See the [`URLSearchParams`][] section.
 added: v8.0.0
 -->
 
-> Stability: 2 - Stable
-
-<!-- type=global -->
-
 * {Object}
 
 The object that acts as the namespace for all W3C
@@ -1358,8 +1202,6 @@ changes:
     description: No longer behind `--experimental-websocket` CLI flag.
 -->
 
-> Stability: 2 - Stable
-
 A browser-compatible implementation of {WebSocket}. Disable this API
 with the [`--no-experimental-websocket`][] CLI flag.