Skip to content

Commit

Permalink
build: release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Oct 31, 2020
1 parent 34d568e commit f0257b5
Show file tree
Hide file tree
Showing 11 changed files with 9,904 additions and 7,430 deletions.
38 changes: 25 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
# Changelog
# [1.1.0](https://github.com/fengyuanchen/vue-feather/compare/v1.0.1...v1.1.0) (2020-10-31)

## 1.0.1 (Jun 6, 2020)

- Rebuild with the latest `vue-loader` for better compatibility (#2).
### Performance Improvements

## 1.0.0 (Jan 26, 2019)
* switch to functional component ([#4](https://github.com/fengyuanchen/vue-feather/issues/4)) ([38c34f1](https://github.com/fengyuanchen/vue-feather/commit/38c34f1316c561098d1b4bb26c9e455fc506991a))

- Support to use as a Vue plugin: `Vue.use(VueFeather)`.
- Support to use as a Vue component: `Vue.component(VueFeather.name, VueFeather)`.
- Register the component automatically once loaded in the browser.

## 0.2.1 (Aug 5, 2018)

- Use Sass instead of PostCSS.
## [1.0.1](https://github.com/fengyuanchen/vue-feather/compare/v1.0.0...v1.0.1) (2020-06-06)

## 0.2.0 (Mar 25, 2018)

- Rename element class name from `vue-feather` to `feather`.

## 0.1.0 (Mar 20, 2018)
# [1.0.0](https://github.com/fengyuanchen/vue-feather/compare/v0.2.1...v1.0.0) (2019-01-26)


### Features

* register as a Vue plugin ([c03c9ca](https://github.com/fengyuanchen/vue-feather/commit/c03c9ca6bb71a9b5c96debddfb46343b101a5e90))
* register the component automatically once loaded ([f538b12](https://github.com/fengyuanchen/vue-feather/commit/f538b12e67670fa34868fb8e10676f054b16dd11))



## [0.2.1](https://github.com/fengyuanchen/vue-feather/compare/v0.2.0...v0.2.1) (2018-08-05)



# [0.2.0](https://github.com/fengyuanchen/vue-feather/compare/v0.1.0...v0.2.0) (2018-03-25)



# 0.1.0 (2018-03-20)



- Support 10 props: `animation`, `animation-speed`, `fill`, `size`, `stroke`, `stroke-linecap`, `stroke-linejoin`, `stroke-width`, `tag` and `type`.
47 changes: 26 additions & 21 deletions dist/vue-feather.common.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
/*!
* vue-feather v1.0.1
* vue-feather v1.1.0
* https://fengyuanchen.github.io/vue-feather
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-06-06T12:10:30.203Z
* Date: 2020-10-31T09:22:24.378Z
*/

'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var feather = require('feather-icons');

var feather = _interopDefault(require('feather-icons'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var feather__default = /*#__PURE__*/_interopDefaultLegacy(feather);

function _defineProperty(obj, key, value) {
if (key in obj) {
Expand Down Expand Up @@ -65,6 +67,7 @@ function _objectSpread2(target) {

var script = {
name: 'Feather',
functional: true,
props: {
animation: {
type: String,
Expand Down Expand Up @@ -106,23 +109,25 @@ var script = {
type: String,
required: true,
validator: function validator(type) {
if (!feather.icons[type]) {
if (!feather__default['default'].icons[type]) {
throw new Error("\"".concat(type, "\" is not an available icon type."));
}

return true;
}
}
},
render: function render(createElement) {
render: function render(createElement, _ref) {
var _class;

var animation = this.animation,
animationSpeed = this.animationSpeed,
size = this.size,
type = this.type;
var icon = feather.icons[type];
return createElement(this.tag, {
var listeners = _ref.listeners,
props = _ref.props;
var animation = props.animation,
animationSpeed = props.animationSpeed,
size = props.size,
type = props.type;
var icon = feather__default['default'].icons[type];
return createElement(props.tag, {
attrs: {
'data-name': type,
'data-tags': icon ? icon.tags : '',
Expand All @@ -131,15 +136,15 @@ var script = {
class: (_class = {
feather: true
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class),
on: this.$listeners
on: listeners
}, [icon ? createElement('svg', {
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, {
fill: this.fill,
fill: props.fill,
height: size,
stroke: this.stroke,
'stroke-linecap': this.strokeLinecap,
'stroke-linejoin': this.strokeLinejoin,
'stroke-width': this.strokeWidth,
stroke: props.stroke,
'stroke-linecap': props.strokeLinecap,
'stroke-linejoin': props.strokeLinejoin,
'stroke-width': props.strokeWidth,
width: size
}),
class: [icon.attrs.class, 'feather__content'],
Expand Down Expand Up @@ -296,16 +301,16 @@ var __vue_script__ = script;

var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-07452373_0", {
source: "@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}",
inject("data-v-6e255ebb_0", {
source: "@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}",
map: undefined,
media: undefined
});
};
/* scoped */


var __vue_scope_id__ = "data-v-07452373";
var __vue_scope_id__ = "data-v-6e255ebb";
/* module identifier */

var __vue_module_identifier__ = undefined;
Expand Down
37 changes: 20 additions & 17 deletions dist/vue-feather.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* vue-feather v1.0.1
* vue-feather v1.1.0
* https://fengyuanchen.github.io/vue-feather
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-06-06T12:10:30.203Z
* Date: 2020-10-31T09:22:24.378Z
*/

import feather from 'feather-icons';
Expand Down Expand Up @@ -61,6 +61,7 @@ function _objectSpread2(target) {

var script = {
name: 'Feather',
functional: true,
props: {
animation: {
type: String,
Expand Down Expand Up @@ -110,15 +111,17 @@ var script = {
}
}
},
render: function render(createElement) {
render: function render(createElement, _ref) {
var _class;

var animation = this.animation,
animationSpeed = this.animationSpeed,
size = this.size,
type = this.type;
var listeners = _ref.listeners,
props = _ref.props;
var animation = props.animation,
animationSpeed = props.animationSpeed,
size = props.size,
type = props.type;
var icon = feather.icons[type];
return createElement(this.tag, {
return createElement(props.tag, {
attrs: {
'data-name': type,
'data-tags': icon ? icon.tags : '',
Expand All @@ -127,15 +130,15 @@ var script = {
class: (_class = {
feather: true
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class),
on: this.$listeners
on: listeners
}, [icon ? createElement('svg', {
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, {
fill: this.fill,
fill: props.fill,
height: size,
stroke: this.stroke,
'stroke-linecap': this.strokeLinecap,
'stroke-linejoin': this.strokeLinejoin,
'stroke-width': this.strokeWidth,
stroke: props.stroke,
'stroke-linecap': props.strokeLinecap,
'stroke-linejoin': props.strokeLinejoin,
'stroke-width': props.strokeWidth,
width: size
}),
class: [icon.attrs.class, 'feather__content'],
Expand Down Expand Up @@ -292,16 +295,16 @@ var __vue_script__ = script;

var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-07452373_0", {
source: "@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}",
inject("data-v-6e255ebb_0", {
source: "@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}",
map: undefined,
media: undefined
});
};
/* scoped */


var __vue_scope_id__ = "data-v-07452373";
var __vue_scope_id__ = "data-v-6e255ebb";
/* module identifier */

var __vue_module_identifier__ = undefined;
Expand Down
47 changes: 26 additions & 21 deletions dist/vue-feather.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
/*!
* vue-feather v1.0.1
* vue-feather v1.1.0
* https://fengyuanchen.github.io/vue-feather
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-06-06T12:10:30.203Z
* Date: 2020-10-31T09:22:24.378Z
*/

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('feather-icons')) :
typeof define === 'function' && define.amd ? define(['feather-icons'], factory) :
(global = global || self, global.VueFeather = factory(global.feather));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.VueFeather = factory(global.feather));
}(this, (function (feather) { 'use strict';

feather = feather && Object.prototype.hasOwnProperty.call(feather, 'default') ? feather['default'] : feather;
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var feather__default = /*#__PURE__*/_interopDefaultLegacy(feather);

function _defineProperty(obj, key, value) {
if (key in obj) {
Expand Down Expand Up @@ -67,6 +69,7 @@

var script = {
name: 'Feather',
functional: true,
props: {
animation: {
type: String,
Expand Down Expand Up @@ -108,23 +111,25 @@
type: String,
required: true,
validator: function validator(type) {
if (!feather.icons[type]) {
if (!feather__default['default'].icons[type]) {
throw new Error("\"".concat(type, "\" is not an available icon type."));
}

return true;
}
}
},
render: function render(createElement) {
render: function render(createElement, _ref) {
var _class;

var animation = this.animation,
animationSpeed = this.animationSpeed,
size = this.size,
type = this.type;
var icon = feather.icons[type];
return createElement(this.tag, {
var listeners = _ref.listeners,
props = _ref.props;
var animation = props.animation,
animationSpeed = props.animationSpeed,
size = props.size,
type = props.type;
var icon = feather__default['default'].icons[type];
return createElement(props.tag, {
attrs: {
'data-name': type,
'data-tags': icon ? icon.tags : '',
Expand All @@ -133,15 +138,15 @@
class: (_class = {
feather: true
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class),
on: this.$listeners
on: listeners
}, [icon ? createElement('svg', {
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, {
fill: this.fill,
fill: props.fill,
height: size,
stroke: this.stroke,
'stroke-linecap': this.strokeLinecap,
'stroke-linejoin': this.strokeLinejoin,
'stroke-width': this.strokeWidth,
stroke: props.stroke,
'stroke-linecap': props.strokeLinecap,
'stroke-linejoin': props.strokeLinejoin,
'stroke-width': props.strokeWidth,
width: size
}),
class: [icon.attrs.class, 'feather__content'],
Expand Down Expand Up @@ -298,16 +303,16 @@

var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
if (!inject) return;
inject("data-v-07452373_0", {
source: "@keyframes feather--spin-data-v-07452373{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-07452373]{display:inline-block;overflow:hidden}.feather--spin[data-v-07452373]{animation:feather--spin-data-v-07452373 2s linear infinite}.feather--pulse[data-v-07452373]{animation:feather--spin-data-v-07452373 2s infinite steps(8)}.feather--slow[data-v-07452373]{animation-duration:3s}.feather--fast[data-v-07452373]{animation-duration:1s}.feather__content[data-v-07452373]{display:block;height:inherit;width:inherit}",
inject("data-v-6e255ebb_0", {
source: "@keyframes feather--spin-data-v-6e255ebb{from{transform:rotate(0)}to{transform:rotate(360deg)}}.feather[data-v-6e255ebb]{display:inline-block;overflow:hidden}.feather--spin[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s linear infinite}.feather--pulse[data-v-6e255ebb]{animation:feather--spin-data-v-6e255ebb 2s infinite steps(8)}.feather--slow[data-v-6e255ebb]{animation-duration:3s}.feather--fast[data-v-6e255ebb]{animation-duration:1s}.feather__content[data-v-6e255ebb]{display:block;height:inherit;width:inherit}",
map: undefined,
media: undefined
});
};
/* scoped */


var __vue_scope_id__ = "data-v-07452373";
var __vue_scope_id__ = "data-v-6e255ebb";
/* module identifier */

var __vue_module_identifier__ = undefined;
Expand Down
Loading

0 comments on commit f0257b5

Please sign in to comment.