---
title: "gotenberg.sharp.api.client 4.0.0 Breaking Changes on NuGet"
description: "What each gotenberg.sharp.api.client release removed, renamed or changed: 28 breaking changes in 1 version on NuGet, each with its source."
canonical_url: https://since.dev/packages/nuget/gotenberg.sharp.api.client
last_updated: 2026-12-04
---

# gotenberg.sharp.api.client breaking changes

gotenberg.sharp.api.client 4.0.0 (November 26, 2026) is its newest release with breaking changes, 28 of them. The first: Built-in retry and Polly dependency removed in Gotenberg.Sharp.API.Client 4.0.0. Every breaking API change we have recorded in gotenberg.sharp.api.client on NuGet: 28 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 26, 2026. [Source repository](https://github.com/ChangemakerStudios/GotenbergSharpApiClient)

Packages on NuGet run on .NET. [.NET end of life dates](https://since.dev/calendar/dotnet.md).

## gotenberg.sharp.api.client 4.0.0 breaking changes

gotenberg.sharp.api.client 4.0.0, released November 26, 2026: 28 breaking changes.

- **Removed**  

The client no longer retries and sends each request once. Add a resilience handler to the IHttpClientBuilder returned by AddGotenbergSharpClient() to keep retries. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Removed**  

The package no longer depends on Newtonsoft.Json, so code relying on its types through this package must add that reference itself. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Removed** `Gotenberg.Sharp.API.Client.Infrastructure.Pipeline.TimeoutHandler`  

AddGotenbergSharpClient() no longer adds a 5-minute per-attempt timeout handler. Set HttpClient.Timeout instead if you created a TimeoutHandler. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Removed** `JObject`  

Code using JObject must switch to IDictionary\<string, object> or System.Text.Json.Nodes.JsonObject. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed**  

Later changes to dictionaries passed to the builders are no longer sent. Build the dictionary again to change what is sent. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed**  

JSON form fields are no longer indented when sent. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed**  

Dictionary values of other types, such as DateOnly, TimeSpan or anonymous types, now throw NotSupportedException when supplied. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed** `AddAdditionalHeaders`  

Missing header names now throw ArgumentException and null values throw ArgumentNullException. Headers from repeated calls are all kept now. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed** `ConfigBuilder.SetResultFileName`  

The name is now sent as Gotenberg-Output-Filename and non-ASCII characters are cleaned up, so output file names may differ. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed** `GotenbergApiException.ToVerboseJson`  

ToVerboseJson now writes a fixed set of response and request fields instead of a reflection dump. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed** `GotenbergSharpClientOptions.ApiVersion`  

With Auto, each request reads the service version first, and a failed lookup throws GotenbergApiException. Set ApiVersion to V8 or V9 to skip the lookup. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed** `ReadPdfBookmarksAsync`  

Malformed JSON now raises System.Text.Json.JsonException instead of a Newtonsoft exception. Update any catch blocks. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Behavior changed** `TimeOut`  

TimeOut counts from the start of the call through the end of the response body. Raise it for large documents on slow links. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Default changed**  

The HttpClient handler lifetime default is now 2 minutes instead of 6. Use SetHandlerLifetime to keep a different value. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Application.Builders.PdfEngineBuilders.WriteMetadata`  

Pass an IDictionary\<string, object> or a JsonObject instead of a JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Application.HtmlBehavior.HtmlConversionBehaviorBuilder.AddAdditionalHeaders`  

Pass an IDictionary\<string, object> or a JsonObject instead of a JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Application.HtmlBehavior.HtmlConversionBehaviorBuilder.SetMetadata`  

Was Gotenberg.Sharp.API.Client.Application.HtmlBehavior.HtmlConversionBehaviorBuilder SetMetadata(Newtonsoft.Json.Linq.JObject metadata); now Gotenberg.Sharp.API.Client.Application.HtmlBehavior.HtmlConversionBehaviorBuilder... [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Application.Overlays.StampOptionsBuilder.SetOptions`  

Was Gotenberg.Sharp.API.Client.Application.Overlays.StampOptionsBuilder SetOptions(Newtonsoft.Json.Linq.JObject options); now Gotenberg.Sharp.API.Client.Application.Overlays.StampOptionsBuilder... [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Application.Overlays.WatermarkOptionsBuilder.SetOptions`  

Was Gotenberg.Sharp.API.Client.Application.Overlays.WatermarkOptionsBuilder SetOptions(Newtonsoft.Json.Linq.JObject options); now Gotenberg.Sharp.API.Client.Application.Overlays.WatermarkOptionsBuilder... [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Application.PdfOutput.PdfOutputOptionsBuilder.SetMetadata`  

Was Gotenberg.Sharp.API.Client.Application.PdfOutput.PdfOutputOptionsBuilder SetMetadata(Newtonsoft.Json.Linq.JObject metadata); now Gotenberg.Sharp.API.Client.Application.PdfOutput.PdfOutputOptionsBuilder... [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Domain.HtmlBehavior.HtmlConversionBehaviors.ExtraHeaders`  

The property is now an IDictionary\<string, object> instead of JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Domain.Overlays.StampOptions.Options`  

The property is now an IDictionary\<string, object> instead of JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Domain.Overlays.WatermarkOptions.Options`  

The property is now an IDictionary\<string, object> instead of JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Domain.PdfOutput.PdfOutputOptions.MetaData`  

The property is now an IDictionary\<string, object> instead of JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `Gotenberg.Sharp.API.Client.Domain.Requests.WriteMetadataRequest.Metadata`  

The property is now an IDictionary\<string, object> instead of JObject. [nuget.org](https://www.nuget.org/packages/Gotenberg.Sharp.API.Client/4.0.0)
- **Signature changed** `GotenbergVersionNotSupportedException.Requirement`  

These properties can be null for removed features, so code reading them must handle null. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Signature changed** `SetMetadata`  

Pass an IDictionary\<string, object> or a JsonObject instead of a JObject. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)
- **Signature changed** `SetOptions`  

Pass an IDictionary\<string, object> or a JsonObject instead of a JObject. [github.com](https://github.com/ChangemakerStudios/GotenbergSharpApiClient/releases/tag/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
