From f0e5afc96843a88f109b87b0bcfbd2754e48efca Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 21 Oct 2018 12:37:26 -0700 Subject: [PATCH] src: fix missing deprecation assignment PR-URL: https://github.com/nodejs/node/pull/23809 Reviewed-By: Refael Ackermann Reviewed-By: Vse Mozhet Byt Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- doc/api/deprecations.md | 19 ++++++++++++++++++- lib/internal/bootstrap/node.js | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 33e98c4cd4404d..e4955f439250d9 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2235,7 +2235,7 @@ It will become an error in future versions of Node.js. ### DEP0119: process.binding('uv').errname() private API - + +Type: Runtime + +Windows Performance Counter support has been removed from Node.js. The +undocumented `COUNTER_NET_SERVER_CONNECTION()`, +`COUNTER_NET_SERVER_CONNECTION_CLOSE()`, `COUNTER_HTTP_SERVER_REQUEST()`, +`COUNTER_HTTP_SERVER_RESPONSE()`, `COUNTER_HTTP_CLIENT_REQUEST()`, and +`COUNTER_HTTP_CLIENT_RESPONSE()` functions have been deprecated. + [`--pending-deprecation`]: cli.html#cli_pending_deprecation [`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index f0ca57afd4a758..2d99885750fb37 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -222,7 +222,7 @@ enumerable: false, value: deprecate(noop, `COUNTER_${names[n]}() is deprecated.`, - 'DEP00XX') + 'DEP0120') }); } }