got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Your version
In short
1 fixed
Release note
Fix stream auto-end for empty PATCH/DELETE/OPTIONS 4d5168c
The bug was introduced in b65b0e1, where it incorrectly auto-closed streams for empty PATCH/DELETE/OPTIONS when using streams. This broke the documented use case of piping data to a got stream for these methods.
Docs:
got.streamdoes not auto-end forOPTIONS,DELETE, orPATCHso you can pipe or write a body without gettingwrite after end. Callstream.end()when you are not piping a body.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.