Skip to content

doc: Update dump({ limit: Integer }) default value#4981

Merged
metcoder95 merged 1 commit intonodejs:mainfrom
samuel871211:patch-5
Apr 7, 2026
Merged

doc: Update dump({ limit: Integer }) default value#4981
metcoder95 merged 1 commit intonodejs:mainfrom
samuel871211:patch-5

Conversation

@samuel871211
Copy link
Copy Markdown
Contributor

@samuel871211 samuel871211 commented Apr 6, 2026

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

`body` contains the following additional extensions:

- `dump({ limit: Integer })`, dump the response by reading up to `limit` bytes without killing the socket (optional) - Default: 262144.
- `dump({ limit: Integer })`, dump the response by reading up to `limit` bytes without killing the socket (optional) - Default: 131072.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/nodejs/undici/blob/main/lib/api/readable.js#L274

    const limit = opts?.limit && Number.isFinite(opts.limit)
      ? opts.limit
      : 128 * 1024

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.95%. Comparing base (bbd66d0) to head (ebb6dca).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4981   +/-   ##
=======================================
  Coverage   92.95%   92.95%           
=======================================
  Files         110      110           
  Lines       35773    35773           
=======================================
  Hits        33252    33252           
  Misses       2521     2521           

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

@metcoder95 metcoder95 merged commit ce45abf into nodejs:main Apr 7, 2026
34 of 35 checks passed
@samuel871211 samuel871211 deleted the patch-5 branch April 7, 2026 10:46
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.

3 participants