This is the same as the original change, minus the `process.emitWarning`
calls and unit tests that expect the deprecation warnings.
Original commit message:
lib: deprecate _tls_common and _tls_wrap
runtime deprecate the _tls_common and _tls_wrap
modules, users should use nust node:tls insteal
and internally internal/tls/commond and
internal/tls/wrap should be used instead
PR-URL: https://github.com/nodejs/node/pull/57643
Backport-PR-URL: https://github.com/nodejs/node/pull/62231
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
9 lines
170 B
JavaScript
9 lines
170 B
JavaScript
'use strict';
|
|
|
|
const { TLSSocket, Server, createServer, connect } = require('internal/tls/wrap');
|
|
module.exports = {
|
|
TLSSocket,
|
|
Server,
|
|
createServer,
|
|
connect,
|
|
};
|