All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Drop Support for Webpacker, Legacy Ruby (< 3.1), and Legacy Rails (< 7.0). #163. Thanks, @tagliala
- Reduce production gem size from 31K to 18K. #165. Thanks, @tagliala
- Fixed documentation typos. #157. Thanks, @tagliala
- Fixed missing ActiveSupport require. #152. Thanks, @xymbol
- Remove wrapping whitespace from SVG tags. #150. Thanks, @fredboyle
1.9.0 - 2023-03-29
- Allow Propshaft assets to use fallbacks. #140. Thanks, @ohrite
- Handling missing file when using static assets. #141. Thanks, @leighhalliday
- Handle missing file when using Webpacker assets.
1.8.0 - 2022-01-09
- Remove deprecation warning for
inline_svg
, as we intend to keep it in 2.0. #131. Thanks @DanielJackson-Oslo - Add support for Webpacker 6 beta. #129. Thanks @Intrepidd and @tessi
- Add support for Propshaft assets in Rails 7. #134. Thanks, @martinzamuner
1.7.2 - 2020-12-07
- Improve performance of
CachedAssetFile
. #118. Thanks @stevendaniels - Avoid XSS by preventing malicious input of filenames. #117. Thanks @pbyrne.
1.7.1 - 2020-03-17
- Static Asset Finder uses pathname for compatibility with Sprockets 4+. #106. Thanks @subdigital
1.7.0 - 2020-02-13
- WebpackAssetFinder serves files from dev server if one is running. #111. Thanks, @connorshea
- Using Webpacker and Asset Pipeline in a single App could result in SVGs not being found because the wrong
AssetFinder
was used. #114. Thanks, @kylefox - Prevent "EOFError error" when using webpack dev server over HTTPS #113. Thanks, @kylefox
1.6.0 - 2019-11-13
- Support Webpack via the new
inline_svg_pack_tag
helper and deprecateinline_svg
helper in preparation for v2.0. #103 Thanks, @kylefox
1.5.2 - 2019-06-20
- Revert automatic Webpack asset finder behavior. Make Webpack "opt-in". #98
1.5.1 - 2019-06-18
- Prevent nil asset finder when neither Sprockets or Webpacker are available #97
1.5.0 - 2019-06-17
- Support for finding assets bundled by Webpacker #96
1.4.0 - 2019-04-19
- Raise error on file not found (if configured) #93
1.3.1 - 2017-12-14
- Allow Ruby < 2.1 to work with
CachedAssetFile
#80
1.3.0 - 2017-10-30
- Make aria ID attributes unique #77
1.2.3 - 2017-08-17
- Handle UTF-8 characters in SVG documents #60
1.2.2 - 2017-07-06
- Handle malformed documents that don't contain a root SVG element #60
- Add configurable CSS class to empty SVG document #67
1.2.1 - 2017-05-02
- Select most exactly matching cached asset file when multiple files match given asset name #64
1.2.0 - 2017-04-20
- Cached asset file (load assets into memory at boot time) #62
1.1.0 - 2017-04-12
- Allow configurable asset file implementations #61
1.0.1 - 2017-04-10
- Don't override custom asset finders in Railtie
1.0.0 - 2017-04-7
- Remove dependency on
Loofah
while maintaining basicnocomment
transform
0.12.1 - 2017-03-24
- Relax dependency on
Nokogiri
to allow users to upgrade to v1.7x, preventing exposure to CVE-2016-4658: #59
0.12.0 - 2017-03-16
- Relax dependency on
ActiveSupport
to allow Rails 3 applications to use the gem: #54
0.11.1 - 2016-11-22
0.11.0 - 2016-07-24
- Priority ordering for transformations
0.10.0 - 2016-07-24
0.9.1 - 2016-07-18
- Provide a hint when the .svg extension is omitted from the filename #41
0.9.0 - 2016-06-30
- Hashed IDs for desc and title elements in aria-labeled-by attribute #38
0.8.0 - 2016-05-23
- Default values for custom transformations #36. Thanks, @andrewaguiar
0.7.0 - 2016-05-03
- Aria attributes transform (aria-labelledby / role etc.) Addresses issue #28
0.6.4 - 2016-04-23
- Don't duplicate the
title
element. Addresses issue #31 - Make the
title
element the first child node of the SVG document
0.6.3 - 2016-04-19
- Accept
IO
objects as arguments toinline_svg
. Thanks, @ASnow.
0.6.2 - 2016-01-24
- Support Sprockets >= 3.0 and config.assets.precompile = false
0.6.1 - 2015-08-06
- Support Rails versions back to 4.0.4. Thanks, @walidvb.
0.6.0 - 2015-07-07
- Apply user-supplied custom transformations to a document.
0.5.3 - 2015-06-22
preserveAspectRatio
transformation on SVG root node. Thanks, @paulozoom.
0.5.2 - 2015-04-03
- Support Sprockets v2 and v3 (Sprockets::Asset no longer to_s to a filename)
0.5.1 - 2015-03-30
** This version is NOT compatible with Sprockets >= 3. **
- Support for ActiveSupport (and hence, Rails) 4.2.x. Thanks, @jmarceli.
0.5.0 - 2015-03-29
- A new option:
id
adds an id attribute to the SVG. - A new option:
data
adds data attributes to the SVG.
- New options:
height
andwidth
overridesize
and can be set independently.
0.4.0 - 2015-03-22
- A new option:
size
adds width and height attributes to an SVG. Thanks, @2metres.
- Dramatically simplified the TransformPipeline and Transformations code.
- Added tests for the pipeline and new size transformations.
- Transformations can no longer be created with a nil value.
0.3.0 - 2015-03-20
- Use Sprockets to find canonical asset paths (fingerprinted, post asset-pipeline).
0.2.0 - 2014-12-31
- Optionally remove comments from SVG files. Thanks, @jmarceli.
0.1.0 - 2014-12-15
- Optionally add a title and description to a document. Thanks, ludwig.schubert@qlearning.de.
- Add integration tests for main view helper. Thanks, ludwig.schubert@qlearning.de.
- Basic Railtie and view helper to inline SVG documents to Rails views.