Skip to content

types: implement typed proxy server event (#95)#96

Merged
pi0 merged 2 commits intounjs:mainfrom
SukkaW:typed-proxy-server-event
Feb 9, 2026
Merged

types: implement typed proxy server event (#95)#96
pi0 merged 2 commits intounjs:mainfrom
SukkaW:typed-proxy-server-event

Conversation

@SukkaW
Copy link
Copy Markdown
Member

@SukkaW SukkaW commented Feb 8, 2026

The PR also replaces http.OutgoingMessage w/ http.ServerResponse to better align the actual types.

Comment on lines -141 to 142
// @ts-expect-error
res.statusMessage = proxyRes.statusMessage;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With http.ServerResponse, the res now has statusMessage, thus the ts-expect-error can be removed.

@pi0 pi0 changed the title feat(#95): implement typed proxy server event feat: implement typed proxy server event (#95) Feb 9, 2026
@pi0 pi0 changed the title feat: implement typed proxy server event (#95) types: implement typed proxy server event (#95) Feb 9, 2026
Copy link
Copy Markdown
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thnx ❤️

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.35%. Comparing base (61d4a12) to head (0ec01ee).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #96   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files           7        7           
  Lines         689      689           
  Branches      187      187           
=======================================
  Hits          595      595           
  Misses         94       94           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pi0 pi0 merged commit deb1eac into unjs:main Feb 9, 2026
4 checks passed
@SukkaW SukkaW deleted the typed-proxy-server-event branch February 10, 2026 17:14
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.

2 participants