Skip to content

Commit fe94432

Browse files
authored
fix(node-builtins-modules/tls.js): Update minimal version (#484)
1 parent 92ea876 commit fe94432

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/unsupported-features/node-builtins-modules/tls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const tls = {
1414
},
1515
createServer: { [READ]: { supported: ["0.3.2"] } },
1616
CryptoStream: { [READ]: { supported: ["0.3.4"], deprecated: ["0.11.3"] } },
17-
DEFAULT_CIPHERS: { [READ]: { supported: ["19.8.0", "18.16.0"] } },
17+
DEFAULT_CIPHERS: { [READ]: { supported: ["0.11.3"] } },
1818
DEFAULT_ECDH_CURVE: { [READ]: { supported: ["0.11.13"] } },
1919
DEFAULT_MAX_VERSION: { [READ]: { supported: ["11.4.0"] } },
2020
DEFAULT_MIN_VERSION: { [READ]: { supported: ["11.4.0"] } },

tests/lib/rules/no-unsupported-features/node-builtins.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ new RuleTester({ languageOptions: { sourceType: "module" } }).run(
267267
code: "new Buffer(123)",
268268
options: [{ version: "6.0.0" }],
269269
},
270+
{
271+
code: "require('tls').DEFAULT_CIPHERS",
272+
options: [{ version: "18.0.0" }],
273+
},
270274
],
271275
invalid: [
272276
{

0 commit comments

Comments
 (0)