2017-03-01 02:40:11 +03:00
|
|
|
{
|
2017-06-02 09:20:59 +03:00
|
|
|
"name": "feather-icons",
|
2017-06-05 10:28:24 +03:00
|
|
|
"version": "0.0.0-development",
|
2017-06-04 11:03:46 +03:00
|
|
|
"description": "Simply beautiful open source icons",
|
2017-07-04 00:13:34 +03:00
|
|
|
"main": "dist/feather.js",
|
2018-05-19 02:13:35 +03:00
|
|
|
"unpkg": "dist/feather.min.js",
|
2017-07-04 00:13:34 +03:00
|
|
|
"files": [
|
|
|
|
"dist"
|
|
|
|
],
|
2017-05-13 12:36:11 +03:00
|
|
|
"scripts": {
|
2018-05-18 09:12:06 +03:00
|
|
|
"all": "npm-run-all --sequential build lint test:coverage",
|
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-19 07:00:16 +03:00
|
|
|
"build": "./bin/build.sh",
|
|
|
|
"lint": "eslint .",
|
2018-05-18 09:12:06 +03:00
|
|
|
"test": "jest --watch",
|
|
|
|
"test:coverage": "jest --coverage",
|
2017-06-05 10:28:24 +03:00
|
|
|
"cm": "git-cz",
|
2017-11-20 05:01:04 +03:00
|
|
|
"precommit": "lint-staged",
|
2018-02-20 23:48:09 +03:00
|
|
|
"commitmsg": "commitlint --edit"
|
2017-05-13 12:36:11 +03:00
|
|
|
},
|
2017-11-20 05:01:04 +03:00
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "cz-conventional-changelog"
|
|
|
|
}
|
|
|
|
},
|
2018-05-18 09:19:02 +03:00
|
|
|
"jest": {
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"src/**/*.js"
|
|
|
|
]
|
|
|
|
},
|
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-19 07:00:16 +03:00
|
|
|
"dependencies": {
|
2018-05-18 22:26:21 +03:00
|
|
|
"classnames": "^2.2.5",
|
|
|
|
"core-js": "^2.5.3"
|
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-19 07:00:16 +03:00
|
|
|
},
|
2017-05-13 12:36:11 +03:00
|
|
|
"devDependencies": {
|
2017-12-15 12:38:12 +03:00
|
|
|
"@commitlint/cli": "^5.2.5",
|
2018-05-18 08:29:21 +03:00
|
|
|
"@commitlint/config-conventional": "^6.1.3",
|
2018-05-18 07:51:49 +03:00
|
|
|
"algoliasearch": "^3.27.1",
|
2017-07-04 00:13:34 +03:00
|
|
|
"babel-cli": "^6.24.1",
|
|
|
|
"babel-loader": "^7.1.1",
|
2018-05-18 22:26:21 +03:00
|
|
|
"babel-preset-env": "^1.7.0",
|
|
|
|
"babel-preset-stage-2": "^6.24.1",
|
2017-11-13 19:13:11 +03:00
|
|
|
"cheerio": "^1.0.0-rc.2",
|
2017-06-05 10:28:24 +03:00
|
|
|
"commitizen": "^2.9.6",
|
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-19 07:00:16 +03:00
|
|
|
"cz-conventional-changelog": "^2.1.0",
|
2018-05-19 02:41:56 +03:00
|
|
|
"eslint": "^4.19.1",
|
2017-12-16 12:03:00 +03:00
|
|
|
"eslint-config-airbnb-base": "^12.1.0",
|
2017-12-16 11:51:59 +03:00
|
|
|
"eslint-config-prettier": "^2.9.0",
|
2017-07-04 00:13:34 +03:00
|
|
|
"eslint-plugin-import": "^2.5.0",
|
2018-01-19 08:50:26 +03:00
|
|
|
"eslint-plugin-prettier": "^2.5.0",
|
2017-12-25 10:37:07 +03:00
|
|
|
"html-minifier": "^3.5.8",
|
2017-12-15 02:55:38 +03:00
|
|
|
"husky": "^0.14.3",
|
2018-05-19 02:41:56 +03:00
|
|
|
"jest": "^22.4.4",
|
2017-12-16 11:52:08 +03:00
|
|
|
"lint-staged": "^6.0.0",
|
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-19 07:00:16 +03:00
|
|
|
"npm-run-all": "^4.1.2",
|
2017-11-13 19:13:11 +03:00
|
|
|
"prettier": "^1.8.2",
|
2018-01-19 08:49:42 +03:00
|
|
|
"semantic-release": "^12.2.2",
|
2017-06-05 10:28:24 +03:00
|
|
|
"svgo": "^0.7.2",
|
2018-05-18 22:26:21 +03:00
|
|
|
"webpack": "^4.8.3",
|
|
|
|
"webpack-cli": "^2.1.3"
|
2017-06-05 10:28:24 +03:00
|
|
|
},
|
2017-06-04 11:03:46 +03:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2017-12-14 21:14:19 +03:00
|
|
|
"url": "https://github.com/feathericons/feather.git"
|
2017-06-04 11:03:46 +03:00
|
|
|
},
|
|
|
|
"author": "Cole Bemis <cole@colebemis.com> (http://colebemis.com)",
|
|
|
|
"license": "MIT"
|
2017-05-13 12:36:11 +03:00
|
|
|
}
|