2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-24 23:50:34 +03:00

chore(release): 2.0.4

This commit is contained in:
pimlie
2019-06-22 15:03:38 +00:00
parent 24d7feea7f
commit 877f7650f2
8 changed files with 172 additions and 119 deletions
+15
View File
@@ -2,6 +2,21 @@
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.4](https://github.com/nuxt/vue-meta/compare/v2.0.3...v2.0.4) (2019-06-22)
### 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))
### Tests
* enable all getMetaInfo tests again ([24d7fee](https://github.com/nuxt/vue-meta/commit/24d7fee))
### [2.0.3](https://github.com/nuxt/vue-meta/compare/v2.0.2...v2.0.3) (2019-06-11) ### [2.0.3](https://github.com/nuxt/vue-meta/compare/v2.0.2...v2.0.3) (2019-06-11)
+10 -4
View File
@@ -1,5 +1,5 @@
/** /**
* vue-meta v2.0.3 * vue-meta v2.0.4
* (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.3"; var version = "2.0.4";
// store an id to keep track of DOM updates // store an id to keep track of DOM updates
var batchId = null; var batchId = null;
@@ -297,7 +297,7 @@ function createMixin(Vue, options) {
// set some sane defaults // set some sane defaults
var defaultInfo = { var defaultInfo = {
title: '', title: undefined,
titleChunk: '', titleChunk: '',
titleTemplate: '%s', titleTemplate: '%s',
htmlAttrs: {}, htmlAttrs: {},
@@ -684,6 +684,10 @@ function merge(target, source, options) {
for (var key in source[attrKey]) { for (var key in source[attrKey]) {
if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) { if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) {
if (booleanHtmlAttributes.includes(key)) {
// eslint-disable-next-line no-console
console.warn('VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details');
}
delete source[attrKey][key]; delete source[attrKey][key];
} }
} }
@@ -882,7 +886,9 @@ function updateAttribute(ref, attrs, tag) {
* @param {String} title - the new title of the document * @param {String} title - the new title of the document
*/ */
function updateTitle(title) { function updateTitle(title) {
if ( title === void 0 ) title = document.title; if (title === undefined) {
return
}
document.title = title; document.title = title;
} }
+12 -4
View File
@@ -1,5 +1,5 @@
/** /**
* vue-meta v2.0.3 * vue-meta v2.0.4
* (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.3"; var version = "2.0.4";
// store an id to keep track of DOM updates // store an id to keep track of DOM updates
let batchId = null; let batchId = null;
@@ -280,7 +280,7 @@ function createMixin(Vue, options) {
// set some sane defaults // set some sane defaults
const defaultInfo = { const defaultInfo = {
title: '', title: undefined,
titleChunk: '', titleChunk: '',
titleTemplate: '%s', titleTemplate: '%s',
htmlAttrs: {}, htmlAttrs: {},
@@ -614,6 +614,10 @@ function merge(target, source, options = {}) {
for (const key in source[attrKey]) { for (const key in source[attrKey]) {
if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) { if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) {
if (booleanHtmlAttributes.includes(key)) {
// eslint-disable-next-line no-console
console.warn('VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details');
}
delete source[attrKey][key]; delete source[attrKey][key];
} }
} }
@@ -794,7 +798,11 @@ function updateAttribute({ attribute } = {}, attrs, tag) {
* *
* @param {String} title - the new title of the document * @param {String} title - the new title of the document
*/ */
function updateTitle(title = document.title) { function updateTitle(title) {
if (title === undefined) {
return
}
document.title = title; document.title = title;
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
+10 -4
View File
@@ -1,5 +1,5 @@
/** /**
* vue-meta v2.0.3 * vue-meta v2.0.4
* (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.3"; var version = "2.0.4";
// store an id to keep track of DOM updates // store an id to keep track of DOM updates
var batchId = null; var batchId = null;
@@ -293,7 +293,7 @@ function createMixin(Vue, options) {
// set some sane defaults // set some sane defaults
var defaultInfo = { var defaultInfo = {
title: '', title: undefined,
titleChunk: '', titleChunk: '',
titleTemplate: '%s', titleTemplate: '%s',
htmlAttrs: {}, htmlAttrs: {},
@@ -680,6 +680,10 @@ function merge(target, source, options) {
for (var key in source[attrKey]) { for (var key in source[attrKey]) {
if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) { if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) {
if (booleanHtmlAttributes.includes(key)) {
// eslint-disable-next-line no-console
console.warn('VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details');
}
delete source[attrKey][key]; delete source[attrKey][key];
} }
} }
@@ -878,7 +882,9 @@ function updateAttribute(ref, attrs, tag) {
* @param {String} title - the new title of the document * @param {String} title - the new title of the document
*/ */
function updateTitle(title) { function updateTitle(title) {
if ( title === void 0 ) title = document.title; if (title === undefined) {
return
}
document.title = title; document.title = title;
} }
+26 -8
View File
@@ -1,5 +1,5 @@
/** /**
* vue-meta v2.0.3 * vue-meta v2.0.4
* (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.3"; var version = "2.0.4";
// store an id to keep track of DOM updates // store an id to keep track of DOM updates
var batchId = null; var batchId = null;
@@ -297,7 +297,7 @@
// set some sane defaults // set some sane defaults
var defaultInfo = { var defaultInfo = {
title: '', title: undefined,
titleChunk: '', titleChunk: '',
titleTemplate: '%s', titleTemplate: '%s',
htmlAttrs: {}, htmlAttrs: {},
@@ -594,7 +594,7 @@
var umd = createCommonjsModule(function (module, exports) { var umd = createCommonjsModule(function (module, exports) {
(function (global, factory) { (function (global, factory) {
module.exports = factory() ; module.exports = factory() ;
}(commonjsGlobal, (function () { }(commonjsGlobal, function () {
var isMergeableObject = function isMergeableObject(value) { var isMergeableObject = function isMergeableObject(value) {
return isNonNullObject(value) return isNonNullObject(value)
&& !isSpecial(value) && !isSpecial(value)
@@ -644,14 +644,26 @@
return typeof customMerge === 'function' ? customMerge : deepmerge return typeof customMerge === 'function' ? customMerge : deepmerge
} }
function getEnumerableOwnPropertySymbols(target) {
return Object.getOwnPropertySymbols
? Object.getOwnPropertySymbols(target).filter(function(symbol) {
return target.propertyIsEnumerable(symbol)
})
: []
}
function getKeys(target) {
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
}
function mergeObject(target, source, options) { function mergeObject(target, source, options) {
var destination = {}; var destination = {};
if (options.isMergeableObject(target)) { if (options.isMergeableObject(target)) {
Object.keys(target).forEach(function(key) { getKeys(target).forEach(function(key) {
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
}); });
} }
Object.keys(source).forEach(function(key) { getKeys(source).forEach(function(key) {
if (!options.isMergeableObject(source[key]) || !target[key]) { if (!options.isMergeableObject(source[key]) || !target[key]) {
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
} else { } else {
@@ -693,7 +705,7 @@
return deepmerge_1; return deepmerge_1;
}))); }));
}); });
function arrayMerge(ref, target, source) { function arrayMerge(ref, target, source) {
@@ -780,6 +792,10 @@
for (var key in source[attrKey]) { for (var key in source[attrKey]) {
if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) { if (source[attrKey].hasOwnProperty(key) && source[attrKey][key] === undefined) {
if (booleanHtmlAttributes.includes(key)) {
// eslint-disable-next-line no-console
console.warn('VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details');
}
delete source[attrKey][key]; delete source[attrKey][key];
} }
} }
@@ -978,7 +994,9 @@
* @param {String} title - the new title of the document * @param {String} title - the new title of the document
*/ */
function updateTitle(title) { function updateTitle(title) {
if ( title === void 0 ) title = document.title; if (title === undefined) {
return
}
document.title = title; document.title = title;
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "vue-meta", "name": "vue-meta",
"version": "2.0.3", "version": "2.0.4",
"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",