Browse Source

build: build 2.6.10

dev
Evan You 6 years ago
parent
commit
e7b912a17b
  1. 54
      dist/vue.common.dev.js
  2. 4
      dist/vue.common.prod.js
  3. 54
      dist/vue.esm.browser.js
  4. 4
      dist/vue.esm.browser.min.js
  5. 54
      dist/vue.esm.js
  6. 54
      dist/vue.js
  7. 4
      dist/vue.min.js
  8. 52
      dist/vue.runtime.common.dev.js
  9. 4
      dist/vue.runtime.common.prod.js
  10. 52
      dist/vue.runtime.esm.js
  11. 52
      dist/vue.runtime.js
  12. 4
      dist/vue.runtime.min.js
  13. 47
      packages/vue-server-renderer/basic.js
  14. 47
      packages/vue-server-renderer/build.dev.js
  15. 2
      packages/vue-server-renderer/build.prod.js
  16. 2
      packages/vue-server-renderer/package.json
  17. 2
      packages/vue-template-compiler/browser.js
  18. 2
      packages/vue-template-compiler/build.js
  19. 2
      packages/vue-template-compiler/package.json

54
dist/vue.common.dev.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2544,8 +2544,8 @@ function normalizeScopedSlots (
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3629,7 +3629,9 @@ function resolveAsyncComponent (
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -3640,6 +3642,14 @@ function resolveAsyncComponent (
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3686,7 +3696,8 @@ function resolveAsyncComponent (
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3696,7 +3707,8 @@ function resolveAsyncComponent (
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
@ -4242,16 +4254,21 @@ var getNow = Date.now;
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
@ -5416,7 +5433,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -7578,10 +7595,11 @@ function updateDOMProps (oldVnode, vnode) {
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,
@ -10698,7 +10716,7 @@ function isDirectChildOfTemplateFor (node) {
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;

4
dist/vue.common.prod.js

File diff suppressed because one or more lines are too long

54
dist/vue.esm.browser.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2572,8 +2572,8 @@ function normalizeScopedSlots (
prevSlots prevSlots
) { ) {
let res; let res;
const isStable = slots ? !!slots.$stable : true;
const hasNormalSlots = Object.keys(normalSlots).length > 0; const hasNormalSlots = Object.keys(normalSlots).length > 0;
const isStable = slots ? !!slots.$stable : !hasNormalSlots;
const key = slots && slots.$key; const key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3650,7 +3650,9 @@ function resolveAsyncComponent (
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
const owners = factory.owners = [owner]; const owners = factory.owners = [owner];
let sync = true let sync = true;
let timerLoading = null;
let timerTimeout = null
;(owner).$on('hook:destroyed', () => remove(owners, owner)); ;(owner).$on('hook:destroyed', () => remove(owners, owner));
@ -3661,6 +3663,14 @@ function resolveAsyncComponent (
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3707,7 +3717,8 @@ function resolveAsyncComponent (
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(() => { timerLoading = setTimeout(() => {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3717,7 +3728,8 @@ function resolveAsyncComponent (
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(() => { timerTimeout = setTimeout(() => {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
`timeout (${res.timeout}ms)` `timeout (${res.timeout}ms)`
@ -4263,16 +4275,21 @@ let getNow = Date.now;
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && const performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = () => performance.now(); // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = () => performance.now();
}
} }
/** /**
@ -5447,7 +5464,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -7601,10 +7618,11 @@ function updateDOMProps (oldVnode, vnode) {
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,
@ -10711,7 +10729,7 @@ function isDirectChildOfTemplateFor (node) {
/* */ /* */
const fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; const fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
const fnInvokeRE = /\([^)]*?\);*$/; const fnInvokeRE = /\([^)]*?\);*$/;
const simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; const simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;

4
dist/vue.esm.browser.min.js

File diff suppressed because one or more lines are too long

54
dist/vue.esm.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2550,8 +2550,8 @@ function normalizeScopedSlots (
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3639,7 +3639,9 @@ function resolveAsyncComponent (
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -3650,6 +3652,14 @@ function resolveAsyncComponent (
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3696,7 +3706,8 @@ function resolveAsyncComponent (
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3706,7 +3717,8 @@ function resolveAsyncComponent (
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
process.env.NODE_ENV !== 'production' process.env.NODE_ENV !== 'production'
@ -4254,16 +4266,21 @@ var getNow = Date.now;
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
@ -5436,7 +5453,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -7600,10 +7617,11 @@ function updateDOMProps (oldVnode, vnode) {
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,
@ -10729,7 +10747,7 @@ function isDirectChildOfTemplateFor (node) {
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;

54
dist/vue.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2548,8 +2548,8 @@
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3633,7 +3633,9 @@
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -3644,6 +3646,14 @@
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3690,7 +3700,8 @@
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3700,7 +3711,8 @@
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
@ -4246,16 +4258,21 @@
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
@ -5420,7 +5437,7 @@
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -7582,10 +7599,11 @@
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,
@ -10702,7 +10720,7 @@
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;

4
dist/vue.min.js

File diff suppressed because one or more lines are too long

52
dist/vue.runtime.common.dev.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2535,8 +2535,8 @@ function normalizeScopedSlots (
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3620,7 +3620,9 @@ function resolveAsyncComponent (
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -3631,6 +3633,14 @@ function resolveAsyncComponent (
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3677,7 +3687,8 @@ function resolveAsyncComponent (
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3687,7 +3698,8 @@ function resolveAsyncComponent (
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
@ -4233,16 +4245,21 @@ var getNow = Date.now;
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
@ -5407,7 +5424,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -6930,10 +6947,11 @@ function updateDOMProps (oldVnode, vnode) {
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,

4
dist/vue.runtime.common.prod.js

File diff suppressed because one or more lines are too long

52
dist/vue.runtime.esm.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2541,8 +2541,8 @@ function normalizeScopedSlots (
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3630,7 +3630,9 @@ function resolveAsyncComponent (
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -3641,6 +3643,14 @@ function resolveAsyncComponent (
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3687,7 +3697,8 @@ function resolveAsyncComponent (
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3697,7 +3708,8 @@ function resolveAsyncComponent (
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
process.env.NODE_ENV !== 'production' process.env.NODE_ENV !== 'production'
@ -4245,16 +4257,21 @@ var getNow = Date.now;
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
@ -5427,7 +5444,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -6952,10 +6969,11 @@ function updateDOMProps (oldVnode, vnode) {
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,

52
dist/vue.runtime.js

@ -1,5 +1,5 @@
/*! /*!
* Vue.js v2.6.9 * Vue.js v2.6.10
* (c) 2014-2019 Evan You * (c) 2014-2019 Evan You
* Released under the MIT License. * Released under the MIT License.
*/ */
@ -2539,8 +2539,8 @@
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -3624,7 +3624,9 @@
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -3635,6 +3637,14 @@
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -3681,7 +3691,8 @@
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -3691,7 +3702,8 @@
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
@ -4237,16 +4249,21 @@
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) { performance &&
// if the event timestamp is bigger than the hi-res timestamp typeof performance.now === 'function' &&
// (which is evaluated AFTER) it means the event is using a lo-res timestamp, getNow() > document.createEvent('Event').timeStamp
// and we need to use the lo-res version for event listeners as well. ) {
getNow = function () { return performance.now(); }; // if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
} }
/** /**
@ -5411,7 +5428,7 @@
value: FunctionalRenderContext value: FunctionalRenderContext
}); });
Vue.version = '2.6.9'; Vue.version = '2.6.10';
/* */ /* */
@ -6934,10 +6951,11 @@
} }
for (key in oldProps) { for (key in oldProps) {
if (isUndef(props[key])) { if (!(key in props)) {
elm[key] = ''; elm[key] = '';
} }
} }
for (key in props) { for (key in props) {
cur = props[key]; cur = props[key];
// ignore children if the node has textContent or innerHTML, // ignore children if the node has textContent or innerHTML,

4
dist/vue.runtime.min.js

File diff suppressed because one or more lines are too long

47
packages/vue-server-renderer/basic.js

@ -5032,7 +5032,7 @@
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
@ -7571,8 +7571,8 @@
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -7699,7 +7699,9 @@
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -7710,6 +7712,14 @@
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -7756,7 +7766,8 @@
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -7766,7 +7777,8 @@
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
@ -7959,16 +7971,29 @@
/* */ /* */
// Async edge case fix requires storing an event listener's attach timestamp.
var getNow = Date.now;
// Determine what event timestamp the browser is using. Annoyingly, the // Determine what event timestamp the browser is using. Annoyingly, the
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) ; performance &&
typeof performance.now === 'function' &&
getNow() > document.createEvent('Event').timeStamp
) {
// if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
}
/** /**
* Queue a kept-alive component that was activated during patch. * Queue a kept-alive component that was activated during patch.

47
packages/vue-server-renderer/build.dev.js

@ -4782,7 +4782,7 @@ var baseOptions = {
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
@ -7321,8 +7321,8 @@ function normalizeScopedSlots (
prevSlots prevSlots
) { ) {
var res; var res;
var isStable = slots ? !!slots.$stable : true;
var hasNormalSlots = Object.keys(normalSlots).length > 0; var hasNormalSlots = Object.keys(normalSlots).length > 0;
var isStable = slots ? !!slots.$stable : !hasNormalSlots;
var key = slots && slots.$key; var key = slots && slots.$key;
if (!slots) { if (!slots) {
res = {}; res = {};
@ -7449,7 +7449,9 @@ function resolveAsyncComponent (
if (owner && !isDef(factory.owners)) { if (owner && !isDef(factory.owners)) {
var owners = factory.owners = [owner]; var owners = factory.owners = [owner];
var sync = true var sync = true;
var timerLoading = null;
var timerTimeout = null
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); }); ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
@ -7460,6 +7462,14 @@ function resolveAsyncComponent (
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
@ -7506,7 +7516,8 @@ function resolveAsyncComponent (
if (res.delay === 0) { if (res.delay === 0) {
factory.loading = true; factory.loading = true;
} else { } else {
setTimeout(function () { timerLoading = setTimeout(function () {
timerLoading = null;
if (isUndef(factory.resolved) && isUndef(factory.error)) { if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true; factory.loading = true;
forceRender(false); forceRender(false);
@ -7516,7 +7527,8 @@ function resolveAsyncComponent (
} }
if (isDef(res.timeout)) { if (isDef(res.timeout)) {
setTimeout(function () { timerTimeout = setTimeout(function () {
timerTimeout = null;
if (isUndef(factory.resolved)) { if (isUndef(factory.resolved)) {
reject( reject(
"timeout (" + (res.timeout) + "ms)" "timeout (" + (res.timeout) + "ms)"
@ -7709,16 +7721,29 @@ function callHook (vm, hook) {
/* */ /* */
// Async edge case fix requires storing an event listener's attach timestamp.
var getNow = Date.now;
// Determine what event timestamp the browser is using. Annoyingly, the // Determine what event timestamp the browser is using. Annoyingly, the
// timestamp can either be hi-res (relative to page load) or low-res // timestamp can either be hi-res (relative to page load) or low-res
// (relative to UNIX epoch), so in order to compare time we have to use the // (relative to UNIX epoch), so in order to compare time we have to use the
// same timestamp type when saving the flush timestamp. // same timestamp type when saving the flush timestamp.
if ( // All IE versions use low-res event timestamps, and have problematic clock
inBrowser && // implementations (#9632)
window.performance && if (inBrowser && !isIE) {
typeof performance.now === 'function' && var performance = window.performance;
document.createEvent('Event').timeStamp <= performance.now() if (
) ; performance &&
typeof performance.now === 'function' &&
getNow() > document.createEvent('Event').timeStamp
) {
// if the event timestamp, although evaluated AFTER the Date.now(), is
// smaller than it, it means the event is using a hi-res timestamp,
// and we need to use the hi-res version for event listener timestamps as
// well.
getNow = function () { return performance.now(); };
}
}
/** /**
* Queue a kept-alive component that was activated during patch. * Queue a kept-alive component that was activated during patch.

2
packages/vue-server-renderer/build.prod.js

File diff suppressed because one or more lines are too long

2
packages/vue-server-renderer/package.json

@ -1,6 +1,6 @@
{ {
"name": "vue-server-renderer", "name": "vue-server-renderer",
"version": "2.6.9", "version": "2.6.10",
"description": "server renderer for Vue 2.0", "description": "server renderer for Vue 2.0",
"main": "index.js", "main": "index.js",
"types": "types/index.d.ts", "types": "types/index.d.ts",

2
packages/vue-template-compiler/browser.js

@ -4082,7 +4082,7 @@
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;

2
packages/vue-template-compiler/build.js

@ -3712,7 +3712,7 @@ function isDirectChildOfTemplateFor (node) {
/* */ /* */
var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/; var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*(?:[\w$]+)?\s*\(/;
var fnInvokeRE = /\([^)]*?\);*$/; var fnInvokeRE = /\([^)]*?\);*$/;
var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/; var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;

2
packages/vue-template-compiler/package.json

@ -1,6 +1,6 @@
{ {
"name": "vue-template-compiler", "name": "vue-template-compiler",
"version": "2.6.9", "version": "2.6.10",
"description": "template compiler for Vue 2.0", "description": "template compiler for Vue 2.0",
"main": "index.js", "main": "index.js",
"unpkg": "browser.js", "unpkg": "browser.js",

Loading…
Cancel
Save