Skip to content
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

v11.13.0 release proposal #26949

Merged
merged 164 commits into from
Mar 28, 2019
Merged
Changes from 1 commit
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
df55731
events: add once method to use promises with EventEmitter
mcollina Feb 13, 2019
03dba72
process: call `prepareMainThreadExecution` in `node inspect`
joyeecheung Mar 6, 2019
cc606e2
process: set up process warning handler in pre-execution
joyeecheung Mar 6, 2019
4200fc3
process: handle process.env.NODE_V8_COVERAGE in pre-execution
joyeecheung Mar 6, 2019
cf1117a
process: move deprecation warning setup for --debug* args
refack Mar 14, 2019
b75af15
lib: move format and formatWithOptions into internal/util/inspect.js
joyeecheung Mar 6, 2019
b0afac2
process: call prepareMainThreadExecution in all main thread scripts
joyeecheung Mar 6, 2019
9ce08c8
lib: explicitly initialize debuglog during bootstrap
joyeecheung Mar 6, 2019
070faf0
tty: add hasColors function
BridgeAR Jan 19, 2019
e531258
test: make cctest full Node.js environment
addaleax Mar 5, 2019
a13f0a6
src: add public API for linked bindings
addaleax Mar 5, 2019
d0801a1
src: deprecate AddPromiseHook()
addaleax Mar 8, 2019
9092e12
v8: integrate node-heapdump into core
jasnell Mar 7, 2019
892282d
test: whitelist the expected modules in test-bootstrap-modules.js
richardlau Mar 8, 2019
058cf43
doc: edit "Technical How-To" section of guide
Trott Mar 11, 2019
3b471db
doc: add Gireesh to TSC
Trott Mar 14, 2019
1b45534
report: remove unnecessary return in setters
Trott Mar 12, 2019
24e96b2
net: some scattered cleanup
oyyd Mar 13, 2019
c96946d
http: delay ret declaration in method _flushOutput
gengjiawen Mar 10, 2019
e8412bc
repl: remove redundant initialization
gengjiawen Mar 10, 2019
1c1305d
lib: make lowerProto scope more clear
gengjiawen Mar 10, 2019
925b645
src: remove usage of deprecated IsNearDeath
targos Mar 13, 2019
e3bae20
report: use DiagnosticFilename for default filename
richardlau Mar 14, 2019
5c41876
report: use LocalTime from DiagnosticFilename
richardlau Mar 14, 2019
e8e8eac
doc: update copy/paste error message in Troubleshooting
Trott Mar 14, 2019
cfa152b
doc: simplify Troubleshooting text
Trott Mar 14, 2019
6c90b7f
src: shutdown node in-flight
gireeshpunathil Jun 12, 2018
875ddcb
test: remove unnecessary semicolon after macro
hashseed Mar 12, 2019
72cda51
tools: tidy function arguments in eslint rules
Trott Mar 14, 2019
00a6f76
test,console: add testing for monkeypatching of console stdio
Trott Mar 10, 2019
74c6f57
crypto: expose KeyObject class
panva Mar 11, 2019
1f0a283
doc: note about DNS ANY queries / RFC 8482
tlhunter Mar 15, 2019
c65ff3d
test: fix test-heapdump-worker
addaleax Mar 17, 2019
51b8a89
src: inline macro DISALLOW_COPY_AND_ASSIGN
gengjiawen Mar 13, 2019
3637e71
src: use deleted function instead of private function in class AsyncWrap
gengjiawen Mar 16, 2019
01778f5
report: tidy up included headers
richardlau Mar 16, 2019
e39a468
child_process: ensure message sanity at source
gireeshpunathil Dec 2, 2018
2d2b6a8
src: remove unused variable in class InspectorSocketServer
gengjiawen Mar 13, 2019
b38cf49
doc: make RFC references consistent
Trott Mar 18, 2019
1385b29
tools: update lint-md.js to lint rfc name format
Trott Mar 18, 2019
0c06631
doc: simplify force-push guidelines
Trott Mar 16, 2019
30d7f67
tools: update ESLint to 5.15.2
cjihrig Mar 15, 2019
15ec381
src: use EVPKeyPointer in more places
bnoordhuis Mar 13, 2019
6744b8c
doc: add ZYSzys to collaborators
ZYSzys Mar 18, 2019
eafbfad
src: elevate v8 namespaces for PropertyAttribute
gengjiawen Mar 15, 2019
8ba0da5
src,win: fix usage of deprecated v8::Object::Set
targos Mar 18, 2019
31995e4
test: fix intrinsics test
BridgeAR Mar 14, 2019
d075814
src: replace heap_utils.createHeapSnapshot with v8.getHeapSnapshot
joyeecheung Mar 15, 2019
2d68988
test: update test for libuv update
cjihrig Mar 16, 2019
54ffe61
deps: upgrade to libuv 1.27.0
cjihrig Mar 16, 2019
0303aba
doc: update spawnSync() status value possibilities
Trott Mar 15, 2019
ea42514
test: add fs.watchFile() + worker.terminate() test
addaleax Jun 6, 2018
9c83002
test: use EC cert property now that it exists
sam-github Mar 11, 2019
a44f98e
lib: run prepareMainThreadExecution for third_party_main
addaleax Mar 15, 2019
148c2ca
doc: add Note of options.stdio into child_process
koh110 Mar 12, 2019
1073e54
http2: delete unused enum in node_http2.h
gengjiawen Mar 16, 2019
8cafd83
tty: add NO_COLOR and FORCE_COLOR support
BridgeAR Mar 7, 2019
0e4ae00
benchmark: use gfm for clarity
gengjiawen Mar 17, 2019
8de9fe9
doc: document `error` event is optionally emitted after `.destroy()`
tadjik1 Mar 11, 2019
0bd82c9
perf_hooks: reset prev_ before starting ELD timer
Flarna Mar 15, 2019
bc9f6d8
doc: condense LTS material in Collaborator Guide
Trott Mar 17, 2019
fc0aa50
doc: remove How Does LTS Work section from Collaborator Guide
Trott Mar 17, 2019
5b8eae4
report: remove duplicate TIME_TYPE
cjihrig Mar 16, 2019
7ebd6bd
test: optimize test-http2-large-file
Trott Mar 18, 2019
c535e48
test: refresh tmpdir in child-process-server-close
lpinca Mar 18, 2019
560ff91
doc: remove discord community
aymen94 Mar 20, 2019
3ab438a
benchmark: replace deprecated and eliminate var in buffer-from.js
gengjiawen Mar 11, 2019
cc76f3f
lib: use Array#includes instead of Array#indexOf
starkwang Mar 18, 2019
e916a2a
lib: remove usage of require('util')
dnlup Mar 19, 2019
1458711
test: remove internal error tests
BridgeAR Mar 18, 2019
bff5d30
lib: move extra properties into error creation
BridgeAR Mar 18, 2019
c7b34cd
doc: fix comma of the list in worker_threads.md
nodejh Mar 21, 2019
e49cd40
console: fix trace function
BridgeAR Mar 19, 2019
7022609
events: load internal/errors eagerly
joyeecheung Mar 19, 2019
de353b7
perf_hooks: load internal/errors eagerly
joyeecheung Mar 19, 2019
db7c4ac
assert: reduce internal usage of public require of util
sasurau4 Mar 19, 2019
ad5d8e3
src: refactor thread stopping mechanism
addaleax Mar 18, 2019
14c3af7
src: only open HandleScope when necessary
addaleax Mar 18, 2019
f597b37
src: do not make `Resize(0)`’d buffers base `nullptr`
addaleax Mar 18, 2019
b552139
stream: reduce internal usage of public require of util
BeniCheni Mar 16, 2019
26361d1
src: add fast path for equal size to `Reallocate()`
addaleax Mar 10, 2019
4163864
build: use Xenial and gcc 6 on Travis
richardlau Mar 17, 2019
b480c79
build: temporarily don't run tests on Travis
richardlau Mar 22, 2019
509ad40
build: restore running tests on Travis
richardlau Mar 22, 2019
6911678
src: use explicit casts to silence conversion warnings
zbjornson Mar 19, 2019
6874288
test: fix test-console-stdio-setters to test setters
Trott Mar 20, 2019
79d6895
src: initialize worker's stack_base_ field
cjihrig Mar 18, 2019
04e9d5a
repl: remove usage of require('util') in `repl/history`
dnlup Mar 20, 2019
41bd7a6
test: complete console.assert() coverage
Trott Mar 20, 2019
8ca7d56
test: fix pummel/test-tls-session-timeout
Trott Mar 22, 2019
963d7d1
test: move pummel tls test to sequential
Trott Mar 22, 2019
de50346
src: apply clang-tidy performance-faster-string-find
gengjiawen Mar 20, 2019
6de2437
src: apply clang-tidy readability-delete-null-pointer
gengjiawen Mar 20, 2019
c127bec
policy: reduce internal usage of public util for manifest.js
Naturalclar Mar 21, 2019
dae1e30
dgram: remove usage of public require('util')
dnlup Mar 21, 2019
08383a7
tools: update ESLint to 5.15.3
cjihrig Mar 18, 2019
41761cc
process: load internal/async_hooks before inspector hooks registration
joyeecheung Mar 22, 2019
7e072c8
doc: change error message to 'not defined'
MohammedEssehemy Mar 22, 2019
352c31c
test: strengthen test-worker-prof
gireeshpunathil Mar 12, 2019
78e6ec7
doc: edit LTS material in Collaborator Guide
Trott Mar 21, 2019
57d3ba1
test: refactor test-dgram-broadcast-multi-process
Trott Mar 21, 2019
a2d2756
assert: reduce internal usage of public require of util
toshi1127 Mar 18, 2019
0f9a779
trace_events: remove usage of require('util')
dnlup Mar 20, 2019
fbe6d30
module: remove usage of require('util')
dnlup Mar 20, 2019
15af519
http2: reduce usage of require('util')
toshi1127 Mar 19, 2019
04c7db3
url: remove usage of require('util')
toshi1127 Mar 20, 2019
4919e4b
test: move test-https-connect-localport to sequential
Trott Mar 23, 2019
011c205
test: use common.PORT instead of hardcoded number
Trott Mar 23, 2019
838fb95
test: replace localhost IP with 'localhost' for TLS conformity
Trott Mar 23, 2019
3cae010
test: refactor test-https-connect-localport
Trott Mar 23, 2019
f263f98
console: remove unreachable code
Trott Mar 22, 2019
5d992f5
test: delete pummel/test-dtrace-jsstack
Trott Mar 22, 2019
977f5ac
doc: minor edit to worker_threads.md
Trott Mar 22, 2019
64a9229
lib: remove usage of require('util')
dnlup Mar 19, 2019
bf2b57e
lib: remove usage of require('util')
dnlup Mar 19, 2019
83f6ec8
tty: remove util.inherits usage
nissy-dev Mar 20, 2019
414d6f5
module: remove usage of require('util') in `cjs/loader.js`
dnlup Mar 21, 2019
037e3fd
module: remove usage of require('util') in `esm/loader.js`
dnlup Mar 20, 2019
4cafd74
module: remove usage of require('util') in `esm/translators.js`
dnlup Mar 21, 2019
5e06c3b
net: remove usage of require('util')
dnlup Mar 21, 2019
dd2f2cc
process: remove usage of require('util') in `per_thread.js`
dnlup Mar 20, 2019
a20bf75
Revert "net: remove usage of require('util')"
Trott Mar 25, 2019
54753f2
src: micro-optimize ALPN negotiation
bnoordhuis Mar 21, 2019
220f67c
src: guard exit label when inspector disabled
danbev Mar 20, 2019
8b65aa7
process: make stdout and stderr emit 'close' on destroy
mcollina Mar 15, 2019
fef2a54
tools: enable getter-return lint rule
cjihrig Mar 12, 2019
5f3b850
lib: reduce usage of require('util')
dnlup Mar 19, 2019
14cc4f2
doc: add option to require 'process' to api docs
dkundel Mar 20, 2019
9a5c149
errors: remove usage of require('util')
dnlup Mar 22, 2019
13eb1d8
src: store onread callback in internal field
addaleax Mar 19, 2019
d80cd50
tools: remove eslint rule no-let-in-for-declaration
gengjiawen Mar 17, 2019
3574b62
inspector: always set process.binding('inspector').callAndPauseOnStart
joyeecheung Mar 20, 2019
3d9839b
src: add include guard for trace_event_common.h
gengjiawen Mar 24, 2019
92b666a
tools: windows_boxstarter "choco install python -y" for Python 3
cclauss Mar 4, 2019
a545cfe
doc: edit "How Can I Help?" in Collaborator Guide
Trott Mar 24, 2019
4af9ff0
src: move AsyncHooks out of Environment
joyeecheung Mar 20, 2019
6de1220
src: move AsyncCallbackScope out of Environment
joyeecheung Mar 20, 2019
495e5e9
src: move ImmediateInfo out of Environment
joyeecheung Mar 20, 2019
bc69a81
src: move TickInfo out of Environment
joyeecheung Mar 20, 2019
7e7f077
src: move TrackingTraceStateObserver out of Environment
joyeecheung Mar 20, 2019
f50c9c6
src: move ShouldNotAbortOnUncaughtScope out of Environment
joyeecheung Mar 20, 2019
119f83b
doc: mark settings as optional and add callback
BridgeAR Mar 24, 2019
0b2f900
stream: make sure 'readable' is emitted before ending the stream
mcollina Feb 11, 2019
249bf50
stream: fix regression introduced in #26059
mcollina Mar 13, 2019
be3ea2a
process: handle node --debug deprecation in pre-execution
joyeecheung Mar 13, 2019
ed7599b
crypto: allow deriving public from private keys
tniessen Jan 26, 2019
f2a07df
crypto: improve error handling in parseKeyEncoding
tniessen Mar 5, 2019
e044563
src,lib: allow running multiple per-context files
addaleax Mar 7, 2019
1e669b2
src,lib: make DOMException available in all Contexts
addaleax Mar 7, 2019
3c6f12c
worker: implement worker.moveMessagePortToContext()
addaleax Sep 9, 2017
235bb73
module: do not share the internal require function with public loaders
joyeecheung Mar 9, 2019
9ef0a29
test: refactor trace event category tests
joyeecheung Mar 12, 2019
1481e5b
process: set the trace category update handler during bootstrap
joyeecheung Mar 12, 2019
255de69
process: refactor global.queueMicrotask()
joyeecheung Mar 8, 2019
e6367c2
timers: refactor to use module.exports
joyeecheung Mar 11, 2019
ebb0c2a
timers: reduce usage of public util
joyeecheung Mar 11, 2019
1f4a5bc
timers: refactor timer callback initialization
joyeecheung Mar 11, 2019
cc4a25a
lib: lazy load `v8` in error-serdes
richardlau Mar 15, 2019
57d302b
process: delay creation of process.env after bootstrap/node.js
joyeecheung Mar 6, 2019
4314dbf
worker: create per-Environment message port after bootstrap
joyeecheung Mar 11, 2019
899de0a
process: check no handle or request is active after bootstrap
joyeecheung Mar 11, 2019
3ec652a
timers: fix refresh inside callback
apapirovski Mar 17, 2019
a640834
timers: move big impl comment to /internal/
Fishrock123 Mar 18, 2019
29867f3
2019-03-28, Version 11.13.0 (Current)
targos Mar 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
net: remove usage of require('util')
Use `require('internal/util/inspect').inspect` and
`require('internal/util/debuglog').debuglog` instead of
`require('util').debuglog` and `require('util').inspect`.

