Skip to content

Latest commit

 

History

History
287 lines (235 loc) · 11.6 KB

CHANGELOG.md

File metadata and controls

287 lines (235 loc) · 11.6 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Nothing.

1.8.0 - 2022-01-09

Added

1.7.2 - 2020-12-07

Fixed

  • Improve performance of CachedAssetFile. #118. Thanks @stevendaniels
  • Avoid XSS by preventing malicious input of filenames. #117. Thanks @pbyrne.

1.7.1 - 2020-03-17

Fixed

  • Static Asset Finder uses pathname for compatibility with Sprockets 4+. #106. Thanks @subdigital

1.7.0 - 2020-02-13

Added

  • WebpackAssetFinder serves files from dev server if one is running. #111. Thanks, @connorshea

Fixed

  • 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

Added

  • Support Webpack via the new inline_svg_pack_tag helper and deprecate inline_svg helper in preparation for v2.0. #103 Thanks, @kylefox

1.5.2 - 2019-06-20

Fixed

  • Revert automatic Webpack asset finder behavior. Make Webpack "opt-in". #98

1.5.1 - 2019-06-18

Fixed

  • Prevent nil asset finder when neither Sprockets or Webpacker are available #97

1.5.0 - 2019-06-17

Added

  • Support for finding assets bundled by Webpacker #96

1.4.0 - 2019-04-19

Fixed

  • Prevent invalid XML names being generated via IdGenerator #87 Thanks, @endorfin

Added

  • Raise error on file not found (if configured) #93

1.3.1 - 2017-12-14

Fixed

  • Allow Ruby < 2.1 to work with CachedAssetFile #80

1.3.0 - 2017-10-30

Added

  • Aria hidden attribute #78 and #79
  • In-line CSS style attribute #71

Fixed

  • Make aria ID attributes unique #77

1.2.3 - 2017-08-17

Fixed

  • Handle UTF-8 characters in SVG documents #60

1.2.2 - 2017-07-06

Fixed

  • Handle malformed documents that don't contain a root SVG element #60

Added

  • Add configurable CSS class to empty SVG document #67

1.2.1 - 2017-05-02

Fixed

  • Select most exactly matching cached asset file when multiple files match given asset name #64

1.2.0 - 2017-04-20

Added

  • Cached asset file (load assets into memory at boot time) #62

1.1.0 - 2017-04-12

Added

  • Allow configurable asset file implementations #61

1.0.1 - 2017-04-10

Fixed

  • Don't override custom asset finders in Railtie

1.0.0 - 2017-04-7

Added

  • Remove dependency on Loofah while maintaining basic nocomment transform

0.12.1 - 2017-03-24

Added

  • 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

Added

  • Relax dependency on ActiveSupport to allow Rails 3 applications to use the gem: #54

0.11.1 - 2016-11-22

Fixed

  • Dasherize data attribute names: #51
  • Prevent ID collisions between desc and title attrs: #52

0.11.0 - 2016-07-24

Added

  • Priority ordering for transformations

Fixed

  • Prevent duplicate desc elements being created #46
  • Prevent class attributes being replaced #44

0.10.0 - 2016-07-24

Added

  • Rails 5 support #43
  • Support for Sprockets::Asset #45

0.9.1 - 2016-07-18

Fixed

  • Provide a hint when the .svg extension is omitted from the filename #41

0.9.0 - 2016-06-30

Fixed

  • Hashed IDs for desc and title elements in aria-labeled-by attribute #38

0.8.0 - 2016-05-23

Added

0.7.0 - 2016-05-03

Added

  • Aria attributes transform (aria-labelledby / role etc.) Addresses issue #28

0.6.4 - 2016-04-23

Fixed

  • 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

Added

  • Accept IO objects as arguments to inline_svg. Thanks, @ASnow.

0.6.2 - 2016-01-24

Fixed

  • Support Sprockets >= 3.0 and config.assets.precompile = false

0.6.1 - 2015-08-06

Fixed

  • Support Rails versions back to 4.0.4. Thanks, @walidvb.

0.6.0 - 2015-07-07

Added

0.5.3 - 2015-06-22

Added

  • preserveAspectRatio transformation on SVG root node. Thanks, @paulozoom.

0.5.2 - 2015-04-03

Fixed

  • Support Sprockets v2 and v3 (Sprockets::Asset no longer to_s to a filename)

0.5.1 - 2015-03-30

Warning

** This version is NOT comaptible with Sprockets >= 3. **

Fixed

  • Support for ActiveSupport (and hence, Rails) 4.2.x. Thanks, @jmarceli.

0.5.0 - 2015-03-29

Added

  • A new option: id adds an id attribute to the SVG.
  • A new option: data adds data attributes to the SVG.

Changed

  • New options: height and width override size and can be set independently.

0.4.0 - 2015-03-22

Added

  • A new option: size adds width and height attributes to an SVG. Thanks, @2metres.

Changed

  • Dramatically simplified the TransformPipeline and Transformations code.
  • Added tests for the pipeline and new size transformations.

Fixed

  • Transformations can no longer be created with a nil value.

0.3.0 - 2015-03-20

Added

  • Use Sprockets to find canonical asset paths (fingerprinted, post asset-pipeline).

0.2.0 - 2014-12-31

Added

  • Optionally remove comments from SVG files. Thanks, @jmarceli.

0.1.0 - 2014-12-15

Added

0.0.1 - 2014-11-24

Added

  • Basic Railtie and view helper to inline SVG documents to Rails views.