feat(DEP0192): migrate internal TLS imports to `node:tls`
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 54/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
- Lĩnh vực
- tooling
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 85
- Fork
- 58
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nodejs/userland-migrations
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
nodejs/userland-migrations#562 · 4 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
nodejs/userland-migrations#561 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue human help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nodejs/userland-migrations#560 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue human help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nodejs/userland-migrations#559 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue human help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
nodejs/userland-migrations#558 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của nodejs/userland-migrations
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
shoelace-style/webawesome#2979 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Chip source filter and denial markers miss Storage rows when a Storage activity source is pickedĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
omdsh-dev/DSH-better-sidebar#1141 ·
Maintainer thường phản hồi trong vòng 2 ngày