node/lib/internal
Darshan Sen c868aad15a
sea: allow requiring core modules with the "node:" prefix
Previously, the `require()` function exposed to the embedded SEA code
was calling the internal `require()` function if the module name
belonged to the list of public core modules but the internal `require()`
function does not support loading modules with the "node:" prefix, so
this change forwards the calls to another `require()` function that
supports this.

Fixes: https://github.com/nodejs/single-executable/issues/69
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/47779
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2023-05-04 14:32:35 +00:00
..
assert lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
bootstrap sea: allow requiring core modules with the "node:" prefix 2023-05-04 14:32:35 +00:00
child_process lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
cluster cluster: add trailing commas in source files 2023-02-20 01:57:41 +01:00
console lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
crypto crypto: remove DEFAULT_ENCODING 2023-03-26 18:03:58 +00:00
debugger debugger: improve validations and documents for watch and unwatch 2023-03-13 04:29:53 +00:00
dns dns: expose getDefaultResultOrder 2023-04-26 08:56:04 +00:00
events lib: performance improvement on readline async iterator 2022-10-24 12:49:16 +00:00
fs fs: add recursive option to readdir and opendir 2023-04-20 17:50:27 +00:00
http2 lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
legacy lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
main sea: allow requiring core modules with the "node:" prefix 2023-05-04 14:32:35 +00:00
modules tools: fix jsdoc lint 2023-05-02 00:48:20 +00:00
per_context tools: fix jsdoc lint 2023-05-02 00:48:20 +00:00
perf lib: add trailing commas in internal/perf 2023-02-20 01:59:21 +01:00
policy tools: fix jsdoc lint 2023-05-02 00:48:20 +00:00
process loader: use default loader as cascaded loader in the in loader worker 2023-04-21 12:27:54 +00:00
readline readline: fix issue with newline-less last line 2023-04-14 10:12:16 +00:00
repl repl: preserve preview on ESCAPE key press 2023-03-16 03:24:23 +00:00
source_map lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
streams stream: prevent pipeline hang with generator functions 2023-04-27 07:44:39 +00:00
test lib: enforce use of trailing commas in more files 2023-02-16 18:47:24 +01:00
test_runner test_runner: support combining coverage reports 2023-04-28 13:13:53 +00:00
tls tls: support automatic DHE 2023-03-12 18:35:55 +00:00
util sea: allow requiring core modules with the "node:" prefix 2023-05-04 14:32:35 +00:00
v8 v8: fix ERR_NOT_BUILDING_SNAPSHOT is not a constructor 2023-04-29 16:50:42 +00:00
vm lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
watch_mode test_runner: support watch mode 2022-11-13 21:40:26 +00:00
webstreams stream: use private properties for strategies 2023-04-13 15:22:49 +00:00
worker lib: enforce use of trailing commas 2023-03-06 10:44:14 +01:00
abort_controller.js doc: update output of example in AbortController 2023-03-25 22:46:05 +09:00
assert.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
async_hooks.js tools: fix jsdoc lint 2023-05-02 00:48:20 +00:00
blob.js lib: disallow file-backed blob cloning 2023-04-21 20:55:11 -07:00
blocklist.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
buffer.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
child_process.js child_process: add trailing commas in source files 2023-02-24 09:44:18 +01: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: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
dgram.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
encoding.js src: make AliasedBuffers in the binding data weak 2023-04-20 03:28:35 +00:00
error_serdes.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
errors.js http: remove internal error in assignSocket 2023-05-02 20:02:17 +00:00
event_target.js lib: use webidl DOMString converter in EventTarget 2023-04-14 10:12:28 +00:00
file.js buffer: graduate File from experimental and expose as global 2023-03-22 19:28:12 +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: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
heap_utils.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00
histogram.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
http.js http: trace http request / response 2022-08-05 14:25:06 +00:00
idna.js src: replace idna functions with ada::idna 2023-04-28 18:48:38 +00:00
inspector_async_hook.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
js_stream_socket.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
linkedlist.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
mime.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
net.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
options.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
priority_queue.js lib: refactor PriorityQueue to use private field 2022-07-23 21:44:18 +01:00
promise_hooks.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
querystring.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
readme.md doc: clarify text about internal module changes 2018-07-31 08:28:40 +03:00
repl.js repl: add trailing commas in source files 2023-02-24 09:43:27 +01:00
socket_list.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
socketaddress.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
stream_base_commons.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01: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: use V8 fast API calls 2023-02-28 09:37:24 +00:00
trace_events_async_hooks.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
tty.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
url.js tools: fix jsdoc lint 2023-05-02 00:48:20 +00:00
util.js module: do less CJS module loader initialization at run time 2023-04-05 11:13:23 +00:00
v8_prof_polyfill.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
v8_prof_processor.js lib: refactor to avoid unsafe array iteration 2021-10-03 09:48:07 +00:00
validators.js tools: fix jsdoc lint 2023-05-02 00:48:20 +00:00
vm.js lib: enforce use of trailing commas for functions 2023-02-14 18:45:16 +01:00
wasm_web_api.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
watchdog.js lib: add trailing commas to more internal files 2023-02-26 11:34:02 +01:00
webidl.js lib: use webidl DOMString converter in EventTarget 2023-04-14 10:12:28 +00:00
worker.js esm: move hook execution to separate thread 2023-04-13 09:35:17 +02: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.