PR-URL: #26807
Refs: #26546
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
dnlup authored and targos committed Mar 27, 2019
commit 5e06c3bc0b8000b1063aabf33cbce3a082a731a5
10 changes: 6 additions & 4 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

const EventEmitter = require('events');
const stream = require('stream');
const util = require('util');
const { inspect } = require('internal/util/inspect');
const { debuglog } = require('internal/util/debuglog');
const internalUtil = require('internal/util');
const {
isIP,
Expand Down Expand Up @@ -129,7 +130,7 @@ function getNewAsyncId(handle) {
}


const debug = util.debuglog('net');
const debug = debuglog('net');

function isPipeName(s) {
return typeof s === 'string' && toNumber(s) === false;
Expand Down Expand Up @@ -334,7 +335,8 @@ function Socket(options) {
this[kBytesRead] = 0;
this[kBytesWritten] = 0;
}
util.inherits(Socket, stream.Duplex);
Object.setPrototypeOf(Socket.prototype, stream.Duplex.prototype);
Object.setPrototypeOf(Socket, stream.Duplex);

// Refresh existing timeouts.
Socket.prototype._unrefTimer = function _unrefTimer() {
Expand Down Expand Up @@ -1432,7 +1434,7 @@ Server.prototype.listen = function(...args) {
'must have the property "port" or "path"');
}

throw new ERR_INVALID_OPT_VALUE('options', util.inspect(options));
throw new ERR_INVALID_OPT_VALUE('options', inspect(options));
};

function lookupAndListen(self, port, address, backlog, exclusive, flags) {
Expand Down