prawn-svg breaking changes
prawn-svg 1.0.0 (November 20, 2026) is its newest release with breaking changes, 22 of them. The first: Removed Prawn.SVG.Interface.font_path. Every breaking API change we have recorded in prawn-svg on RubyGems: 38 breaking changes in 13 versions. Below, its 13 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.0.0, released November 20, 2026. Source repository
Its 1.0.0 release requires Ruby 2.7 or later. Ruby end of life dates.
- From 0.40.0 to 1.0.0: 22 breaking changes in 1 version.
- From 0.24.0 to 1.0.0: 37 breaking changes in 12 versions.
prawn-svg 1.0.0 breaking changes
- Removed
Prawn.SVG.Interface.font_path
Use Prawn::SVG::FontRegistry.font_path instead. github.com - Removed
UrlLoader.add_to_cache
Pass a pre-filled Hash as the cache_requests option instead. github.com - Removed
UrlLoader.retrieve_from_cache
Pass a pre-filled Hash as the cache_requests option instead. github.com - Renamed
enable_file_requests_with_root
Pass the root path as file_requests instead; the old name is still accepted. github.com - Renamed
enable_web_requests
The old option name is still accepted, but if both are given the new one wins. github.com - Renamed
log_warnings
Use log_issues: true; the old name is still accepted. github.com - Renamed
Prawn.SVG.Document.Error
Rescue Prawn::SVG::Error instead. github.com - Renamed
Prawn.SVG.Document.InvalidSVGData
Rescue Prawn::SVG::InvalidSVGData instead. github.com - Renamed
result[:warnings]
svg returns result[:issues] with Issue objects; check categories instead of result[:warnings].empty?. github.com - Behavior changed
Ruby 2.7 is the minimum supported version; tested up to Ruby 4.0. github.com - Behavior changed
Content fetched from the web can no longer refer to local files. github.com - Behavior changed
Fonts declared with @font-face are no longer added to the Prawn document's font_families after svg returns. github.com - Behavior changed
Large drawings can exceed the default max_work of 1_000_000 and raise WorkLimitExceeded; raise max_work or pass false for trusted input. github.com - Behavior changed
SVGs with elements nested more than 200 levels deep are treated as invalid. github.com - Behavior changed
Every request is cached for one render; pass your own Hash as cache_requests to share a cache. github.com - Behavior changed
Each web request response is limited to 20 MB and 30 seconds. github.com - Behavior changed
Unknown options, including string keys, raise instead of being ignored unless Prawn.debug is on. github.com - Behavior changed
requiredFeatures, requiredExtensions and systemLanguage are evaluated on every element, not only inside switch. github.com - Behavior changed
A negative width or height is reported as an invalid issue; zero size is no longer reported. github.com - Behavior changed
Document.warnings
The returned array can no longer be modified. github.com - Default changed
web_requests
prawn-svg no longer fetches http or https URLs unless you enable web requests. Set web_requests to keep remote resources loading. github.com - Configuration changed
The minimum Prawn version rises from 0.11.1 to 2.3.0. github.com
prawn-svg 0.40.0 breaking changes
- Default changed
:enable_web_requests
This release does not change the default yet. Explicitly set :enable_web_requests now, since v1.0 will default it to false. github.com
prawn-svg 0.38.0 breaking changes
- Behavior changed
Text layout was rewritten, which changes how text is positioned and which font weight is used when the requested weight is missing. Check rendered SVG text that depends on these, and report regressions. github.com
prawn-svg 0.37.0 breaking changes
- Behavior changed
Presentation attributes on SVG elements no longer take priority over CSS rules that match the element. Check SVG files that rely on an attribute overriding a stylesheet rule, since their output may change. github.com
prawn-svg 0.36.0 breaking changes
- Behavior changed
Property handling was largely rewritten to follow the SVG spec more closely. SVGs with invalid property values may now be treated differently, closer to how web browsers treat them. Check output for SVGs that use invalid values and report... github.com
prawn-svg 0.35.0 breaking changes
- Removed
Older Ruby versions are no longer supported, so code running on them must upgrade to Ruby 2.7 or later. github.com - Behavior changed
CSS values may now be parsed differently, so SVG rendering output could change for some inputs. github.com
Older versions
7 older versions, each with its first changes. Sign up to see every change
Show 7 older versions
prawn-svg 0.32.0 breaking changes
- Behavior changed
The release announces Ruby 3.0 support; no existing code is stated to break. github.com
prawn-svg 0.30.0 breaking changes
- Behavior changed
The precedence between opacity, fill-opacity and stroke-opacity was changed, so existing SVGs that set more than one may render differently. Check output of SVGs that use these attributes together. github.com
prawn-svg 0.29.0 breaking changes
- Behavior changed
An SVG with a viewBox but no width or height now uses 100% width and takes its height from the viewBox ratio. Previously it used 100% of both width and height, so check output for such files. github.com
prawn-svg 0.28.0 breaking changes
- Behavior changed
When a font is available both in prawn's font_families and in the registry path, the font_families version is now preferred. Code relying on the registry font may render differently. github.com
prawn-svg 0.27.0 breaking changes
- Behavior changed
fill
A single-dimensional line is no longer filled when drawn, which changes rendering in Adobe Acrobat. github.com - Default changed
The svg element's width and height now default to 100% as per the spec and modern browsers. Code relying on the previous defaults may render at different sizes. github.com
And 1 more in this version.
prawn-svg 0.25.0 breaking changes
- Behavior changed
Nested svg elements now create their own viewport, which changes how their contents are positioned and scaled. Existing nested SVGs may render differently. github.com - Behavior changed
The text system was rewritten: whitespace is now collapsed, spaces between tags are placed differently, and x, y, dx and dy attributes are applied differently. Existing SVGs with text may render differently and should be checked. github.com
prawn-svg 0.24.0 breaking changes
- Behavior changed
The property and attribute parser was completely rewritten, so existing SVGs may render differently where property parsing or inheritance was previously non-compliant. 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.