node/lib/internal
Joyee Cheung 8821860f11
dns: support dns module in the snapshot
For the initial iteration, only the default resolver can be
serialized/deserialized. If `dns.setServers()` has been
called, we'll preserve the configured DNS servers in the snapshot.
We can consider exposing the serialization method if it becomes
necessary for user-land snapshots.

PR-URL: https://github.com/nodejs/node/pull/44633
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-09-29 01:58:21 +08:00
..
assert cli: add --watch 2022-09-05 12:25:09 +03:00
bootstrap process: make process.config read only 2022-09-10 22:00:23 +00:00
child_process child_process: improve ipc write performance 2022-06-19 16:10:53 +02:00
cluster cluster: use inspector utils 2022-09-13 06:41:19 +00:00
console bootstrap: clean up inspector console methods during serialization 2022-09-07 11:20:40 +00:00
crypto crypto: remove non-standard webcrypto.Crypto.prototype.CryptoKey 2022-09-17 15:54:36 +02:00
debugger lib: use safe Promise alternatives when available 2022-08-27 11:37:01 +02:00
dns dns: support dns module in the snapshot 2022-09-29 01:58:21 +08:00
fs fs: remove coercion to string in writing methods 2022-09-12 09:29:43 +00:00
http2 http: add writeEarlyHints function to ServerResponse 2022-08-17 18:22:53 +00:00
legacy lib: make process.binding('util') return only type checkers 2021-03-27 15:45:12 +00:00
main dns: support dns module in the snapshot 2022-09-29 01:58:21 +08:00
modules esm,loader: tidy ESMLoader internals 2022-09-19 20:55:09 +00:00
per_context lib: add Promise methods to avoid-prototype-pollution lint rule 2022-07-26 23:38:24 +01:00
perf perf_hooks: add resourcetiming buffer limit 2022-08-21 10:43:39 +08:00
policy lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
process lib: enable global WebCrypto by default 2022-09-17 15:54:33 +02:00
readline readline: remove question method from InterfaceConstructor 2022-09-14 19:10:53 +00:00
repl repl: fix overzealous top-level await 2022-07-15 20:30:50 +01:00
source_map lib: don't match sourceMappingURL in strings 2022-09-26 00:11:18 +08:00
streams stream: refactor use es2020 statement 2022-09-13 14:14:48 +00:00
test lib: add support for JSTransferable as a mixin 2021-04-26 07:55:48 -07:00
test_runner test: fix test-runner-inspect 2022-09-14 20:24:20 +00:00
tls tls: use logical OR operator 2022-08-16 21:34:56 +00:00
util util: increase robustness with primordials 2022-09-22 14:22:18 +00:00
v8 bootstrap: fixup Error.stackTraceLimit for user-land snapshot 2022-08-18 13:05:31 +00:00
vm lib: implement safe alternatives to Promise static methods 2022-07-10 14:17:23 +01:00
watch_mode cli: add --watch 2022-09-05 12:25:09 +03:00
webstreams stream: handle a pending pull request from a released reader 2022-09-23 12:01:52 +00:00
worker lib: refactor to avoid prototype pollution 2022-08-17 18:36:33 +00:00
abort_controller.js lib: refactor transferable AbortSignal 2022-08-04 08:40:50 -07:00
assert.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
async_hooks.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
blob.js lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
blocklist.js net: allow net.BlockList to use net.SocketAddress objects 2021-04-02 06:16:42 -07:00
buffer.js buffer,errors: add missing n literal in range error string 2021-04-17 19:34:42 +02:00
child_process.js lib: add diagnostics channel for process and worker 2022-08-30 17:08:33 +00:00
cli_table.js lib: refactor to use primordials in lib/internal/cli_table 2021-04-05 18:20:38 -07:00
constants.js lib: replace charCodeAt with fixed Unicode 2020-06-19 07:46:37 -07:00
dgram.js lib: refactor to use validateFunction 2021-01-27 20:46:54 +02:00
encoding.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
error_serdes.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
errors.js http: throw error on content-length mismatch 2022-09-18 12:39:37 +02:00
event_target.js lib: refactor to avoid prototype pollution 2022-08-17 18:36:33 +00:00
fixed_queue.js lib: fix reference leak 2022-09-07 09:33:10 +00:00
freelist.js http: remove unused hasItems() from freelist 2019-12-03 15:00:45 -08:00
freeze_intrinsics.js lib: fix TODO in freeze_intrinsics 2022-06-27 16:15:16 +01:00
heap_utils.js worker: add ability to take heap snapshot from parent thread 2020-02-03 07:04:13 -08:00
histogram.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
http.js http: trace http request / response 2022-08-05 14:25:06 +00:00
idna.js dns: use url module instead of punycode for IDNA 2021-03-23 20:44:31 +01:00
inspector_async_hook.js async_hooks: refactor to use more primordials 2020-11-20 20:10:19 +00:00
js_stream_socket.js tools: enable no-var ESLint rule for lib 2022-04-04 10:53:29 +00:00
linkedlist.js cluster: use linkedlist for round_robin_handle 2021-11-28 21:39:10 -08:00
net.js tools: refactor avoid-prototype-pollution lint rule 2022-08-27 11:37:04 +02:00
options.js bootstrap: refresh options in pre-execution 2022-03-31 19:29:08 +08:00
priority_queue.js lib: refactor PriorityQueue to use private field 2022-07-23 21:44:18 +01:00
promise_hooks.js lib: use kEmptyObject in various places 2022-06-11 12:18:16 +02:00
querystring.js typings: add JSDoc Types to lib/querystring 2021-04-18 11:00:28 +02:00
readme.md doc: clarify text about internal module changes 2018-07-31 08:28:40 +03:00
repl.js lib: use Number.parseInt from primordials 2020-10-07 13:44:20 +00:00
socket_list.js benchmark,lib: change var to const 2019-03-30 13:16:39 +01:00
socketaddress.js lib,test: fix bug in InternalSocketAddress 2022-09-15 16:13:03 +00:00
stream_base_commons.js lib: replace validator and error 2022-02-05 08:36:48 -08:00
structured_clone.js lib: throw error in structuedClone when no arguments are passed 2022-01-24 23:17:37 +00:00
timers.js timers: refactor internal classes to ES2015 syntax 2022-04-04 09:43:49 +01:00
trace_events_async_hooks.js lib: comment explaining special-case handling of promises 2021-07-23 03:54:33 +00:00
tty.js lib: refactor to avoid unsafe regex primordials 2022-06-27 17:16:06 +02:00
url.js lib: reset RegExp statics before running user code 2022-08-05 10:01:32 +02:00
util.js lib: refactor to avoid prototype pollution 2022-08-17 18:36:33 +00:00
v8_prof_polyfill.js tools: add console to the list of restricted globals 2022-02-19 19:00:55 +00:00
v8_prof_processor.js lib: refactor to avoid unsafe array iteration 2021-10-03 09:48:07 +00:00
validators.js typings: add JSDoc for internal/validators 2022-08-17 20:25:01 +02:00
wasm_web_api.js bootstrap: support more builtins in the embedded code cache 2022-08-05 01:11:20 +08:00
watchdog.js test: add semicolons for linter update 2021-11-08 13:16:21 -08:00
worker.js lib: add diagnostics channel for process and worker 2022-08-30 17:08:33 +00:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.