mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
tls: move _tls_* to end-of-life
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com> PR-URL: https://github.com/nodejs/node/pull/60658 Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
This commit is contained in:
1 parent
56387dda0f
commit
7a11a9b2db
11 files changed
+6
-55
No files matched your search
@@ -4231,6 +4231,9 @@ npx codemod@latest @nodejs/repl-builtin-modules
|
||||
|
||||
<!-- YAML
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/60658
|
||||
description: End-of-Life.
|
||||
- version:
|
||||
- v24.2.0
|
||||
- v22.17.0
|
||||
@@ -4239,7 +4242,7 @@ changes:
|
||||
description: Runtime deprecation.
|
||||
-->
|
||||
|
||||
Type: Runtime
|
||||
Type: End-of-Life
|
||||
|
||||
The `node:_tls_common` and `node:_tls_wrap` modules are deprecated as they should be considered
|
||||
an internal nodejs implementation rather than a public facing API, use `node:tls` instead.
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const { SecureContext, createSecureContext, translatePeerCertificate } = require('internal/tls/common');
|
||||
module.exports = {
|
||||
SecureContext,
|
||||
createSecureContext,
|
||||
translatePeerCertificate,
|
||||
};
|
||||
process.emitWarning('The _tls_common module is deprecated. Use `node:tls` instead.',
|
||||
'DeprecationWarning', 'DEP0192');
|
||||
@@ -1,11 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const { TLSSocket, Server, createServer, connect } = require('internal/tls/wrap');
|
||||
module.exports = {
|
||||
TLSSocket,
|
||||
Server,
|
||||
createServer,
|
||||
connect,
|
||||
};
|
||||
process.emitWarning('The _tls_wrap module is deprecated. Use `node:tls` instead.',
|
||||
'DeprecationWarning', 'DEP0192');
|
||||
@@ -544,7 +544,6 @@ export default [
|
||||
{
|
||||
files: [
|
||||
'lib/_http_*.js',
|
||||
'lib/_tls_*.js',
|
||||
'lib/http.js',
|
||||
'lib/http2.js',
|
||||
'lib/internal/http.js',
|
||||
|
||||
@@ -42,8 +42,6 @@ const supportedModules = new SafeSet(new SafeArrayIterator([
|
||||
// '_http_incoming',
|
||||
// '_http_outgoing',
|
||||
// '_http_server',
|
||||
// '_tls_common',
|
||||
// '_tls_wrap',
|
||||
'assert',
|
||||
'assert/strict',
|
||||
// 'async_hooks',
|
||||
|
||||
@@ -130,8 +130,8 @@ BuiltinLoader::BuiltinCategories BuiltinLoader::GetBuiltinCategories() const {
|
||||
#endif // !NODE_USE_V8_PLATFORM || !defined(NODE_HAVE_I18N_SUPPORT)
|
||||
|
||||
#if !HAVE_OPENSSL
|
||||
"crypto", "crypto/promises", "https", "http2", "tls", "_tls_common",
|
||||
"_tls_wrap", "internal/tls/parse-cert-string", "internal/tls/common",
|
||||
"crypto", "crypto/promises", "https", "http2", "tls",
|
||||
"internal/tls/parse-cert-string", "internal/tls/common",
|
||||
"internal/tls/wrap", "internal/tls/secure-context",
|
||||
"internal/http2/core", "internal/http2/compat",
|
||||
"internal/streams/lazy_transform",
|
||||
|
||||
@@ -24,8 +24,6 @@ const expectedPublicModules = new Set([
|
||||
'_http_incoming',
|
||||
'_http_outgoing',
|
||||
'_http_server',
|
||||
'_tls_common',
|
||||
'_tls_wrap',
|
||||
'assert',
|
||||
'async_hooks',
|
||||
'buffer',
|
||||
|
||||
@@ -25,8 +25,6 @@ if (!isMainThread) {
|
||||
if (!hasCrypto) {
|
||||
publicBuiltins.delete('crypto');
|
||||
publicBuiltins.delete('tls');
|
||||
publicBuiltins.delete('_tls_common');
|
||||
publicBuiltins.delete('_tls_wrap');
|
||||
publicBuiltins.delete('http2');
|
||||
publicBuiltins.delete('https');
|
||||
publicBuiltins.delete('inspector');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto) common.skip('missing crypto');
|
||||
|
||||
// _tls_common is deprecated.
|
||||
|
||||
common.expectWarning('DeprecationWarning',
|
||||
'The _tls_common module is deprecated. Use `node:tls` instead.', 'DEP0192');
|
||||
|
||||
require('_tls_common');
|
||||
@@ -1,11 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto) common.skip('missing crypto');
|
||||
|
||||
// _tls_wrap is deprecated.
|
||||
|
||||
common.expectWarning('DeprecationWarning',
|
||||
'The _tls_wrap module is deprecated. Use `node:tls` instead.', 'DEP0192');
|
||||
|
||||
require('_tls_wrap');
|
||||
@@ -20,8 +20,6 @@
|
||||
"_http_incoming": ["./lib/_http_incoming.js"],
|
||||
"_http_outgoing": ["./lib/_http_outgoing.js"],
|
||||
"_http_server": ["./lib/_http_server.js"],
|
||||
"_tls_common": ["./lib/_tls_common.js"],
|
||||
"_tls_wrap": ["./lib/_tls_wrap.js"],
|
||||
"assert": ["./lib/assert.js"],
|
||||
"assert/strict": ["./lib/assert/strict.js"],
|
||||
"async_hooks": ["./lib/async_hooks.js"],
|
||||
|
||||
Reference in new issue
Block a user