0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/doc
Anna Henningsen 9d4ab90117
buffer: do deprecation warning outside node_modules
In addition to `--pending-deprecation`, emit a deprecation warning
for usage of the `Buffer()` constructor for call sites that are outside
of `node_modules`.

The goal of this is to better target developers, rather than
burdening users with an omnipresent and quickly ignored warning.

This implements the result of a TSC meeting discussion
from March 22, 2018.

PR-URL: https://github.com/nodejs/node/pull/19524
Refs: https://github.com/nodejs/node/issues/19079#issuecomment-375121443
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
2018-04-10 00:43:41 +02:00
..
api buffer: do deprecation warning outside node_modules 2018-04-10 00:43:41 +02:00
api_assets doc: fix paragraph line-height issue 2017-10-15 12:39:49 +02:00
changelogs 2018-04-05, Version 9.11.1 (Current) 2018-04-05 01:20:09 -04:00
guides doc: added missing reference to test coverage info 2018-04-06 14:44:44 -07:00
.eslintrc.yaml doc: enable eslint prefer-template rule 2018-02-22 14:56:17 +00:00
first_timer_badge.png doc: add recommendations for first timers 2017-10-24 10:26:20 -04:00
full-white-stripe.jpg
node.1 trace_events: add file pattern cli option 2018-03-04 12:07:39 +01:00
onboarding-extras.md doc: move who-to-cc to COLABORATOR_GUIDE.md 2018-03-21 20:27:36 -07:00
onboarding.md doc: move who-to-cc to COLABORATOR_GUIDE.md 2018-03-21 20:27:36 -07:00
osx_installer_logo.png
releases.md doc: fix punctuation in doc/releases.md 2018-04-09 23:22:20 +02:00
STYLE_GUIDE.md doc,tools: formalize, unify, codify default values 2018-04-04 12:30:36 +03:00
template.html doc: responsive docs, rewrite font sizes 2017-10-10 21:28:15 +02:00
thin-white-stripe.jpg