Trott · GitHub

@Trott added notable-change

PRs with changes that should be highlighted in changelogs.

semver-major

PRs that contain breaking changes and should be released in the next major version.

util

Issues and PRs related to the built-in util module.

labels

Oct 22, 2017

@Trott Trott mentioned this pull request

Oct 22, 2017

Closed

addaleax

@Trott

Closed

4 tasks

vsemozhetbyt

BridgeAR

@Trott

vsemozhetbyt

@Trott

jasnell

jasnell

mcollina

In test-util-inspect, apply ESLint exception for accessor-pairs rule
narrowly. It had been applied to nearly the whole file, but is only
needed for two lines.
Improve documentation for `util.deprecate()`. In particular, provide
complete function signature, document arguments, and document return
value.
If another function has already emitted the deprecation warning with the
same code as the warning that is about to be emitted, do not emit the
warning.

@Trott

Change documentation-only deprecation for custom inspection using
`object.inspect` property to a runtime deprecation.
Refs: nodejs#15549

@Trott

Trott added a commit to Trott/io.js that referenced this pull request

Nov 17, 2017
In test-util-inspect, apply ESLint exception for accessor-pairs rule
narrowly. It had been applied to nearly the whole file, but is only
needed for two lines.
PR-URL: nodejs#16393
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Trott added a commit to Trott/io.js that referenced this pull request

Nov 17, 2017
Improve documentation for `util.deprecate()`. In particular, provide
complete function signature, document arguments, and document return
value.
PR-URL: nodejs#16393
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Trott added a commit to Trott/io.js that referenced this pull request

Nov 17, 2017
If another function has already emitted the deprecation warning with the
same code as the warning that is about to be emitted, do not emit the
warning.
This is a breaking change. Previously, different functions could emit
the same deprecation warning multiple times. This was a known bug rather
than a feature, but this change is being treated as a breaking change
out of caution. Identical deprecation warnings should not be emitted.
PR-URL: nodejs#16393
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Trott added a commit to Trott/io.js that referenced this pull request

Nov 17, 2017
Change documentation-only deprecation for custom inspection using
`object.inspect` property to a runtime deprecation.
This is a breaking change. Custom inspection via `object.inspect` is
deprecated because there is a more robust Symbol-based alternative to
`.inspect` and the custom inspection via `object.inspect` feature means
that people can accidentally break `console.log()` simply by attaching a
`.inspect` property to their objects. Note that since this is a
deprecation, the custom inspection will still work. The breaking change
is simply the printing of a warning which could alarm users, break tests
or other things that might be dependent on specific output, etc.
PR-URL: nodejs#16393
Ref: nodejs#15549
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Merged

@Trott

Trott deleted the runtime-deprecation-custom-inspect branch

January 13, 2022 22:47

Read the original on github.com ↗