Skip to content

Commit dc19309

Browse files
jasnelldanielleadams
authored andcommitted
events: graduate Event, EventTarget, AbortController
Graduate these from experimental status Signed-off-by: James M Snell <[email protected]> PR-URL: #35949 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 186ad24 commit dc19309

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

doc/api/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ changes:
210210
description: --experimental-abortcontroller is no longer required.
211211
-->
212212

213-
Experimental `AbortController` and `AbortSignal` support is enabled by default.
213+
`AbortController` and `AbortSignal` support is enabled by default.
214214
Use of this command-line flag is no longer required.
215215

216216
### `--experimental-import-meta-resolve`

doc/api/events.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,14 +1137,15 @@ setMaxListeners(5, target, emitter);
11371137
<!-- YAML
11381138
added: v14.5.0
11391139
changes:
1140+
- version: REPLACEME
1141+
pr-url: https://github.com/nodejs/node/pull/35949
1142+
description: No longer experimental.
11401143
- version: v15.0.0
11411144
pr-url: https://github.com/nodejs/node/pull/35496
11421145
description:
11431146
The `EventTarget` and `Event` classes are now available as globals.
11441147
-->
11451148

1146-
> Stability: 1 - Experimental
1147-
11481149
The `EventTarget` and `Event` objects are a Node.js-specific implementation
11491150
of the [`EventTarget` Web API][] that are exposed by some Node.js core APIs.
11501151
Neither the `EventTarget` nor `Event` classes are available for end

doc/api/globals.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ accessible.
2020
## Class: `AbortController`
2121
<!--YAML
2222
added: v15.0.0
23+
changes:
24+
- version: REPLACEME
25+
pr-url: https://github.com/nodejs/node/pull/35949
26+
description: No longer experimental.
2327
-->
2428

25-
> Stability: 1 - Experimental
26-
2729
<!-- type=global -->
2830

2931
A utility class used to signal cancelation in selected `Promise`-based APIs.
@@ -172,24 +174,28 @@ Used to print to stdout and stderr. See the [`console`][] section.
172174
## `Event`
173175
<!-- YAML
174176
added: v15.0.0
177+
changes:
178+
- version: REPLACEME
179+
pr-url: https://github.com/nodejs/node/pull/35949
180+
description: No longer experimental.
175181
-->
176182

177183
<!-- type=global -->
178184

179-
> Stability: 1 - Experimental
180-
181185
A browser-compatible implementation of the `Event` class. See
182186
[`EventTarget` and `Event` API][] for more details.
183187

184188
## `EventTarget`
185189
<!-- YAML
186190
added: v15.0.0
191+
changes:
192+
- version: REPLACEME
193+
pr-url: https://github.com/nodejs/node/pull/35949
194+
description: No longer experimental.
187195
-->
188196

189197
<!-- type=global -->
190198

191-
> Stability: 1 - Experimental
192-
193199
A browser-compatible implementation of the `EventTarget` class. See
194200
[`EventTarget` and `Event` API][] for more details.
195201

lib/internal/abort_controller.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const {
2121
} = require('internal/event_target');
2222
const {
2323
customInspectSymbol,
24-
emitExperimentalWarning
2524
} = require('internal/util');
2625
const { inspect } = require('internal/util/inspect');
2726

@@ -89,7 +88,6 @@ const kSignal = Symbol('signal');
8988
class AbortController {
9089
constructor() {
9190
this[kSignal] = createAbortSignal();
92-
emitExperimentalWarning('AbortController');
9391
}
9492

9593
get signal() { return this[kSignal]; }

0 commit comments

Comments
 (0)