Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2020-06-28 06:26:32 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-07-01 01:27:43 +0300
commiteb8fc2bf0f9283eb10751927de8c59e1a985366d (patch)
treea78751aedb820cb6f4837be029732300bb96c6f9 /doc/api/events.md
parent0edeeec3ec317bb8ed3bc9f6289eb9e7bfe0c61b (diff)
2020-06-30, Version 14.5.0 (Current)
Notable changes: build: * (SEMVER-MINOR) reset embedder string to "-node.0" (Michaël Zasso) https://github.com/nodejs/node/pull/33376 cli: * (SEMVER-MINOR) add alias for report-directory to make it consistent (AshCripps) https://github.com/nodejs/node/pull/33587 crypto: * (SEMVER-MINOR) allow KeyObjects in postMessage (Tobias Nießen) https://github.com/nodejs/node/pull/33360 deps: * (SEMVER-MINOR) V8: cherry-pick 0d6debcc5f08 (Michaël Zasso) https://github.com/nodejs/node/pull/33376 * (SEMVER-MINOR) update V8 to 8.3.110.9 (Michaël Zasso) https://github.com/nodejs/node/pull/33376 dgram: * (SEMVER-MINOR) allow typed arrays in .send() (Sarat Addepalli) https://github.com/nodejs/node/pull/22413 events: * (SEMVER-MINOR) initial implementation of experimental EventTarget (James M Snell) https://github.com/nodejs/node/pull/33556 fs: * (SEMVER-MINOR) implement lutimes (Maël Nison) https://github.com/nodejs/node/pull/33399 http: * (SEMVER-MINOR) expose host and protocol on ClientRequest (wenningplus) https://github.com/nodejs/node/pull/33803 * (SEMVER-MINOR) add maxTotalSockets to agent class (rickyes) https://github.com/nodejs/node/pull/33617 * (SEMVER-MINOR) return this from OutgoingMessage#destroy() (Colin Ihrig) https://github.com/nodejs/node/pull/32789 * (SEMVER-MINOR) return this from ClientRequest#destroy() (Colin Ihrig) https://github.com/nodejs/node/pull/32789 * (SEMVER-MINOR) return this from IncomingMessage#destroy() (Colin Ihrig) https://github.com/nodejs/node/pull/32789 * (SEMVER-MINOR) added scheduling option to http agent (delvedor) https://github.com/nodejs/node/pull/33278 http2: * (SEMVER-MINOR) return this for Http2ServerRequest#setTimeout (Pranshu Srivastava) https://github.com/nodejs/node/pull/33994 * (SEMVER-MINOR) do not modify explicity set date headers (Pranshu Srivastava) https://github.com/nodejs/node/pull/33160 process: * (SEMVER-MINOR) add unhandled-rejection throw and warn-with-error-code (Dan Fabulich) https://github.com/nodejs/node/pull/33475 src: * (SEMVER-MINOR) store key data in separate class (Tobias Nießen) https://github.com/nodejs/node/pull/33360 * (SEMVER-MINOR) add NativeKeyObject base class (Tobias Nießen) https://github.com/nodejs/node/pull/33360 * (SEMVER-MINOR) rename internal key handles to KeyObjectHandle (Tobias Nießen) https://github.com/nodejs/node/pull/33360 * (SEMVER-MINOR) add equality operators for BaseObjectPtr (Anna Henningsen) https://github.com/nodejs/node/pull/33772 * (SEMVER-MINOR) introduce BaseObject base FunctionTemplate (Anna Henningsen) https://github.com/nodejs/node/pull/33772 * (SEMVER-MINOR) add public APIs to manage v8::TracingController (Anna Henningsen) https://github.com/nodejs/node/pull/33850 stream*: * runtime deprecate Transform._transformState (Robert Nagy) https://github.com/nodejs/node/pull/32763 win: * (SEMVER-MINOR) allow skipping the supported platform check (João Reis) https://github.com/nodejs/node/pull/33176 worker: * (SEMVER-MINOR) add public method for marking objects as untransferable (Anna Henningsen) https://github.com/nodejs/node/pull/33979 * (SEMVER-MINOR) emit `'messagerror'` events for failed deserialization (Anna Henningsen) https://github.com/nodejs/node/pull/33772 * (SEMVER-MINOR) allow passing JS wrapper objects via postMessage (Anna Henningsen) https://github.com/nodejs/node/pull/33772 * (SEMVER-MINOR) allow transferring/cloning generic BaseObjects (Anna Henningsen) https://github.com/nodejs/node/pull/33772 worker,fs: * (SEMVER-MINOR) make FileHandle transferable (Anna Henningsen) https://github.com/nodejs/node/pull/33772 zlib: * (SEMVER-MINOR) add `maxOutputLength` option (unknown) https://github.com/nodejs/node/pull/33516 PR-URL: https://github.com/nodejs/node/pull/34093
Diffstat (limited to 'doc/api/events.md')
-rw-r--r--doc/api/events.md64
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/api/events.md b/doc/api/events.md
index d008b95641e..39950b5c12f 100644
--- a/doc/api/events.md
+++ b/doc/api/events.md
@@ -939,7 +939,7 @@ composed of the emitted event arguments.
## `EventTarget` and `Event` API
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
> Stability: 1 - Experimental
@@ -1056,7 +1056,7 @@ The `EventTarget` does not implement any special default handling for
### Class: `Event`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
The `Event` object is an adaptation of the [`Event` Web API][]. Instances
@@ -1064,7 +1064,7 @@ are created internally by Node.js.
#### `event.bubbles`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {boolean} Always returns `false`.
@@ -1073,7 +1073,7 @@ This is not used in Node.js and is provided purely for completeness.
#### `event.cancelBubble()`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
Alias for `event.stopPropagation()`. This is not used in Node.js and is
@@ -1081,14 +1081,14 @@ provided purely for completeness.
#### `event.cancelable`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {boolean} True if the event was created with the `cancelable` option.
#### `event.composed`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {boolean} Always returns `false`.
@@ -1097,7 +1097,7 @@ This is not used in Node.js and is provided purely for completeness.
#### `event.composedPath()`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
Returns an array containing the current `EventTarget` as the only entry or
@@ -1106,7 +1106,7 @@ Node.js and is provided purely for completeness.
#### `event.currentTarget`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {EventTarget} The `EventTarget` dispatching the event.
@@ -1115,7 +1115,7 @@ Alias for `event.target`.
#### `event.defaultPrevented`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {boolean}
@@ -1125,7 +1125,7 @@ called.
#### `event.eventPhase`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {number} Returns `0` while an event is not being dispatched, `2` while
@@ -1135,7 +1135,7 @@ This is not used in Node.js and is provided purely for completeness.
#### `event.isTrusted`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {boolean} Always returns `false`.
@@ -1144,14 +1144,14 @@ This is not used in Node.js and is provided purely for completeness.
#### `event.preventDefault()`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
Sets the `defaultPrevented` property to `true` if `cancelable` is `true`.
#### `event.returnValue`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {boolean} True if the event has not been canceled.
@@ -1160,7 +1160,7 @@ This is not used in Node.js and is provided purely for completeness.
#### `event.srcElement`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {EventTarget} The `EventTarget` dispatching the event.
@@ -1169,28 +1169,28 @@ Alias for `event.target`.
#### `event.stopImmediatePropagation()`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
Stops the invocation of event listeners after the current one completes.
#### `event.stopPropagation()`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
This is not used in Node.js and is provided purely for completeness.
#### `event.target`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {EventTarget} The `EventTarget` dispatching the event.
#### `event.timeStamp`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {number}
@@ -1199,7 +1199,7 @@ The millisecond timestamp when the `Event` object was created.
#### `event.type`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Type: {string}
@@ -1208,12 +1208,12 @@ The event type identifier.
### Class: `EventTarget`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
#### `eventTarget.addEventListener(type, listener[, options])`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1255,7 +1255,7 @@ target.removeEventListener('foo', handler, { capture: true });
#### `eventTarget.dispatchEvent(event)`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `event` {Object|Event}
@@ -1269,7 +1269,7 @@ were registered.
#### `eventTarget.removeEventListener(type, listener)`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1281,7 +1281,7 @@ Removes the `listener` from the list of handlers for event `type`.
### Class: `NodeEventTarget`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Extends: {EventTarget}
@@ -1291,7 +1291,7 @@ that emulates a subset of the `EventEmitter` API.
#### `nodeEventTarget.addListener(type, listener[, options])`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1308,7 +1308,7 @@ equivalent `EventEmitter` API. The only difference between `addListener()` and
#### `nodeEventTarget.eventNames()`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* Returns: {string[]}
@@ -1318,7 +1318,7 @@ of event `type` names for which event listeners are registered.
#### `nodeEventTarget.listenerCount(type)`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1330,7 +1330,7 @@ of event listeners registered for the `type`.
#### `nodeEventTarget.off(type, listener)`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1342,7 +1342,7 @@ Node.js-speciic alias for `eventTarget.removeListener()`.
#### `nodeEventTarget.on(type, listener[, options])`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1356,7 +1356,7 @@ Node.js-specific alias for `eventTarget.addListener()`.
#### `nodeEventTarget.once(type, listener[, options])`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1371,7 +1371,7 @@ with the `once` option set to `true`.
#### `nodeEventTarget.removeAllListeners([type])`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}
@@ -1382,7 +1382,7 @@ listeners.
#### `nodeEventTarget.removeListener(type, listener)`
<!-- YAML
-added: REPLACEME
+added: v14.5.0
-->
* `type` {string}