diff --git a/doc/api/console.md b/doc/api/console.md index 42968d2eb9ab0d..cd229c0a0f81df 100644 --- a/doc/api/console.md +++ b/doc/api/console.md @@ -88,6 +88,9 @@ changes: pr-url: https://github.com/nodejs/node/pull/19372 description: The `Console` constructor now supports an `options` argument, and the `colorMode` option was introduced. + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/24978 + description: The `inspectOptions` option is introduced. --> * `options` {Object} @@ -98,8 +101,11 @@ changes: * `colorMode` {boolean|string} Set color support for this `Console` instance. Setting to `true` enables coloring while inspecting values, setting to `'auto'` will make color support depend on the value of the `isTTY` property - and the value returned by `getColorDepth()` on the respective stream. + and the value returned by `getColorDepth()` on the respective stream. This + option can not be used, if `inspectOptions.colors` is set as well. **Default:** `'auto'`. + * `inspectOptions` {Object} Specifies options that are passed along to + [`util.inspect()`][]. Creates a new `Console` with one or two writable stream instances. `stdout` is a writable stream to print log or info output. `stderr` is used for warning or diff --git a/doc/api/errors.md b/doc/api/errors.md index b867dc4f1207c1..68e6955925c117 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1141,6 +1141,12 @@ is set for the `Http2Stream`. `http2.connect()` was passed a URL that uses any protocol other than `http:` or `https:`. + +### ERR_INCOMPATIBLE_OPTION_PAIR + +An option pair is incompatible with each other and can not be used at the same +time. + ### ERR_INSPECTOR_ALREADY_CONNECTED @@ -1804,20 +1810,6 @@ An attempt was made to load a module with an unknown or unsupported format. An invalid or unknown process signal was passed to an API expecting a valid signal (such as [`subprocess.kill()`][]). - -### ERR_UNKNOWN_STDIN_TYPE - -An attempt was made to launch a Node.js process with an unknown `stdin` file -type. This error is usually an indication of a bug within Node.js itself, -although it is possible for user code to trigger it. - - -### ERR_UNKNOWN_STREAM_TYPE - -An attempt was made to launch a Node.js process with an unknown `stdout` or -`stderr` file type. This error is usually an indication of a bug within Node.js -itself, although it is possible for user code to trigger it. - ### ERR_V8BREAKITERATOR @@ -2074,6 +2066,28 @@ kind of internal Node.js error that should not typically be triggered by user code. Instances of this error point to an internal bug within the Node.js binary itself. + +### ERR_UNKNOWN_STDIN_TYPE + + +An attempt was made to launch a Node.js process with an unknown `stdin` file +type. This error is usually an indication of a bug within Node.js itself, +although it is possible for user code to trigger it. + + +### ERR_UNKNOWN_STREAM_TYPE + + +An attempt was made to launch a Node.js process with an unknown `stdout` or +`stderr` file type. This error is usually an indication of a bug within Node.js +itself, although it is possible for user code to trigger it. + ### ERR_VALUE_OUT_OF_RANGE