-
-
Notifications
You must be signed in to change notification settings - Fork 971
Open
Description
Some ideas. Probably in May 2026:
- Remove
.cancel()method and.isCanceledproperty, in favor ofsignaloption.- Also
test/cancel.tsandCancelError
- Also
- Require Node.js 22.
- Use
FormDataglobal when targeting Node.js 18 #2077 (in a major release in case it has some subtle differences) - Make
strictContentLengthoption true by default. - Change the pipe event handler to only copy headers that aren't already explicitly set (explicit headers take precedence over piped ones). This fixes the principle-of-least-surprise issue where users can't override piped headers. Change the default of copyPipedHeaders from true to false to eliminate the "magical" behavior - users who want header copying can opt-in explicitly. Update documentation to explain this is now opt-in behavior for proxy scenarios, and add migration guide explaining the breaking changes: (1) explicit headers now win over piped headers, and (2) automatic header copying is disabled by default.
- Use private class methods/properties internally.
- Update dependencies
- Change
HTTPError<T = any>toHTTPError<T = unknown> - Fix TODO comments that mention major version.
- Change
Bufferusage toUint8Array
Metadata
Metadata
Assignees
Labels
No labels