feat(DEP0192): migrate internal TLS imports to `node:tls`
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 54/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, typescript
- 領域
- tooling
調査の方向性
Start by reading existing codemods and their fixtures to learn how this repository handles imports, aliases, and unresolved cases. Add a codemod for the listed _tls_common and _tls_wrap exports, preserving bindings and avoiding collisions; include the requested fixtures. Done means supported imports migrate to node:tls, while unsupported or unresolved cases are reported or skipped as specified.
索引モデルが issue の本文から書いたものです。
説明
Description
Node.js 27.0.0-alpha.0.0.0 removes the _tls_common and _tls_wrap modules under DEP0192.
Add a codemod that migrates imports of their public equivalents to node:tls:
_tls_common:SecureContextandcreateSecureContext._tls_wrap:TLSSocket,Server,createServer, andconnect.
Support specifiers with and without node:, CommonJS destructuring and property access, ESM imports, and aliases. Handle literal dynamic imports when their accessed exports can be resolved.
Additional Information
- Preserve local binding names and avoid import collisions.
- Namespace imports can be migrated only when all uses are understood and refer to equivalent public exports.
- Report unsupported internal exports, such as
translatePeerCertificate, for manual migration. - Skip namespace objects that escape into unknown code, computed exports that cannot be resolved, and dynamic module specifiers.
- Include fixtures for supported exports, mixed supported/unsupported imports, aliases, and already migrated code.
Examples
-const { createSecureContext: makeContext } = require('_tls_common');
+const { createSecureContext: makeContext } = require('node:tls');
-import { TLSSocket, connect as tlsConnect } from 'node:_tls_wrap';
+import { TLSSocket, connect as tlsConnect } from 'node:tls';
const context = makeContext(options);
const socket = tlsConnect(connectionOptions);
Refs
- 主要言語
- TypeScript
- スター
- 85
- フォーク
- 58
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/userland-migrations のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nodejs/userland-migrations#562 · リアクション 4 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
nodejs/userland-migrations#561 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
good first issue human help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nodejs/userland-migrations#560 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
-
good first issue human help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nodejs/userland-migrations#559 ·
メンテナーはふだん 2 日以内に返信
-
good first issue human help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
nodejs/userland-migrations#558 ·
メンテナーはふだん 2 日以内に返信
nodejs/userland-migrations の issue をすべて見る
似ている issue
-
area: web bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
kinqsradio/orbyn-engineering#227 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
joeldesante/TurfBuilder#258 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ncecere/open-mcp-portal#85 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
loathers/garbage-collector#2865 ·
メンテナーはふだん 1 日以内に返信
-
test-reliability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Azure/azure-sdk-for-js#40672 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信