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
On this page
Latest version 4.0.0, released November 26, 2026. Source repository
Packages on NuGet run on .NET. .NET end of life dates.
gotenberg.sharp.api.client 4.0.0 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 - 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 - 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 - Removed
JObject
Code using JObject must switch to IDictionary<string, object> or System.Text.Json.Nodes.JsonObject. github.com - 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 - Behavior changed
JSON form fields are no longer indented when sent. github.com - Behavior changed
Dictionary values of other types, such as DateOnly, TimeSpan or anonymous types, now throw NotSupportedException when supplied. github.com - Behavior changed
AddAdditionalHeaders
Missing header names now throw ArgumentException and null values throw ArgumentNullException. Headers from repeated calls are all kept now. github.com - 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 - Behavior changed
GotenbergApiException.ToVerboseJson
ToVerboseJson now writes a fixed set of response and request fields instead of a reflection dump. github.com - 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 - Behavior changed
ReadPdfBookmarksAsync
Malformed JSON now raises System.Text.Json.JsonException instead of a Newtonsoft exception. Update any catch blocks. github.com - 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 - Default changed
The HttpClient handler lifetime default is now 2 minutes instead of 6. Use SetHandlerLifetime to keep a different value. github.com - Signature changed
Gotenberg.Sharp.API.Client.Application.Builders.PdfEngineBuilders.WriteMetadata
Pass an IDictionary<string, object> or a JsonObject instead of a JObject. nuget.org - Signature changed
Gotenberg.Sharp.API.Client.Application.HtmlBehavior.HtmlConversionBehaviorBuilder.AddAdditionalHeaders
Pass an IDictionary<string, object> or a JsonObject instead of a JObject. nuget.org - 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 - 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 - 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 - 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 - Signature changed
Gotenberg.Sharp.API.Client.Domain.HtmlBehavior.HtmlConversionBehaviors.ExtraHeaders
The property is now an IDictionary<string, object> instead of JObject. nuget.org - Signature changed
Gotenberg.Sharp.API.Client.Domain.Overlays.StampOptions.Options
The property is now an IDictionary<string, object> instead of JObject. nuget.org - Signature changed
Gotenberg.Sharp.API.Client.Domain.Overlays.WatermarkOptions.Options
The property is now an IDictionary<string, object> instead of JObject. nuget.org - Signature changed
Gotenberg.Sharp.API.Client.Domain.PdfOutput.PdfOutputOptions.MetaData
The property is now an IDictionary<string, object> instead of JObject. nuget.org - Signature changed
Gotenberg.Sharp.API.Client.Domain.Requests.WriteMetadataRequest.Metadata
The property is now an IDictionary<string, object> instead of JObject. nuget.org - Signature changed
GotenbergVersionNotSupportedException.Requirement
These properties can be null for removed features, so code reading them must handle null. github.com - Signature changed
SetMetadata
Pass an IDictionary<string, object> or a JsonObject instead of a JObject. github.com - Signature changed
SetOptions
Pass an IDictionary<string, object> or a JsonObject instead of a JObject. github.com
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.