"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/vue-server-renderer/basic.js" between
vue-2.6.9.tar.gz and vue-2.6.10.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

basic.js  (vue-2.6.9):basic.js  (vue-2.6.10)
skipping to change at line 5021 skipping to change at line 5021
isUnaryTag: isUnaryTag, isUnaryTag: isUnaryTag,
mustUseProp: mustUseProp, mustUseProp: mustUseProp,
canBeLeftOpenTag: canBeLeftOpenTag, canBeLeftOpenTag: canBeLeftOpenTag,
isReservedTag: isReservedTag, isReservedTag: isReservedTag,
getTagNamespace: getTagNamespace, getTagNamespace: getTagNamespace,
staticKeys: genStaticKeys(modules$1) staticKeys: genStaticKeys(modules$1)
}; };
/* */ /* */
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$]*])*$/;
// KeyboardEvent.keyCode aliases // KeyboardEvent.keyCode aliases
var keyCodes = { var keyCodes = {
esc: 27, esc: 27,
tab: 9, tab: 9,
enter: 13, enter: 13,
space: 32, space: 32,
up: 38, up: 38,
skipping to change at line 7542 skipping to change at line 7542
} }
/* */ /* */
function normalizeScopedSlots ( function normalizeScopedSlots (
slots, slots,
normalSlots, normalSlots,
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 = {};
} else if (slots._normalized) { } else if (slots._normalized) {
// fast path 1: child component re-render only, parent did not change // fast path 1: child component re-render only, parent did not change
return slots._normalized return slots._normalized
} else if ( } else if (
isStable && isStable &&
prevSlots && prevSlots &&
prevSlots !== emptyObject && prevSlots !== emptyObject &&
skipping to change at line 7670 skipping to change at line 7670
// already pending // already pending
factory.owners.push(owner); factory.owners.push(owner);
} }
if (isTrue(factory.loading) && isDef(factory.loadingComp)) { if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
return factory.loadingComp return factory.loadingComp
} }
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); });
var forceRender = function (renderCompleted) { var forceRender = function (renderCompleted) {
for (var i = 0, l = owners.length; i < l; i++) { for (var i = 0, l = owners.length; i < l; i++) {
(owners[i]).$forceUpdate(); (owners[i]).$forceUpdate();
} }
if (renderCompleted) { if (renderCompleted) {
owners.length = 0; owners.length = 0;
if (timerLoading !== null) {
clearTimeout(timerLoading);
timerLoading = null;
}
if (timerTimeout !== null) {
clearTimeout(timerTimeout);
timerTimeout = null;
}
} }
}; };
var resolve = once(function (res) { var resolve = once(function (res) {
// cache resolved // cache resolved
factory.resolved = ensureCtor(res, baseCtor); factory.resolved = ensureCtor(res, baseCtor);
// invoke callbacks only if this is not a synchronous resolve // invoke callbacks only if this is not a synchronous resolve
// (async resolves are shimmed as synchronous during SSR) // (async resolves are shimmed as synchronous during SSR)
if (!sync) { if (!sync) {
forceRender(true); forceRender(true);
skipping to change at line 7727 skipping to change at line 7737
if (isDef(res.error)) { if (isDef(res.error)) {
factory.errorComp = ensureCtor(res.error, baseCtor); factory.errorComp = ensureCtor(res.error, baseCtor);
} }
if (isDef(res.loading)) { if (isDef(res.loading)) {
factory.loadingComp = ensureCtor(res.loading, baseCtor); factory.loadingComp = ensureCtor(res.loading, baseCtor);
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);
} }
}, res.delay || 200); }, res.delay || 200);
} }
} }
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)"
); );
} }
}, res.timeout); }, res.timeout);
} }
} }
} }
skipping to change at line 7930 skipping to change at line 7942
} }
} }
if (vm._hasHookEvent) { if (vm._hasHookEvent) {
vm.$emit('hook:' + hook); vm.$emit('hook:' + hook);
} }
popTarget(); popTarget();
} }
/* */ /* */
// 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.
* The queue will be processed after the entire tree has been patched. * The queue will be processed after the entire tree has been patched.
*/ */
function queueActivatedComponent (vm) { function queueActivatedComponent (vm) {
// setting _inactive to false here so that a render function can // setting _inactive to false here so that a render function can
// rely on checking whether it's in an inactive tree (e.g. router-view) // rely on checking whether it's in an inactive tree (e.g. router-view)
vm._inactive = false; vm._inactive = false;
} }
 End of changes. 9 change blocks. 
11 lines changed or deleted 36 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)