got breaking changes
Updated December 4, 2026
On this page
Latest version 16.2.0, released October 30, 2026. Source repository
Its 15.0.0 release requires Node.js 22 or later. Node.js end of life dates.
- From 15.1.0 to 16.2.0: 150 breaking changes in 3 versions.
- From 12.0.0 to 16.2.0: 420 breaking changes in 32 versions.
got 16.2.0 breaking changes
- Signature changed
RequestPromise.json
Was json: <ReturnType>() => RequestPromise<ReturnType>; now json: {<ReturnType>(schema?: undefined): RequestPromise<ReturnType>; <Schema extends StandardSchemaV1>(schema: Schema): RequestPromise<StandardSchemaV1InferOutput<Schema>>;}. npmjs.com
got 16.1.0 breaking changes
- Behavior changed
A HEAD request is no longer changed to GET when it is redirected with a 301, 302, or 303 status. Code that relied on the redirected request being a GET must change. github.com - Behavior changed
got.extend
Payloads passed to got.extend are no longer sent with every request of the instance. Pass the payload per request instead. github.com - Behavior changed
handlers
A handlers entry that is not a function now throws. Make sure every handlers entry is a function. github.com - Behavior changed
instance.extend
instance.extend() now inherits the parent's mutableDefaults setting, as got.extend(instance) already did. Check instances that relied on the old default. github.com - Behavior changed
maxRedirects
A negative or fractional maxRedirects now throws instead of being accepted. Use a non-negative whole number. github.com - Behavior changed
method
An empty method option now throws instead of being accepted. Always pass a valid HTTP method. github.com - Behavior changed
prefixUrl
A prefixUrl containing a query string or fragment now throws. Remove the query string or fragment from prefixUrl. github.com - Behavior changed
response
The promise response event no longer fires for every retry attempt, only for the final response. Code counting attempts through it must change. github.com - Behavior changed
response.body
response.body no longer includes a leading UTF-8 byte order mark. Code that strips or checks for it must be updated. github.com - Behavior changed
retry.limit
A negative or fractional retry.limit now throws instead of being accepted. Use a non-negative whole number. github.com
And 91 more in this version. Sign up to see every change
got 16.0.0 breaking changes
- Removed
HTTP/2 proxy support is gone with the removal of http2-wrapper. Keep using http2-wrapper through the request option if you need it. github.com - Removed
auth
The auth option stub was removed. Passing it now throws an Unexpected option error. github.com - Removed
followRedirects
The followRedirects option stub was removed. Passing it now throws an Unexpected option error. github.com - Removed
NormalizedOptions.auth
NormalizedOptions.auth was removed in got 16.0.0 npmjs.com - Removed
NormalizedOptions.followRedirects
NormalizedOptions.followRedirects was removed in got 16.0.0 npmjs.com - Removed
NormalizedOptions.searchParameters
NormalizedOptions.searchParameters was removed in got 16.0.0 npmjs.com - Removed
Options.auth
Options.auth was removed in got 16.0.0 npmjs.com - Removed
Options.followRedirects
Options.followRedirects was removed in got 16.0.0 npmjs.com - Removed
Options.searchParameters
Options.searchParameters was removed in got 16.0.0 npmjs.com - Removed
OptionsOfUnknownResponseBody
The OptionsOfUnknownResponseBody type was removed. It was a pure alias for StrictOptions. npmjs.com
And 38 more in this version. Sign up to see every change
got 15.1.0 breaking changes
- Signature changed
applyUrlOverride
Was function applyUrlOverride(options: Options, url: string | URL, {username, password}?: {username?: string; password?: string;}): URL; now function applyUrlOverride(options: Options, url: string | URL, {username, password, baseUrl}?... npmjs.com - Signature changed
NormalizedOptions.toJSON
Was toJSON(): {timeout: Delays; localAddress: string | undefined; headers: Headers; request: RequestFunction | undefined; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); body: string | Uint8Array | Readable... npmjs.com - Signature changed
Options.toJSON
Was toJSON(): {timeout: Delays; localAddress: string | undefined; headers: Headers; request: RequestFunction | undefined; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); body: string | Uint8Array | Readable... npmjs.com
got 15.0.3 breaking changes
- Signature changed
NormalizedOptions.toJSON
Was toJSON(): {timeout: Delays; headers: Headers; request: RequestFunction | undefined; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); body: string | Uint8Array | Readable | Generator | AsyncGenerator |... npmjs.com - Signature changed
Options.toJSON
Was toJSON(): {timeout: Delays; headers: Headers; request: RequestFunction | undefined; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); body: string | Uint8Array | Readable | Generator | AsyncGenerator |... npmjs.com
got 15.0.2 breaking changes
- Signature changed
CrossOriginState
Was type CrossOriginState = {headers: Headers; username: string; password: string; body: unknown; json: unknown; form: unknown; bodySnapshot: unknown; jsonSnapshot: unknown; formSnapshot: unknown;}; now type CrossOriginState = {headers... npmjs.com
Older versions
27 older versions, each with its first changes. Sign up to see every change
Show 27 older versions
got 15.0.1 breaking changes
- Signature changed
GotRequestFunction
Was type GotRequestFunction<U extends ExtendOptions = Record<string, unknown>> = {(url: string | URL, options?: OptionsOfUnknownResponseBody): GotResponseResult<U, DefaultResponseBodyType<U>>; (url: string | URL, options?... npmjs.com - Signature changed
OptionsWithPagination
Was type OptionsWithPagination<T = unknown, R = unknown> = Merge<OptionsInitWithoutUrl, {pagination?: PaginationOptions<T, R>;}>; now type OptionsWithPagination<T = unknown, R = unknown> = Merge<StreamOptions, {pagination?... npmjs.com
And 2 more in this version.
got 15.0.0 breaking changes
- Removed
CancelableRequest
CancelableRequest was removed in got 15.0.0 npmjs.com - Removed
CancelError
CancelError was removed in got 15.0.0 npmjs.com
And 75 more in this version.
got 14.6.5 breaking changes
- Signature changed
GotRequestFunction
Was type GotRequestFunction<U extends ExtendOptions = Record<string, unknown>> = {(url: string | URL, options?: OptionsOfTextResponseBody): U['resolveBodyOnly'] extends true ? CancelableRequest<string>... npmjs.com
got 14.6.4 breaking changes
- Signature changed
NormalizedOptions.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[] | undefined; cert: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]... npmjs.com - Signature changed
NormalizedOptions.toJSON
Was toJSON(): {timeout: Delays; headers: Headers; request: RequestFunction | undefined; username: string; password: string; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); retry: Partial<RetryOptions>... npmjs.com
And 3 more in this version.
got 14.6.3 breaking changes
- Signature changed
NormalizedOptions.toJSON
Was toJSON(): {headers: Headers; timeout: Delays; request: RequestFunction | undefined; username: string; password: string; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); retry: Partial<RetryOptions>... npmjs.com - Signature changed
Options.toJSON
Was toJSON(): {headers: Headers; timeout: Delays; request: RequestFunction | undefined; username: string; password: string; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); retry: Partial<RetryOptions>... npmjs.com
got 14.6.2 breaking changes
- Signature changed
NormalizedOptions.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[] | undefined; cert: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]... npmjs.com - Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[] | undefined; cert: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]... npmjs.com
got 14.6.1 breaking changes
- Signature changed
BeforeErrorHook
Was type BeforeErrorHook = (error: RequestError) => Promisable<RequestError>; now type BeforeErrorHook = (error: RequestError) => Promisable<Error>. npmjs.com - Signature changed
Hooks
Was type Hooks = {init: InitHook[]; beforeRequest: BeforeRequestHook[]; beforeRedirect: BeforeRedirectHook[]; beforeError: BeforeErrorHook[]; beforeRetry: BeforeRetryHook[]; afterResponse: AfterResponseHook[];}; now type Hooks = {init... npmjs.com
And 2 more in this version.
got 14.6.0 breaking changes
- Signature changed
BeforeRedirectHook
Was type BeforeRedirectHook = (updatedOptions: Options, plainResponse: PlainResponse) => Promisable<void>; now type BeforeRedirectHook = (updatedOptions: NormalizedOptions, plainResponse: PlainResponse) => Promisable<void>. npmjs.com - Signature changed
BeforeRequestHook
Was type BeforeRequestHook = (options: Options) => Promisable<void | Response | ResponseLike>; now type BeforeRequestHook = (options: NormalizedOptions, context: BeforeRequestHookContext) => Promisable<void | Response | ResponseLike>. npmjs.com
And 4 more in this version.
got 14.5.0 breaking changes
- Signature changed
GotEventFunction
Was type GotEventFunction<T> = ((name: 'request', listener: (request: ClientRequest) => void) => T) & (<R extends Response>(name: 'response', listener: (response: R) => void) => T) & (<R extends Response, N extends Options>(name... npmjs.com - Signature changed
HttpsOptions
Was type HttpsOptions = {alpnProtocols?: string[]; rejectUnauthorized?: NativeRequestOptions['rejectUnauthorized']; checkServerIdentity?: CheckServerIdentityFunction; certificateAuthority?: SecureContextOptions['ca']; key?... npmjs.com
And 5 more in this version.
got 14.4.8 breaking changes
- Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[] | undefined; cert: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]... npmjs.com
got 14.4.7 breaking changes
- Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer | (string | Buffer)[] | undefined; cert: string | Buffer | (string | Buffer)[] | undefined; key: string | Buffer | (string | Buffer |... npmjs.com - Signature changed
Options.toJSON
Was toJSON(): {headers: Headers; timeout: Delays; request: RequestFunction | undefined; username: string; password: string; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); retry: Partial<RetryOptions>... npmjs.com
got 14.4.3 breaking changes
- Signature changed
Options.toJSON
Was toJSON(): {headers: Headers; timeout: Delays; request: RequestFunction | undefined; username: string; password: string; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); retry: Partial<RetryOptions>... npmjs.com
got 14.4.2 breaking changes
- Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer | (string | Buffer)[] | undefined; cert: string | Buffer | (string | Buffer)[] | undefined; key: string | Buffer | (string | Buffer |... npmjs.com - Signature changed
Options.toJSON
Was toJSON(): {headers: Headers; timeout: Delays; request: RequestFunction | undefined; username: string; password: string; json: unknown; followRedirect: boolean | ((response: PlainResponse) => boolean); retry: Partial<RetryOptions>... npmjs.com
got 14.4.0 breaking changes
- Removed
OptionsOfBufferResponseBody.resolveBodyOnly
OptionsOfBufferResponseBody.resolveBodyOnly was removed in got 14.4.0 npmjs.com - Removed
OptionsOfJSONResponseBody.resolveBodyOnly
OptionsOfJSONResponseBody.resolveBodyOnly was removed in got 14.4.0 npmjs.com
And 10 more in this version.
got 14.3.0 breaking changes
- Signature changed
ToughCookieJar
Was type ToughCookieJar = {getCookieString: ((currentUrl: string, options: Record<string, unknown>, cb: (error: Error | null, cookies: string) => void) => void) & ((url: string, callback: (error: Error | null, cookieHeader: string) =>... npmjs.com - Signature changed
ToughCookieJar.getCookieString
Was getCookieString: ((currentUrl: string, options: Record<string, unknown>, cb: (error: Error | null, cookies: string) => void) => void) & ((url: string, callback: (error: Error | null, cookieHeader: string) => void) => void); now... npmjs.com
And 1 more in this version.
got 14.1.0 breaking changes
- Signature changed
HTTPError
Was class HTTPError extends RequestError; now class HTTPError<T = any> extends RequestError<T>. npmjs.com - Signature changed
HTTPError.response
Was readonly response: Response; now readonly response: Response<T>. npmjs.com
And 3 more in this version.
got 14.0.0 breaking changes
- Configuration changed
Got 14 requires Node.js 20. Users who still run Node.js 18 must stay on Got v13. github.com - Signature changed
ExtendOptions.followRedirect
Was followRedirect?: boolean; now followRedirect?: boolean | ((response: any) => boolean). npmjs.com
And 12 more in this version.
got 13.0.0 breaking changes
- Behavior changed
Got 13 requires Node.js 16 or later. Users on older Node.js versions must upgrade before installing this release. github.com - Default changed
enableUnixSockets
The enableUnixSockets option now defaults to false. Users who need Unix sockets must set enableUnixSockets to true explicitly. github.com
And 2 more in this version.
got 12.6.1 breaking changes
- Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer | (string | Buffer)[] | undefined; cert: string | Buffer | (string | Buffer)[] | undefined; key: string | Buffer | (string | Buffer |... npmjs.com
got 12.6.0 breaking changes
- Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer | (string | Buffer)[] | undefined; cert: string | Buffer | (string | Buffer)[] | undefined; key: string | Buffer | (string | Buffer |... npmjs.com
got 12.5.0 breaking changes
- Removed
CacheableRequestFunction
CacheableRequestFunction was removed in got 12.5.0 npmjs.com - Behavior changed
Redirects with 307 and 308 status codes no longer change the request method. Code that relied on the old method rewriting must be updated. github.com
And 2 more in this version.
got 12.4.0 breaking changes
- Removed
Got.defaults
Got.defaults was removed in got 12.4.0 npmjs.com - Removed
Got.extend
Got.extend was removed in got 12.4.0 npmjs.com
And 85 more in this version.
got 12.2.0 breaking changes
- Signature changed
Options.toJSON
Was toJSON(): {headers: Headers; timeout: Delays; request: RequestFunction | undefined; username: string; password: string; json: unknown; retry: Partial<RetryOptions>; agent: Agents; h2session: http2wrapper.ClientHttp2Session | undefined... npmjs.com - Signature changed
parseBody
Was const parseBody: (response: Response, responseType: ResponseType, parseJson: ParseJsonFunction, encoding?: BufferEncoding | undefined) => unknown; now const parseBody: (response: Response, responseType: ResponseType, parseJson... npmjs.com
got 12.1.0 breaking changes
- Behavior changed
Got no longer follows HTTP redirects that point to UNIX sockets, as a security fix for CVE-2022-33987. Code that relied on such redirects must handle them differently. github.com
got 12.0.3 breaking changes
- Signature changed
ExtendOptions.json
Was json: Record<string, any> | undefined; now json: unknown. npmjs.com - Signature changed
InternalsType.json
Was json: Record<string, any>; now json: unknown. npmjs.com
And 11 more in this version.
got 12.0.1 breaking changes
- Signature changed
Options.createNativeRequestOptions
Was createNativeRequestOptions(): {ALPNProtocols: string[] | undefined; ca: string | Buffer | (string | Buffer)[] | undefined; cert: string | Buffer | (string | Buffer)[] | undefined; key: string | Buffer | (Buffer |... npmjs.com - Signature changed
Options.getFallbackRequestFunction
Was getFallbackRequestFunction(): RequestFunction | typeof httpsRequest | undefined; now getFallbackRequestFunction(): RequestFunction | typeof https.request | undefined. npmjs.com
And 1 more in this version.
got 12.0.0 breaking changes
- Removed
Got 12 requires Node.js 14 or later. Update Node.js to v14 LTS before upgrading. github.com - Removed
defaultHandler
defaultHandler was removed in got 12.0.0 npmjs.com
And 386 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.