Skip to content

Commit

Permalink
build: release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jun 6, 2020
1 parent f744219 commit 61444dd
Show file tree
Hide file tree
Showing 9 changed files with 5,678 additions and 6,072 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.1 (Jun 6, 2020)

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

## 1.0.0 (Jan 26, 2019)

- Support to use as a Vue plugin: `Vue.use(VueFeather)`.
Expand Down
72 changes: 44 additions & 28 deletions dist/vue-feather.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* vue-feather v1.0.0
* vue-feather v1.0.1
* https://fengyuanchen.github.io/vue-feather
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-26T05:54:31.324Z
* Date: 2020-06-06T12:10:30.203Z
*/

'use strict';
Expand All @@ -29,20 +29,35 @@ function _defineProperty(obj, key, value) {
return obj;
}

function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);

if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}

return keys;
}

function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);

if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}

ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}

return target;
Expand Down Expand Up @@ -118,7 +133,7 @@ var script = {
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class),
on: this.$listeners
}, [icon ? createElement('svg', {
attrs: _objectSpread({}, icon.attrs, {
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, {
fill: this.fill,
height: size,
stroke: this.stroke,
Expand Down Expand Up @@ -192,8 +207,8 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla

options._ssrRegister = hook;
} else if (style) {
hook = shadowMode ? function () {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
hook = shadowMode ? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
} : function (context) {
style.call(this, createInjector(context));
};
Expand All @@ -218,8 +233,6 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
return script;
}

var normalizeComponent_1 = normalizeComponent;

var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());

function createInjector(context) {
Expand All @@ -228,7 +241,7 @@ function createInjector(context) {
};
}

var HEAD = document.head || document.getElementsByTagName('head')[0];
var HEAD;
var styles = {};

function addStyle(id, css) {
Expand All @@ -254,6 +267,11 @@ function addStyle(id, css) {
style.element = document.createElement('style');
style.element.type = 'text/css';
if (css.media) style.element.setAttribute('media', css.media);

if (HEAD === undefined) {
HEAD = document.head || document.getElementsByTagName('head')[0];
}

HEAD.appendChild(style.element);
}

Expand All @@ -270,12 +288,8 @@ function addStyle(id, css) {
}
}

var browser = createInjector;

/* script */
var __vue_script__ = script; // For security concerns, we use only base name in production mode. See https://github.com/vuejs/rollup-plugin-vue/issues/258

script.__file = "feather.vue";
var __vue_script__ = script;
/* template */

/* style */
Expand All @@ -300,14 +314,16 @@ var __vue_module_identifier__ = undefined;
var __vue_is_functional_template__ = undefined;
/* style inject SSR */

var Feather = normalizeComponent_1({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, browser, undefined);
/* style inject shadow dom */

var __vue_component__ = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);

Feather.install = function (Vue) {
Vue.component(Feather.name, Feather);
__vue_component__.install = function (Vue) {
Vue.component(__vue_component__.name, __vue_component__);
};

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(Feather);
window.Vue.use(__vue_component__);
}

module.exports = Feather;
module.exports = __vue_component__;
72 changes: 44 additions & 28 deletions dist/vue-feather.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* vue-feather v1.0.0
* vue-feather v1.0.1
* https://fengyuanchen.github.io/vue-feather
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-26T05:54:31.324Z
* Date: 2020-06-06T12:10:30.203Z
*/

import feather from 'feather-icons';
Expand All @@ -25,20 +25,35 @@ function _defineProperty(obj, key, value) {
return obj;
}

function _objectSpread(target) {
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);

if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}

return keys;
}

function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);

if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}

ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}

return target;
Expand Down Expand Up @@ -114,7 +129,7 @@ var script = {
}, _defineProperty(_class, "feather--".concat(type), type), _defineProperty(_class, "feather--".concat(animation), animation), _defineProperty(_class, "feather--".concat(animationSpeed), animationSpeed), _class),
on: this.$listeners
}, [icon ? createElement('svg', {
attrs: _objectSpread({}, icon.attrs, {
attrs: _objectSpread2(_objectSpread2({}, icon.attrs), {}, {
fill: this.fill,
height: size,
stroke: this.stroke,
Expand Down Expand Up @@ -188,8 +203,8 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla

options._ssrRegister = hook;
} else if (style) {
hook = shadowMode ? function () {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
hook = shadowMode ? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
} : function (context) {
style.call(this, createInjector(context));
};
Expand All @@ -214,8 +229,6 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
return script;
}

var normalizeComponent_1 = normalizeComponent;

var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());

function createInjector(context) {
Expand All @@ -224,7 +237,7 @@ function createInjector(context) {
};
}

var HEAD = document.head || document.getElementsByTagName('head')[0];
var HEAD;
var styles = {};

function addStyle(id, css) {
Expand All @@ -250,6 +263,11 @@ function addStyle(id, css) {
style.element = document.createElement('style');
style.element.type = 'text/css';
if (css.media) style.element.setAttribute('media', css.media);

if (HEAD === undefined) {
HEAD = document.head || document.getElementsByTagName('head')[0];
}

HEAD.appendChild(style.element);
}

Expand All @@ -266,12 +284,8 @@ function addStyle(id, css) {
}
}

var browser = createInjector;

/* script */
var __vue_script__ = script; // For security concerns, we use only base name in production mode. See https://github.com/vuejs/rollup-plugin-vue/issues/258

script.__file = "feather.vue";
var __vue_script__ = script;
/* template */

/* style */
Expand All @@ -296,14 +310,16 @@ var __vue_module_identifier__ = undefined;
var __vue_is_functional_template__ = undefined;
/* style inject SSR */

var Feather = normalizeComponent_1({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, browser, undefined);
/* style inject shadow dom */

var __vue_component__ = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);

Feather.install = function (Vue) {
Vue.component(Feather.name, Feather);
__vue_component__.install = function (Vue) {
Vue.component(__vue_component__.name, __vue_component__);
};

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(Feather);
window.Vue.use(__vue_component__);
}

export default Feather;
export default __vue_component__;
Loading

0 comments on commit 61444dd

Please sign in to comment.