FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor(app): replace deprecated req.connection with req.socket by CharoenwitKunna · Pull Request #523 · tinyhttp/tinyhttp · GitHub

refactor(app): replace deprecated req.connection with req.socket - #523

Open
CharoenwitKunna wants to merge 1 commit into
tinyhttp:masterfrom
CharoenwitKunna:fix/req-socket-deprecation
Open

refactor(app): replace deprecated req.connection with req.socket#523
CharoenwitKunna wants to merge 1 commit into
tinyhttp:masterfrom
CharoenwitKunna:fix/req-socket-deprecation

Conversation

Copy link
Copy Markdown

Replaces deprecated req.connection usage with req.socket (Node 13+).

  • getIP/getIPs now use Pick<Request, 'headers' | 'socket'> — matches forwarded and proxy-addr which already migrated to socket-only
  • Request.connection kept for BC but marked @deprecated

Zero runtime req.connection hits remain; only the deprecated interface alias stays for compatibility.

Related to #316 pattern.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL