Skip to content

Releases: feathericons/feather

v4.0.0

19 Nov 04:01
f243624
Compare
Choose a tag to compare

4.0.0 (2017-11-19)

Features

Breaking Changes

Each icon in the feather.icons object is now an Icon object with a name, contents, tags and attrs property.

/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'

/* AFTER */
feather.icons.x
// {
//    name: 'x',
//    contents: '<line ... /><line ... />`,
//    tags: ['cancel', 'close', 'delete', 'remove'],
//    attrs: {
//      class: 'feather feather-x',
//      xmlns: 'http://www.w3.org/2000/svg',
//      width: 24,
//      height: 24,
//      viewBox: '0 0 24 24',
//      fill: 'none',
//      stroke: 'currentColor',
//      'stroke-width': 2,
//      'stroke-linecap': 'round',
//      'stroke-linejoin': 'round',
//    }
// }

feather.toSvg() has been deprecated in favor of feather.icons[name].toSvg():

/* BEFORE */
feather.toSvg('x')

/* AFTER */
feather.icons.x.toSvg()

feather.replace() now copies all attributes on the placeholder element (i.e. <i>) to the <svg> tag instead of just class and id:

<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->

(f243624f)

v3.3.0

11 Oct 21:06
Compare
Choose a tag to compare

3.3.0 (2017-10-11)

Features

  • Updated replace() to pass id from placeholder element (#193) (e80f8052)

v3.2.2

04 Aug 22:35
Compare
Choose a tag to compare

3.2.2 (2017-08-04)

Bug Fixes

  • Fix adding unwanted class 'null' (8926f5fb)

v3.2.1

30 Jul 07:42
Compare
Choose a tag to compare

3.2.1 (2017-07-30)

Bug Fixes

v3.2.0

30 Jul 07:35
Compare
Choose a tag to compare

3.2.0 (2017-07-30)

Features

v3.1.0

11 Jul 08:40
Compare
Choose a tag to compare

3.1.0 (2017-07-11)

Features

v3.0.0

03 Jul 22:55
Compare
Choose a tag to compare

3.0.0 (2017-07-03)

Features

Breaking Changes

  • The path to individual SVG files has changed. All SVGs now live on the same level
    inside the icons directory. For example, icons/core/home.svg is now icons/home.svg.

(9b5dc811)

v2.4.0

10 Jun 01:52
Compare
Choose a tag to compare

2.4.0 (2017-06-10)

Features

v2.3.0

07 Jun 04:51
Compare
Choose a tag to compare

2.3.0 (2017-06-07)

Features

v2.2.0

05 Jun 14:25
Compare
Choose a tag to compare

2.2.0 (2017-06-05)

Features