Skip to content

Latest commit

 

History

History
169 lines (118 loc) · 5.59 KB

CHANGELOG.md

File metadata and controls

169 lines (118 loc) · 5.59 KB

Release History

2.0.0 (November 30, 2018)

  • Support Grunt 1+ and Node 6+
  • Use eslint
  • Added the setUniqueIds and removeEmptyGroupElements options for ability to choose whether or not to set unique ids and remove empty elements
  • Automatically fix viewbox as well as viewBox on source items
  • Added the allowDuplicateItems option to allow duplicate item names
  • Make <desc> available in custom templates

1.0.0 (February 2, 2016)

  • Added: Preserving of strokes (in addition to fills).
  • Added: CHANGELOG.md to document changes between releases.
  • Updated: Preserving of fills.
  • Updated: dependencies.

0.5.0

  • Added the includeTitleElement and preserveDescElement options for more control of the accessible names for icons (See #83)
  • Added the externalDefs option to include a custom set of shared <defs> (like gradients) across multiple svgs. (See #81)

0.4.1

  • Introducing the preserve-- prefix for attributes to force these attributes in the result svg (See #71)

0.4.0

  • Generate fixed sized reference based copies of symbols (See #58)
  • Add a way to inherit the viewbox form the source svg (See #66)
  • Expose convertNameToId option to customize how ids are derived from file names. (See #68)
  • Changed the way ids are generated by using the result of convertNameToId to prefix each id. (See #50)

0.3.6

  • Preserve currentColor in fill attribute even if cleanup is set to true. (See #63)

0.3.5

  • Add the ability to use handlebars templates in options.includedemo.

0.3.4

  • Fixed an issue with SMIL animations inside a svg symbole (See #56)
  • Update to cheerio 0.17.0

0.3.3

  • Fix broken id references between nested <symbol> tags. (See #50)

0.3.2

  • Move linearGradient, radialGradient and pattern elements out of the <symbol> tag. (See #49)

0.3.1

  • Fix removal of unreferenced IDs (See #46)

0.3.0

  • Changed the way ID are collected; unreferenced IDs are removed now in order to save space. (#40)
  • Changed the behavior of the 'cleanup'-option (introduced in 0.2.6). Apart from true / false, the value of this property can now be an array of attributes. All attributes in the array are removed from all elements in the SVG. (#41)
  • Added an option 'cleanupdefs' (default: false). When set to false, no cleanup is performed on the <defs> element. (#41)
  • Empty <g> elements are removed since they have no effect in a document. (#42)

Thanks to Frank3K for the PRs

0.2.7

  • Don't generate IDs that start with a number by prefixing them with svgstore. (Thanks to #38)

0.2.6

  • Add options.clean to remove inline styles from source svgs. (Thanks to ain)
  • Reformat source to use 2 spaces for indentation (Fix #36)

0.2.5

  • To generate the id from the filename is now used as a title. (Fix #33)

0.2.4

  • Added options.symbol to add attributes to generated <symbol>s (#30)
  • To generate the id from the filename the name is now cut right before the first dot. name.min.svg becomes name. (Fixes #29)

0.2.3

  • Fixed lower case viewBox in outputted svg (fix #26)

0.2.2

  • Fixed a bug where self-closing elements where nested.

0.2.1

  • Move <symbol>-tag out of <defs>-tag (see the spec)
  • Only create <defs>-tag if needed (e.g. <linearGradient> is used)

0.2.0

  • Use a <symbol>-tag for representing icons (See TxHawks Comment.)
  • Write the viewBox attribute to the <symbol>-tag,
  • Include title and desc elements in the generated svg for each <symbol>
  • use 'filename' as a fallback for title
  • Fix issue #1

0.1.0

  • Always add xmlns namspace.
  • Added the includedemo option.
  • Fixed Issues #20, #19, #18

0.0.4

  • Fixed issue with referencing ids with url() (fix #12)

0.0.3

  • Added options.formatting to format svg via js-beautify

0.0.2

  • Fixed npm dependencies

0.0.1

  • Inital release