Skip to content

Commit 354161d

Browse files
committed
doc: add changelogs for events
PR-URL: #11489 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent 4f93601 commit 354161d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/api/events.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ myEmitter.emit('event');
222222
### Event: 'removeListener'
223223
<!-- YAML
224224
added: v0.9.3
225+
changes:
226+
- version: v6.1.0, v4.7.0
227+
pr-url: https://github.com/nodejs/node/pull/6394
228+
description: For listeners attached using `.once()`, the `listener` argument
229+
now yields the original listener function.
225230
-->
226231

227232
* `eventName` {String|Symbol} The event name
@@ -347,6 +352,11 @@ Returns the number of listeners listening to the event named `eventName`.
347352
### emitter.listeners(eventName)
348353
<!-- YAML
349354
added: v0.1.26
355+
changes:
356+
- version: v7.0.0
357+
pr-url: https://github.com/nodejs/node/pull/6881
358+
description: For listeners attached using `.once()` this returns the
359+
original listeners instead of wrapper functions now.
350360
-->
351361

352362
Returns a copy of the array of listeners for the event named `eventName`.

0 commit comments

Comments
 (0)