lib: use req.socket over deprecated req.connection by bjohansebas · Pull Request #6705 · expressjs/express (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

View all resources

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

expressjs / express Public

Additional navigation options

Merged

bjohansebas

merged 1 commit into

masterfrom

connection

Aug 21, 2025

ConversationCommits (1)ChecksFiles changed

Merged

lib: use req.socket over deprecated req.connection#6705

bjohansebas

merged 1 commit into

masterfrom

connection

Conversation

@bjohansebas

@bjohansebas bjohansebas commented

Aug 13, 2025

Copy link Copy Markdown

Member

req.connection was only deprecated in the documentation, but it’s possible that a runtime deprecation will be added since internally it calls socket, so it’s better to start migrating.

https://nodejs.org/dist/latest/docs/api/deprecations.html#DEP0133

@bjohansebas

`[lib: use req.socket over deprecated req.connection](/expressjs/express/pull/6705/commits/0c6bcf31484bad99d24d2022802804e056108ff0 "lib: use req.socket over deprecated req.connection

Signed-off-by: Sebastian Beltran bjohansebas@gmail.com") `

[0c6bcf3](/expressjs/express/pull/6705/commits/0c6bcf31484bad99d24d2022802804e056108ff0)

Signed-off-by: Sebastian Beltran bjohansebas@gmail.com

@bjohansebas bjohansebas requested a review from a team

August 13, 2025 01:57

Phillip9587

Phillip9587 approved these changes Aug 13, 2025

View reviewed changes

UlisesGascon

UlisesGascon approved these changes Aug 13, 2025

View reviewed changes

@bjohansebas bjohansebas merged commit 89f198c into master

Aug 21, 2025

26 checks passed

@bjohansebas bjohansebas deleted the connection branch

August 21, 2025 15:05

@UlisesGascon UlisesGascon mentioned this pull request

Nov 25, 2025

Release: 5.2.0#6920

Merged

@davidshen84 davidshen84 mentioned this pull request

Dec 1, 2025

build(deps): bump express from 5.1.0 to 5.2.1davidshen84/davidshen84.github.io#124

Merged

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

[ Show hidden characters]({{ revealButtonHref }})

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

Reviewers

@UlisesGascon UlisesGascon UlisesGascon approved these changes

@Phillip9587 Phillip9587 Phillip9587 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@bjohansebas @UlisesGascon @Phillip9587