Skip to content

feat(DEP0064): handle tls.createSecurePair deprecation#266

Merged
brunocroh merged 21 commits intonodejs:mainfrom
technologic-technologic:feat(`tls-createSecurePair-deprecation`)
Mar 22, 2026
Merged

feat(DEP0064): handle tls.createSecurePair deprecation#266
brunocroh merged 21 commits intonodejs:mainfrom
technologic-technologic:feat(`tls-createSecurePair-deprecation`)

Conversation

@technologic-technologic
Copy link
Contributor

This pull request implements the codemod to replace deprecated tls.createSecurePair() with TLSSocket, addressing DEP0064.

Changes included:

  • Updated the codemod workflow to transform createSecurePair(...) into new TLSSocket(underlyingSocket, {...}), preserving tls.TLSSocket for namespace usage.
  • Rewrote imports to replace { createSecurePair } with { TLSSocket } in CJS/ESM (keeps namespace imports intact).
  • Renamed assigned variables pairsocket where applicable.
  • Added tests for cjs/esm (destructured, namespace, flags, and mixed symbols).
  • Ensured idempotent runs and minimal, repo-style edits.
  • Added README.md and package.json metadata.
  • Added tests for assigned variables, destructured imports.

This PR is part of the feature branch feat/tls-createSecurePair-to-TLSSocket.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting author Reviewer has requested something from the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: handle tls.createSecurePair() depreciation

4 participants