Skip to content

chore(deps-dev): Bump got from 15.1.0 to 16.0.0 in the dev-major group - #66

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/dev-major-ed1d56b1d1
Sep 4, 2026
Merged

chore(deps-dev): Bump got from 15.1.0 to 16.0.0 in the dev-major group#66
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/dev-major-ed1d56b1d1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 4, 2026

Copy link
Copy Markdown
Contributor

Bumps the dev-major group with 1 update: got.

Updates got from 15.1.0 to 16.0.0

Release notes

Sourced from got's releases.

v16.0.0

Breaking changes

  • Rewrite HTTP/2 support and drop the http2-wrapper dependency (#2464) 1e157c4
    • Got now has a built-in HTTP/2 client: ALPN negotiation, a pooled session cache with multiplexing, GOAWAY retirement, request and response trailers, informational (1xx) responses, abort signals, response caching, IPv6 authorities, and h2c through h2session.
    • agent.http2 is no longer an agent slot. It is only an opt-out flag now: pass false to skip session pooling. Passing an agent instance throws.
    • Response headers no longer contain HTTP/2 pseudo-headers. Use response.statusCode instead of response.headers[':status'].
    • A custom agent.https combined with http2: true makes Got use the native HTTP/1.1 path, because the built-in session pool does not support custom HTTPS agents.
    • HTTP/2 proxy support is gone. It came from http2-wrapper. It was very buggy anyway.
    • If options.request returns a request or response, it controls the transport and the HTTP/2 client is bypassed. Return undefined to fall back to Got's own transport.
  • Rewrite DNS cache and drop the cacheable-lookup dependency (#2463) bfc400b
    • dnsCache: true now uses Got's own cache. The option accepts any object with a lookup function and an optional clear(hostname?) function, so an existing CacheableLookup instance still works if you keep the dependency yourself.
    • The built-in cache resolves A and AAAA records separately, so it cannot preserve OS-specific verbatim address ordering from dns.lookup().
  • A beforeRequest hook, an afterResponse retry, or a pagination step that moves the request to a different origin now strips credentials and drops the body (#2465) dd3b295
    • authorization, cookie, cookie2, host, and proxy-authorization are removed, URL credentials are dropped, and an unchanged body is cleared. Set the headers or body explicitly inside the hook if you want them to cross the origin boundary.
    • This applies whether the origin changes through url or through prefixUrl.
  • copyPipedHeaders no longer copies credentials 1d233ba
    • authorization, cookie, cookie2, set-cookie, and set-cookie2 are now omitted along with host, the hop-by-hop headers, and anything nominated by Connection / Proxy-Connection. Pass credentials explicitly in headers when the upstream is trusted.
  • Remove the deprecated searchParameters, followRedirects, and auth option stubs 1d233ba
    • They only existed to throw a guidance message. Passing them now throws Unexpected option: ….
  • Remove the OptionsOfUnknownResponseBody type 1d233ba
    • It was a pure alias for StrictOptions.

Improvements

  • Add support for the QUERY HTTP method (#2466) e3924aa
    • Adds got.query() and got.stream.query(). QUERY is safe and idempotent, so it is retried by default and keeps a replayable body across 301 and 302 redirects as well as 307 and 308. It is not stored by the built-in cache, because correct QUERY caching needs cache keys that include the request content.
  • allowGetBody now also works over HTTP/2 1e157c4
  • timeout.socket now applies during HTTP/2 TLS negotiation and session setup c6bbb8a
    • It was previously folded into the connection setup timeout and reported as a request timeout. It now produces a real socket timeout and no longer counts DNS lookup time.
  • Two fewer dependencies: cacheable-lookup and http2-wrapper bfc400b 1e157c4

Fixes

  • Retry on connection errors reported by request.end() instead of failing the request (#2470) 67919b2
  • Retry immediately when the server answers with Retry-After: 0 instead of falling back to the backoff delay (#2471) d35ce87
  • Preserve the response body when a cookie jar write throws c6bbb8a
    • error.response.body is now complete, decompressed, and decoded with the configured encoding, and a decoding failure no longer masks the original error.
  • Wait for async cookie jar writes on terminal redirect responses, for example with followRedirect: false c6bbb8a
  • Only buffer the response body for cookie handling when the response actually sends set-cookie c6bbb8a
  • Fix got.stream finalizing the response before the response event and before piped server response headers are set c6bbb8a
  • Fix strictContentLength counting bytes from responses that were not actually decompressed c6bbb8a
  • Freeze hooks.beforeCache along with the other hook arrays on non-mutable defaults 1d233ba
  • Keep URL credentials when prefixUrl is changed to a same-origin value, and treat credentials in prefixUrl as explicit dd3b295

Migration guide

HTTP/2

Remove http2-wrapper from your code. Got's HTTP/2 client is built in.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Sep 4, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automerge. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions
github-actions Bot enabled auto-merge (squash) September 4, 2026 17:54
Bumps the dev-major group with 1 update: [got](https://github.com/sindresorhus/got).


Updates `got` from 15.1.0 to 16.0.0
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v15.1.0...v16.0.0)

---
updated-dependencies:
- dependency-name: got
  dependency-version: 16.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dev-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@cursor
cursor Bot force-pushed the dependabot/npm_and_yarn/dev-major-ed1d56b1d1 branch from c1a2649 to 6870355 Compare September 4, 2026 18:01
@github-actions
github-actions Bot merged commit 35d728c into main Sep 4, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/dev-major-ed1d56b1d1 branch September 4, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants