Repository navigation
util: doc deprecate legacy inspect signature #22753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -360,6 +360,9 @@ stream.write('With ES6'); | |
| <!-- YAML | ||
| added: v0.3.0 | ||
| changes: | ||
| - version: REPLACEME | ||
| pr-rul: https://github.com/nodejs/node/pull/22753 | ||
| description: Deprecated legacy signature. | ||
| - version: v10.6.0 | ||
| pr-url: https://github.com/nodejs/node/pull/20725 | ||
| description: Inspecting linked lists and similar objects is now possible | ||
|
|
@@ -384,6 +387,9 @@ changes: | |
| - version: v6.1.0 | ||
| pr-url: https://github.com/nodejs/node/pull/6465 | ||
| description: The `showProxy` option is supported now. | ||
| - version: v0.9.3 | ||
| pr-url: https://github.com/nodejs/node-v0.x-archive/issues/4085 | ||
| description: Take an "options" object as second argument | ||
| --> | ||
|
|
||
| * `object` {any} Any JavaScript primitive or `Object`. | ||
|
|
@@ -424,6 +430,9 @@ changes: | |
| example below. **Default:** `true`. | ||
| * Returns: {string} The representation of passed object | ||
|
|
||
| Deprecation notice: The legacy function signature that was changed in v0.9.3 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: remove
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest simplifying this greatly: The legacy function signature `util.inspect(object, [showHidden], [depth], [colors])` is deprecated.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One problem with this is that it can be interpreted as saying that |
||
| `util.inspect(object, [showHidden], [depth], [colors])` has been deprecated. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’d put this closer to the end of the description… this is probably not relevant to a lot of people (and if it is, we shouldn’t deprecate it) |
||
|
|
||
| The `util.inspect()` method returns a string representation of `object` that is | ||
| intended for debugging. The output of `util.inspect` may change at any time | ||
| and should not be depended upon programmatically. Additional `options` may be | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: rul