Commit Graph

15 Commits

Author SHA1 Message Date
dependabot[bot]
73111225b0 chore(dependencies): Bump eslint-config-prettier from 2.7.0 to 2.9.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 2.7.0 to 2.9.0.
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v2.7.0...v2.9.0)
2017-12-16 08:51:59 +00:00
Cole Bemis
d5e7e14e5b
Merge pull request #251 from feathericons/dependabot/npm_and_yarn/webpack-3.10.0
Bump webpack from 3.8.1 to 3.10.0
2017-12-16 00:51:35 -08:00
dependabot[bot]
84b8428ee9 chore(dependencies): Bump html-minifier from 3.5.6 to 3.5.7
Bumps [html-minifier](https://github.com/kangax/html-minifier) from 3.5.6 to 3.5.7.
- [Release notes](https://github.com/kangax/html-minifier/releases/tag/v3.5.7)
- [Commits](https://github.com/kangax/html-minifier/compare/v3.5.6...v3.5.7)
2017-12-15 09:39:26 +00:00
Cole Bemis
f6984951a9
Merge pull request #243 from feathericons/dependabot/npm_and_yarn/husky-0.14.3
Bump husky from 0.13.4 to 0.14.3
2017-12-15 01:38:13 -08:00
Cole Bemis
dd9a0b0fe1
Merge pull request #244 from feathericons/dependabot/npm_and_yarn/@commitlint/config-angular-5.1.1
Bump @commitlint/config-angular from 5.0.0 to 5.1.1
2017-12-15 01:37:19 -08:00
dependabot[bot]
c847a2b195 chore(dependencies): Bump webpack from 3.8.1 to 3.10.0
Bumps [webpack](https://github.com/webpack/webpack) from 3.8.1 to 3.10.0.
- [Release notes](https://github.com/webpack/webpack/releases?after=v4.0.0-alpha.0)
- [Commits](https://github.com/webpack/webpack/compare/v3.8.1...v3.10.0)
2017-12-15 07:58:20 +00:00
dependabot[bot]
9d3a802eb2 chore(dependencies): Bump core-js from 2.5.1 to 2.5.3
Bumps [core-js](https://github.com/zloirock/core-js) from 2.5.1 to 2.5.3.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v2.5.1...v2.5.3)
2017-12-15 07:58:13 +00:00
dependabot[bot]
10a1b217ef chore(dependencies): Bump husky from 0.13.4 to 0.14.3
Bumps [husky](https://github.com/typicode/husky) from 0.13.4 to 0.14.3.
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v0.13.4...v0.14.3)
2017-12-14 23:55:38 +00:00
dependabot[bot]
080d5b4187 chore(dependencies): Bump semantic-release from 6.3.6 to 8.2.0
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 6.3.6 to 8.2.0.
- [Release notes](https://github.com/semantic-release/semantic-release/releases?after=v8.2.1)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v6.3.6...v8.2.0)
2017-12-14 15:54:41 -08:00
dependabot[bot]
ef4f52918b chore(dependencies): Bump @commitlint/config-angular from 5.0.0 to 5.1.1
Bumps [@commitlint/config-angular](https://github.com/marionebl/commitlint) from 5.0.0 to 5.1.1.
- [Release notes](https://github.com/marionebl/commitlint/releases?after=v5.1.2)
- [Changelog](https://github.com/marionebl/commitlint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/marionebl/commitlint/compare/v5.0.0...v5.1.1)
2017-12-14 07:08:54 +00:00
Cole Bemis
14c796917d
build: Update linting config 2017-11-19 18:01:04 -08:00
Cole Bemis
c9552b6916
fix: Remove unecessary whitespace from SVG contents
```js
/* BEFORE */
{ circle: "\n  <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n" }

/* AFTER */
{ circle: "<circle cx=\"12\" cy=\"12\" r=\"10\"></circle>" }
```
2017-11-19 16:29:52 -08:00
Cole Bemis
f243624fbd
feat: Update API
BREAKING CHANGE: 

Each icon in the `feather.icons` object is now an `Icon` object with a `name`, `contents`, `tags` and `attrs` property.
```js
/* 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()`:
```js
/* 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`:

```html
<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>
-->
```
2017-11-18 20:00:16 -08:00
Cole Bemis
0dc2bf5c9d
build: Add process-svgs script (#216) 2017-11-13 08:13:11 -08:00
Cole Bemis
bfd736270f chore: Generate package-lock.json 2017-11-09 19:23:22 -08:00