mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-25 15:20:34 +03:00
chore(release): 2.0.5
This commit is contained in:
@@ -2,6 +2,23 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [2.0.5](https://github.com/nuxt/vue-meta/compare/v2.0.3...v2.0.5) (2019-07-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add warning for v1 boolean attribute syntax ([bfeab17](https://github.com/nuxt/vue-meta/commit/bfeab17))
|
||||||
|
* dont change title when value is undefined (fix [#396](https://github.com/nuxt/vue-meta/issues/396)) ([90f9710](https://github.com/nuxt/vue-meta/commit/90f9710))
|
||||||
|
* ensure hasAttribute exists on $root.$el ([f1511ac](https://github.com/nuxt/vue-meta/commit/f1511ac))
|
||||||
|
* only show boolean attrs with truthy value ([1d9072a](https://github.com/nuxt/vue-meta/commit/1d9072a))
|
||||||
|
|
||||||
|
|
||||||
|
### Tests
|
||||||
|
|
||||||
|
* enable all getMetaInfo tests again ([24d7fee](https://github.com/nuxt/vue-meta/commit/24d7fee))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### [2.0.4](https://github.com/nuxt/vue-meta/compare/v2.0.3...v2.0.4) (2019-06-22)
|
### [2.0.4](https://github.com/nuxt/vue-meta/compare/v2.0.3...v2.0.4) (2019-06-22)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Vendored
+18
-7
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* vue-meta v2.0.4
|
* vue-meta v2.0.5
|
||||||
* (c) 2019
|
* (c) 2019
|
||||||
* - Declan de Wet
|
* - Declan de Wet
|
||||||
* - Sébastien Chopin (@Atinux)
|
* - Sébastien Chopin (@Atinux)
|
||||||
@@ -13,7 +13,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|||||||
|
|
||||||
var deepmerge = _interopDefault(require('deepmerge'));
|
var deepmerge = _interopDefault(require('deepmerge'));
|
||||||
|
|
||||||
var version = "2.0.4";
|
var version = "2.0.5";
|
||||||
|
|
||||||
// store an id to keep track of DOM updates
|
// store an id to keep track of DOM updates
|
||||||
var batchId = null;
|
var batchId = null;
|
||||||
@@ -210,7 +210,7 @@ function createMixin(Vue, options) {
|
|||||||
ensuredPush(this.$options, 'beforeMount', function () {
|
ensuredPush(this.$options, 'beforeMount', function () {
|
||||||
// if this Vue-app was server rendered, set the appId to 'ssr'
|
// if this Vue-app was server rendered, set the appId to 'ssr'
|
||||||
// only one SSR app per page is supported
|
// only one SSR app per page is supported
|
||||||
if (this$1.$root.$el && this$1.$root.$el.hasAttribute('data-server-rendered')) {
|
if (this$1.$root.$el && this$1.$root.$el.hasAttribute && this$1.$root.$el.hasAttribute('data-server-rendered')) {
|
||||||
this$1.$root._vueMeta.appId = 'ssr';
|
this$1.$root._vueMeta.appId = 'ssr';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -543,8 +543,8 @@ var serverSequences = [
|
|||||||
|
|
||||||
var clientSequences = [
|
var clientSequences = [
|
||||||
[/&/g, '\u0026'],
|
[/&/g, '\u0026'],
|
||||||
[/</g, '\u003c'],
|
[/</g, '\u003C'],
|
||||||
[/>/g, '\u003e'],
|
[/>/g, '\u003E'],
|
||||||
[/"/g, '\u0022'],
|
[/"/g, '\u0022'],
|
||||||
[/'/g, '\u0027']
|
[/'/g, '\u0027']
|
||||||
];
|
];
|
||||||
@@ -947,7 +947,13 @@ function updateTag(appId, ref, type, tags, headTag, bodyTag) {
|
|||||||
var _attr = includes(dataAttributes, attr)
|
var _attr = includes(dataAttributes, attr)
|
||||||
? ("data-" + attr)
|
? ("data-" + attr)
|
||||||
: attr;
|
: attr;
|
||||||
var value = isUndefined(tag[attr]) || includes(booleanHtmlAttributes, attr) ? '' : tag[attr];
|
|
||||||
|
var isBooleanAttribute = includes(booleanHtmlAttributes, attr);
|
||||||
|
if (isBooleanAttribute && !tag[attr]) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
var value = isBooleanAttribute ? '' : tag[attr];
|
||||||
newElement.setAttribute(_attr, value);
|
newElement.setAttribute(_attr, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1179,7 +1185,12 @@ function tagGenerator(appId, ref, type, tags) {
|
|||||||
prefix = 'data-';
|
prefix = 'data-';
|
||||||
}
|
}
|
||||||
|
|
||||||
return isUndefined(tag[attr]) || booleanHtmlAttributes.includes(attr)
|
var isBooleanAttr = booleanHtmlAttributes.includes(attr);
|
||||||
|
if (isBooleanAttr && !tag[attr]) {
|
||||||
|
return attrsStr
|
||||||
|
}
|
||||||
|
|
||||||
|
return isBooleanAttr
|
||||||
? (attrsStr + " " + prefix + attr)
|
? (attrsStr + " " + prefix + attr)
|
||||||
: (attrsStr + " " + prefix + attr + "=\"" + (tag[attr]) + "\"")
|
: (attrsStr + " " + prefix + attr + "=\"" + (tag[attr]) + "\"")
|
||||||
}, '');
|
}, '');
|
||||||
|
|||||||
Vendored
+12
-6
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* vue-meta v2.0.4
|
* vue-meta v2.0.5
|
||||||
* (c) 2019
|
* (c) 2019
|
||||||
* - Declan de Wet
|
* - Declan de Wet
|
||||||
* - Sébastien Chopin (@Atinux)
|
* - Sébastien Chopin (@Atinux)
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
|
|
||||||
var version = "2.0.4";
|
var version = "2.0.5";
|
||||||
|
|
||||||
// store an id to keep track of DOM updates
|
// store an id to keep track of DOM updates
|
||||||
let batchId = null;
|
let batchId = null;
|
||||||
@@ -197,7 +197,7 @@ function createMixin(Vue, options) {
|
|||||||
ensuredPush(this.$options, 'beforeMount', () => {
|
ensuredPush(this.$options, 'beforeMount', () => {
|
||||||
// if this Vue-app was server rendered, set the appId to 'ssr'
|
// if this Vue-app was server rendered, set the appId to 'ssr'
|
||||||
// only one SSR app per page is supported
|
// only one SSR app per page is supported
|
||||||
if (this.$root.$el && this.$root.$el.hasAttribute('data-server-rendered')) {
|
if (this.$root.$el && this.$root.$el.hasAttribute && this.$root.$el.hasAttribute('data-server-rendered')) {
|
||||||
this.$root._vueMeta.appId = 'ssr';
|
this.$root._vueMeta.appId = 'ssr';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -480,8 +480,8 @@ function includes(array, value) {
|
|||||||
|
|
||||||
const clientSequences = [
|
const clientSequences = [
|
||||||
[/&/g, '\u0026'],
|
[/&/g, '\u0026'],
|
||||||
[/</g, '\u003c'],
|
[/</g, '\u003C'],
|
||||||
[/>/g, '\u003e'],
|
[/>/g, '\u003E'],
|
||||||
[/"/g, '\u0022'],
|
[/"/g, '\u0022'],
|
||||||
[/'/g, '\u0027']
|
[/'/g, '\u0027']
|
||||||
];
|
];
|
||||||
@@ -856,7 +856,13 @@ function updateTag(appId, { attribute, tagIDKeyName } = {}, type, tags, headTag,
|
|||||||
const _attr = includes(dataAttributes, attr)
|
const _attr = includes(dataAttributes, attr)
|
||||||
? `data-${attr}`
|
? `data-${attr}`
|
||||||
: attr;
|
: attr;
|
||||||
const value = isUndefined(tag[attr]) || includes(booleanHtmlAttributes, attr) ? '' : tag[attr];
|
|
||||||
|
const isBooleanAttribute = includes(booleanHtmlAttributes, attr);
|
||||||
|
if (isBooleanAttribute && !tag[attr]) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
const value = isBooleanAttribute ? '' : tag[attr];
|
||||||
newElement.setAttribute(_attr, value);
|
newElement.setAttribute(_attr, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+18
-7
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* vue-meta v2.0.4
|
* vue-meta v2.0.5
|
||||||
* (c) 2019
|
* (c) 2019
|
||||||
* - Declan de Wet
|
* - Declan de Wet
|
||||||
* - Sébastien Chopin (@Atinux)
|
* - Sébastien Chopin (@Atinux)
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
|
|
||||||
var version = "2.0.4";
|
var version = "2.0.5";
|
||||||
|
|
||||||
// store an id to keep track of DOM updates
|
// store an id to keep track of DOM updates
|
||||||
var batchId = null;
|
var batchId = null;
|
||||||
@@ -206,7 +206,7 @@ function createMixin(Vue, options) {
|
|||||||
ensuredPush(this.$options, 'beforeMount', function () {
|
ensuredPush(this.$options, 'beforeMount', function () {
|
||||||
// if this Vue-app was server rendered, set the appId to 'ssr'
|
// if this Vue-app was server rendered, set the appId to 'ssr'
|
||||||
// only one SSR app per page is supported
|
// only one SSR app per page is supported
|
||||||
if (this$1.$root.$el && this$1.$root.$el.hasAttribute('data-server-rendered')) {
|
if (this$1.$root.$el && this$1.$root.$el.hasAttribute && this$1.$root.$el.hasAttribute('data-server-rendered')) {
|
||||||
this$1.$root._vueMeta.appId = 'ssr';
|
this$1.$root._vueMeta.appId = 'ssr';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -539,8 +539,8 @@ var serverSequences = [
|
|||||||
|
|
||||||
var clientSequences = [
|
var clientSequences = [
|
||||||
[/&/g, '\u0026'],
|
[/&/g, '\u0026'],
|
||||||
[/</g, '\u003c'],
|
[/</g, '\u003C'],
|
||||||
[/>/g, '\u003e'],
|
[/>/g, '\u003E'],
|
||||||
[/"/g, '\u0022'],
|
[/"/g, '\u0022'],
|
||||||
[/'/g, '\u0027']
|
[/'/g, '\u0027']
|
||||||
];
|
];
|
||||||
@@ -943,7 +943,13 @@ function updateTag(appId, ref, type, tags, headTag, bodyTag) {
|
|||||||
var _attr = includes(dataAttributes, attr)
|
var _attr = includes(dataAttributes, attr)
|
||||||
? ("data-" + attr)
|
? ("data-" + attr)
|
||||||
: attr;
|
: attr;
|
||||||
var value = isUndefined(tag[attr]) || includes(booleanHtmlAttributes, attr) ? '' : tag[attr];
|
|
||||||
|
var isBooleanAttribute = includes(booleanHtmlAttributes, attr);
|
||||||
|
if (isBooleanAttribute && !tag[attr]) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
var value = isBooleanAttribute ? '' : tag[attr];
|
||||||
newElement.setAttribute(_attr, value);
|
newElement.setAttribute(_attr, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1175,7 +1181,12 @@ function tagGenerator(appId, ref, type, tags) {
|
|||||||
prefix = 'data-';
|
prefix = 'data-';
|
||||||
}
|
}
|
||||||
|
|
||||||
return isUndefined(tag[attr]) || booleanHtmlAttributes.includes(attr)
|
var isBooleanAttr = booleanHtmlAttributes.includes(attr);
|
||||||
|
if (isBooleanAttr && !tag[attr]) {
|
||||||
|
return attrsStr
|
||||||
|
}
|
||||||
|
|
||||||
|
return isBooleanAttr
|
||||||
? (attrsStr + " " + prefix + attr)
|
? (attrsStr + " " + prefix + attr)
|
||||||
: (attrsStr + " " + prefix + attr + "=\"" + (tag[attr]) + "\"")
|
: (attrsStr + " " + prefix + attr + "=\"" + (tag[attr]) + "\"")
|
||||||
}, '');
|
}, '');
|
||||||
|
|||||||
Vendored
+14
-21
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* vue-meta v2.0.4
|
* vue-meta v2.0.5
|
||||||
* (c) 2019
|
* (c) 2019
|
||||||
* - Declan de Wet
|
* - Declan de Wet
|
||||||
* - Sébastien Chopin (@Atinux)
|
* - Sébastien Chopin (@Atinux)
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
(global = global || self, global.VueMeta = factory());
|
(global = global || self, global.VueMeta = factory());
|
||||||
}(this, function () { 'use strict';
|
}(this, function () { 'use strict';
|
||||||
|
|
||||||
var version = "2.0.4";
|
var version = "2.0.5";
|
||||||
|
|
||||||
// store an id to keep track of DOM updates
|
// store an id to keep track of DOM updates
|
||||||
var batchId = null;
|
var batchId = null;
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
ensuredPush(this.$options, 'beforeMount', function () {
|
ensuredPush(this.$options, 'beforeMount', function () {
|
||||||
// if this Vue-app was server rendered, set the appId to 'ssr'
|
// if this Vue-app was server rendered, set the appId to 'ssr'
|
||||||
// only one SSR app per page is supported
|
// only one SSR app per page is supported
|
||||||
if (this$1.$root.$el && this$1.$root.$el.hasAttribute('data-server-rendered')) {
|
if (this$1.$root.$el && this$1.$root.$el.hasAttribute && this$1.$root.$el.hasAttribute('data-server-rendered')) {
|
||||||
this$1.$root._vueMeta.appId = 'ssr';
|
this$1.$root._vueMeta.appId = 'ssr';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -528,8 +528,8 @@
|
|||||||
|
|
||||||
var clientSequences = [
|
var clientSequences = [
|
||||||
[/&/g, '\u0026'],
|
[/&/g, '\u0026'],
|
||||||
[/</g, '\u003c'],
|
[/</g, '\u003C'],
|
||||||
[/>/g, '\u003e'],
|
[/>/g, '\u003E'],
|
||||||
[/"/g, '\u0022'],
|
[/"/g, '\u0022'],
|
||||||
[/'/g, '\u0027']
|
[/'/g, '\u0027']
|
||||||
];
|
];
|
||||||
@@ -585,16 +585,6 @@
|
|||||||
return escaped
|
return escaped
|
||||||
}
|
}
|
||||||
|
|
||||||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
||||||
|
|
||||||
function createCommonjsModule(fn, module) {
|
|
||||||
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
||||||
}
|
|
||||||
|
|
||||||
var umd = createCommonjsModule(function (module, exports) {
|
|
||||||
(function (global, factory) {
|
|
||||||
module.exports = factory() ;
|
|
||||||
}(commonjsGlobal, function () {
|
|
||||||
var isMergeableObject = function isMergeableObject(value) {
|
var isMergeableObject = function isMergeableObject(value) {
|
||||||
return isNonNullObject(value)
|
return isNonNullObject(value)
|
||||||
&& !isSpecial(value)
|
&& !isSpecial(value)
|
||||||
@@ -703,10 +693,7 @@
|
|||||||
|
|
||||||
var deepmerge_1 = deepmerge;
|
var deepmerge_1 = deepmerge;
|
||||||
|
|
||||||
return deepmerge_1;
|
var cjs = deepmerge_1;
|
||||||
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
|
|
||||||
function arrayMerge (ref, target, source) {
|
function arrayMerge (ref, target, source) {
|
||||||
var component = ref.component;
|
var component = ref.component;
|
||||||
@@ -801,7 +788,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return umd(target, source, {
|
return cjs(target, source, {
|
||||||
arrayMerge: function (t, s) { return arrayMerge(options, t, s); }
|
arrayMerge: function (t, s) { return arrayMerge(options, t, s); }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -1055,7 +1042,13 @@
|
|||||||
var _attr = includes(dataAttributes, attr)
|
var _attr = includes(dataAttributes, attr)
|
||||||
? ("data-" + attr)
|
? ("data-" + attr)
|
||||||
: attr;
|
: attr;
|
||||||
var value = isUndefined(tag[attr]) || includes(booleanHtmlAttributes, attr) ? '' : tag[attr];
|
|
||||||
|
var isBooleanAttribute = includes(booleanHtmlAttributes, attr);
|
||||||
|
if (isBooleanAttribute && !tag[attr]) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
var value = isBooleanAttribute ? '' : tag[attr];
|
||||||
newElement.setAttribute(_attr, value);
|
newElement.setAttribute(_attr, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-meta",
|
"name": "vue-meta",
|
||||||
"version": "2.0.4",
|
"version": "2.0.5",
|
||||||
"description": "Manage HTML metadata in Vue.js components with ssr support",
|
"description": "Manage HTML metadata in Vue.js components with ssr support",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"attribute",
|
"attribute",
|
||||||
|
|||||||
Reference in New Issue
Block a user