Skip to content

Releases: mogest/prawn-svg

v0.35.1

17 Jul 19:30
0fd3ea8
Compare
Choose a tag to compare

Security: update rexml version (#168)

Full Changelog: v0.35.0...v0.35.1

v0.35.0

22 Jun 21:37
ea091f2
Compare
Choose a tag to compare

The minimum Ruby version has been changed to 2.7.

Changes

  • Rebuild CSS values parser to be more standards compliant

Maintenance

  • Use RuboCop for linting
  • A very large reformat of the codebase
  • Opt into Rubygems MFA

Full Changelog: v0.34.2...v0.35.0

v0.34.2

16 Mar 07:34
2685beb
Compare
Choose a tag to compare
  • Implement correct handling of the overflow property
  • Inline base64 code rather than using the gem
  • Handle gradients without a name

Full Changelog: v0.34.1...v0.34.2

v0.34.0

28 Jan 01:46
a2819b4
Compare
Choose a tag to compare

What's changed

  • SVG documents can be referenced by an <image> element (#137, #144)
  • <use>ing symbols now correctly renders them as svg documents (#157)

Full Changelog: v0.33.0...v0.34.0

v0.33.0

16 Dec 22:49
87b3d90
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.32.0...v0.33.0

v0.32.0

07 Mar 23:38
Compare
Choose a tag to compare

Ruby 3.0 support.

v0.31.0

24 Oct 20:50
Compare
Choose a tag to compare

Changes

  • Add basic radialGradient support. It's not quite perfect yet.
  • Add text-decoration: underline support
  • Make href synonymous with namespaced attribute xlink:href

Fixes

  • Allow "use" of elements that are defined lower in the document than where they're used
  • Respect fill property on the top-level svg element
  • Follow href on gradient to reference parent stop definitions
  • Support highly compressed path elements
  • Fix crash when opacity was configured but no content was drawn

v0.30.0

14 Nov 08:10
Compare
Choose a tag to compare

Changes:

  • Implement skewX and skewY transforms
  • Implement gradientTransform on <linearGradient>
  • Implement textLength and lengthAdjust attributes on <text>
  • Support <a> element with no functionality

Bug fixes:

  • opacity/fill-opacity/stroke-opacity precedence change
  • Accept "data:" URLs case insensitively

v0.29.1

06 Feb 04:33
Compare
Choose a tag to compare

Changes:

  • Support Ruby 2.6.

Bug fixes:

  • CSS selectors :first-child, :last-child, :nth-child and the adjacent combinator now all work more correctly.

Also added a note to README that versions of Ruby before 2.6 will have an ongoing problem with the adjacent CSS combinator. This is due to a bug in REXML.

v0.29.0

05 Jan 03:07
Compare
Choose a tag to compare

Changes:

  • SVGs that do not have a width or height but do have a viewBox will now use 100% width and use the viewBox's ratio to determine the height. Previously it would use 100% of both width and height.

Bug fixes:

  • Correctly ignore CSS selectors that prawn-svg doesn't implement; some would make it crash.