Skip to content

docs: add an Undici 7 to 8 migration guide#4963

Open
mcollina wants to merge 1 commit intomainfrom
docs/undici-7-to-8-migration
Open

docs: add an Undici 7 to 8 migration guide#4963
mcollina wants to merge 1 commit intomainfrom
docs/undici-7-to-8-migration

Conversation

@mcollina
Copy link
Copy Markdown
Member

@mcollina mcollina commented Apr 2, 2026

Summary

  • add a migration guide for upgrading applications and libraries from Undici 7 to 8
  • cover the main upgrade points: Node.js version requirements, dispatcher handler API changes, onBodySent() / onRequestSent(), HTTP/2 defaults, Blob validation, and global dispatcher notes
  • add the guide to the docs sidebar

Why

Undici 8 includes a few behavior and API changes that are easy to miss when upgrading from Undici 7.

This guide gives users a single place to check the main migration steps instead of piecing them together from release notes and API docs.

Testing

  • npm run lint

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.93%. Comparing base (dc4351a) to head (3448b2a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4963   +/-   ##
=======================================
  Coverage   92.92%   92.93%           
=======================================
  Files         111      111           
  Lines       35831    35831           
=======================================
+ Hits        33297    33298    +1     
+ Misses       2534     2533    -1     

☔ 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.

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