---
title: "prawn-svg 1.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each prawn-svg release removed, renamed or changed: 38 breaking changes in 13 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/prawn-svg
last_updated: 2026-12-04
---

# 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

Latest version `1.0.0`, released November 20, 2026. [Source repository](https://github.com/mogest/prawn-svg)

Its 1.0.0 release requires [Ruby 2.7](https://since.dev/calendar/ruby/2.7.md) or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [0.40.0](#v-0-40-0) to [1.0.0](#v-1-0-0): 22 breaking changes in 1 version.
- From [0.24.0](#v-0-24-0) to [1.0.0](#v-1-0-0): 37 breaking changes in 12 versions.

## prawn-svg 1.0.0 breaking changes

prawn-svg 1.0.0, released November 20, 2026: 22 breaking changes.

- **Removed** `Prawn.SVG.Interface.font_path`  

Use Prawn::SVG::FontRegistry.font_path instead. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Removed** `UrlLoader.add_to_cache`  

Pass a pre-filled Hash as the cache_requests option instead. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Removed** `UrlLoader.retrieve_from_cache`  

Pass a pre-filled Hash as the cache_requests option instead. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Renamed** `enable_file_requests_with_root`  

Pass the root path as file_requests instead; the old name is still accepted. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Renamed** `enable_web_requests`  

The old option name is still accepted, but if both are given the new one wins. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Renamed** `log_warnings`  

Use log_issues: true; the old name is still accepted. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Renamed** `Prawn.SVG.Document.Error`  

Rescue Prawn::SVG::Error instead. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Renamed** `Prawn.SVG.Document.InvalidSVGData`  

Rescue Prawn::SVG::InvalidSVGData instead. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Renamed** `result[:warnings]`  

svg returns result\[:issues\] with Issue objects; check categories instead of result\[:warnings\].empty?. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

Ruby 2.7 is the minimum supported version; tested up to Ruby 4.0. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

Content fetched from the web can no longer refer to local files. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

Fonts declared with @font-face are no longer added to the Prawn document's font_families after svg returns. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **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](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

SVGs with elements nested more than 200 levels deep are treated as invalid. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

Every request is cached for one render; pass your own Hash as cache_requests to share a cache. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

Each web request response is limited to 20 MB and 30 seconds. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

Unknown options, including string keys, raise instead of being ignored unless Prawn.debug is on. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

requiredFeatures, requiredExtensions and systemLanguage are evaluated on every element, not only inside switch. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed**  

A negative width or height is reported as an invalid issue; zero size is no longer reported. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Behavior changed** `Document.warnings`  

The returned array can no longer be modified. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **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](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)
- **Configuration changed**  

The minimum Prawn version rises from 0.11.1 to 2.3.0. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v1.0.0)

## prawn-svg 0.40.0 breaking changes

prawn-svg 0.40.0, released March 15, 2026: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.40.0)

## prawn-svg 0.38.0 breaking changes

prawn-svg 0.38.0, released August 8, 2025: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.38.0)

## prawn-svg 0.37.0 breaking changes

prawn-svg 0.37.0, released March 14, 2025: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.37.0)

## prawn-svg 0.36.0 breaking changes

prawn-svg 0.36.0, released January 5, 2025: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.36.0)

## prawn-svg 0.35.0 breaking changes

prawn-svg 0.35.0, released June 22, 2024: 2 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](https://github.com/mogest/prawn-svg/releases/tag/v0.35.0)
- **Behavior changed**  

CSS values may now be parsed differently, so SVG rendering output could change for some inputs. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v0.35.0)

## Older versions

7 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### prawn-svg 0.32.0 breaking changes

prawn-svg 0.32.0, released March 7, 2021: 1 breaking change.

- **Behavior changed**  

The release announces Ruby 3.0 support; no existing code is stated to break. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v0.32.0)

### prawn-svg 0.30.0 breaking changes

prawn-svg 0.30.0, released November 14, 2019: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.30.0)

### prawn-svg 0.29.0 breaking changes

prawn-svg 0.29.0, released January 5, 2019: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.29.0)

### prawn-svg 0.28.0 breaking changes

prawn-svg 0.28.0, released July 25, 2018: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.28.0)

### prawn-svg 0.27.0 breaking changes

prawn-svg 0.27.0, released March 31, 2017: 3 breaking changes.

- **Behavior changed** `fill`  

A single-dimensional line is no longer filled when drawn, which changes rendering in Adobe Acrobat. [github.com](https://github.com/mogest/prawn-svg/releases/tag/v0.27.0)
- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.27.0)

And 1 more in this version.

### prawn-svg 0.25.0 breaking changes

prawn-svg 0.25.0, released April 29, 2016: 2 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](https://github.com/mogest/prawn-svg/releases/tag/v0.25.0)
- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.25.0)

### prawn-svg 0.24.0 breaking changes

prawn-svg 0.24.0, released April 24, 2016: 1 breaking change.

- **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](https://github.com/mogest/prawn-svg/releases/tag/v0.24.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.
