build: build 2.5.18

This commit is contained in:
Evan You 2018-12-07 16:09:05 -05:00
parent dfaf9e2436
commit eb81ec2131
19 changed files with 19284 additions and 80 deletions

11049
dist/vue.common.dev.js vendored Normal file

File diff suppressed because it is too large Load Diff

29
dist/vue.common.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.18-beta.0
* Vue.js v2.5.18
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
@ -2728,6 +2728,14 @@ function resolveScopedSlots (
var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
var prevActiveInstance = activeInstance;
activeInstance = vm;
return function () {
activeInstance = prevActiveInstance;
}
}
function initLifecycle (vm) {
var options = vm.$options;
@ -2759,8 +2767,7 @@ function lifecycleMixin (Vue) {
var vm = this;
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
var restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
@ -2771,7 +2778,7 @@ function lifecycleMixin (Vue) {
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
restoreActiveInstance();
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
@ -5181,7 +5188,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.5.18-beta.0';
Vue.version = '2.5.18';
/* */
@ -8474,6 +8481,7 @@ var TransitionGroup = {
var update = this._update;
this._update = function (vnode, hydrating) {
var restoreActiveInstance = setActiveInstance(this$1);
// force removing pass
this$1.__patch__(
this$1._vnode,
@ -8482,6 +8490,7 @@ var TransitionGroup = {
true // removeOnly (!important, avoids unnecessary moves)
);
this$1._vnode = this$1.kept;
restoreActiveInstance();
update.call(this$1, vnode, hydrating);
};
},
@ -10080,13 +10089,15 @@ var keyNames = {
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -10580,9 +10591,7 @@ function genChildren (
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip

6
dist/vue.common.prod.js vendored Normal file

File diff suppressed because one or more lines are too long

6
dist/vue.esm.browser.min.js vendored Normal file

File diff suppressed because one or more lines are too long

29
dist/vue.esm.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.18-beta.0
* Vue.js v2.5.18
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
@ -2726,6 +2726,14 @@ function resolveScopedSlots (
var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
var prevActiveInstance = activeInstance;
activeInstance = vm;
return function () {
activeInstance = prevActiveInstance;
}
}
function initLifecycle (vm) {
var options = vm.$options;
@ -2757,8 +2765,7 @@ function lifecycleMixin (Vue) {
var vm = this;
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
var restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
@ -2769,7 +2776,7 @@ function lifecycleMixin (Vue) {
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
restoreActiveInstance();
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
@ -5179,7 +5186,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.5.18-beta.0';
Vue.version = '2.5.18';
/* */
@ -8472,6 +8479,7 @@ var TransitionGroup = {
var update = this._update;
this._update = function (vnode, hydrating) {
var restoreActiveInstance = setActiveInstance(this$1);
// force removing pass
this$1.__patch__(
this$1._vnode,
@ -8480,6 +8488,7 @@ var TransitionGroup = {
true // removeOnly (!important, avoids unnecessary moves)
);
this$1._vnode = this$1.kept;
restoreActiveInstance();
update.call(this$1, vnode, hydrating);
};
},
@ -10078,13 +10087,15 @@ var keyNames = {
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -10578,9 +10589,7 @@ function genChildren (
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip

29
dist/vue.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.18-beta.0
* Vue.js v2.5.18
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
@ -2724,6 +2724,14 @@
var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
var prevActiveInstance = activeInstance;
activeInstance = vm;
return function () {
activeInstance = prevActiveInstance;
}
}
function initLifecycle (vm) {
var options = vm.$options;
@ -2755,8 +2763,7 @@
var vm = this;
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
var restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
@ -2767,7 +2774,7 @@
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
restoreActiveInstance();
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
@ -5163,7 +5170,7 @@
value: FunctionalRenderContext
});
Vue.version = '2.5.18-beta.0';
Vue.version = '2.5.18';
/* */
@ -8453,6 +8460,7 @@
var update = this._update;
this._update = function (vnode, hydrating) {
var restoreActiveInstance = setActiveInstance(this$1);
// force removing pass
this$1.__patch__(
this$1._vnode,
@ -8461,6 +8469,7 @@
true // removeOnly (!important, avoids unnecessary moves)
);
this$1._vnode = this$1.kept;
restoreActiveInstance();
update.call(this$1, vnode, hydrating);
};
},
@ -10052,13 +10061,15 @@
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -10549,9 +10560,7 @@
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip

4
dist/vue.min.js vendored

File diff suppressed because one or more lines are too long

8084
dist/vue.runtime.common.dev.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.18-beta.0
* Vue.js v2.5.18
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
@ -2719,6 +2719,14 @@ function resolveScopedSlots (
var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
var prevActiveInstance = activeInstance;
activeInstance = vm;
return function () {
activeInstance = prevActiveInstance;
}
}
function initLifecycle (vm) {
var options = vm.$options;
@ -2750,8 +2758,7 @@ function lifecycleMixin (Vue) {
var vm = this;
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
var restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
@ -2762,7 +2769,7 @@ function lifecycleMixin (Vue) {
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
restoreActiveInstance();
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
@ -5172,7 +5179,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.5.18-beta.0';
Vue.version = '2.5.18';
/* */
@ -7896,6 +7903,7 @@ var TransitionGroup = {
var update = this._update;
this._update = function (vnode, hydrating) {
var restoreActiveInstance = setActiveInstance(this$1);
// force removing pass
this$1.__patch__(
this$1._vnode,
@ -7904,6 +7912,7 @@ var TransitionGroup = {
true // removeOnly (!important, avoids unnecessary moves)
);
this$1._vnode = this$1.kept;
restoreActiveInstance();
update.call(this$1, vnode, hydrating);
};
},

6
dist/vue.runtime.common.prod.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.18-beta.0
* Vue.js v2.5.18
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
@ -2717,6 +2717,14 @@ function resolveScopedSlots (
var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
var prevActiveInstance = activeInstance;
activeInstance = vm;
return function () {
activeInstance = prevActiveInstance;
}
}
function initLifecycle (vm) {
var options = vm.$options;
@ -2748,8 +2756,7 @@ function lifecycleMixin (Vue) {
var vm = this;
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
var restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
@ -2760,7 +2767,7 @@ function lifecycleMixin (Vue) {
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
restoreActiveInstance();
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
@ -5170,7 +5177,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});
Vue.version = '2.5.18-beta.0';
Vue.version = '2.5.18';
/* */
@ -7894,6 +7901,7 @@ var TransitionGroup = {
var update = this._update;
this._update = function (vnode, hydrating) {
var restoreActiveInstance = setActiveInstance(this$1);
// force removing pass
this$1.__patch__(
this$1._vnode,
@ -7902,6 +7910,7 @@ var TransitionGroup = {
true // removeOnly (!important, avoids unnecessary moves)
);
this$1._vnode = this$1.kept;
restoreActiveInstance();
update.call(this$1, vnode, hydrating);
};
},

19
dist/vue.runtime.js vendored
View File

@ -1,5 +1,5 @@
/*!
* Vue.js v2.5.18-beta.0
* Vue.js v2.5.18
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
@ -2715,6 +2715,14 @@
var activeInstance = null;
var isUpdatingChildComponent = false;
function setActiveInstance(vm) {
var prevActiveInstance = activeInstance;
activeInstance = vm;
return function () {
activeInstance = prevActiveInstance;
}
}
function initLifecycle (vm) {
var options = vm.$options;
@ -2746,8 +2754,7 @@
var vm = this;
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
var restoreActiveInstance = setActiveInstance(vm);
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
@ -2758,7 +2765,7 @@
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
restoreActiveInstance();
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
@ -5154,7 +5161,7 @@
value: FunctionalRenderContext
});
Vue.version = '2.5.18-beta.0';
Vue.version = '2.5.18';
/* */
@ -7875,6 +7882,7 @@
var update = this._update;
this._update = function (vnode, hydrating) {
var restoreActiveInstance = setActiveInstance(this$1);
// force removing pass
this$1.__patch__(
this$1._vnode,
@ -7883,6 +7891,7 @@
true // removeOnly (!important, avoids unnecessary moves)
);
this$1._vnode = this$1.kept;
restoreActiveInstance();
update.call(this$1, vnode, hydrating);
};
},

File diff suppressed because one or more lines are too long

View File

@ -4559,13 +4559,15 @@
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -5056,9 +5058,7 @@
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip

View File

@ -4322,13 +4322,15 @@ var keyNames = {
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -4822,9 +4824,7 @@ function genChildren (
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip
@ -7972,7 +7972,10 @@ var TemplateRenderer = function TemplateRenderer (options) {
// extra functionality with client manifest
if (options.clientManifest) {
var clientManifest = this.clientManifest = options.clientManifest;
this.publicPath = clientManifest.publicPath;
// ensure publicPath ends with /
this.publicPath = clientManifest.publicPath === ''
? ''
: clientManifest.publicPath.replace(/([^\/])$/, '$1/');
// preload/prefetch directives
this.preloadFiles = (clientManifest.initial || []).map(normalizeFile);
this.prefetchFiles = (clientManifest.async || []).map(normalizeFile);
@ -8035,7 +8038,7 @@ TemplateRenderer.prototype.renderStyles = function renderStyles (context) {
? cssFiles.map(function (ref) {
var file = ref.file;
return ("<link rel=\"stylesheet\" href=\"" + (this$1.getPublicPath(file)) + "\">");
return ("<link rel=\"stylesheet\" href=\"" + (this$1.publicPath) + file + "\">");
}).join('')
: '') +
// context.styles is a getter exposed by vue-style-loader which contains
@ -8081,7 +8084,7 @@ TemplateRenderer.prototype.renderPreloadLinks = function renderPreloadLinks (con
if (asType === 'font') {
extra = " type=\"font/" + extension + "\" crossorigin";
}
return ("<link rel=\"preload\" href=\"" + (this$1.getPublicPath(file)) + "\"" + (asType !== '' ? (" as=\"" + asType + "\"") : '') + extra + ">")
return ("<link rel=\"preload\" href=\"" + (this$1.publicPath) + file + "\"" + (asType !== '' ? (" as=\"" + asType + "\"") : '') + extra + ">")
}).join('')
} else {
return ''
@ -8108,7 +8111,7 @@ TemplateRenderer.prototype.renderPrefetchLinks = function renderPrefetchLinks (c
if (alreadyRendered(file)) {
return ''
}
return ("<link rel=\"prefetch\" href=\"" + (this$1.getPublicPath(file)) + "\">")
return ("<link rel=\"prefetch\" href=\"" + (this$1.publicPath) + file + "\">")
}).join('')
} else {
return ''
@ -8146,7 +8149,7 @@ TemplateRenderer.prototype.renderScripts = function renderScripts (context) {
return needed.map(function (ref) {
var file = ref.file;
return ("<script src=\"" + (this$1.getPublicPath(file)) + "\" defer></script>")
return ("<script src=\"" + (this$1.publicPath) + file + "\" defer></script>")
}).join('')
} else {
return ''
@ -8169,10 +8172,6 @@ TemplateRenderer.prototype.createStream = function createStream (context) {
return new TemplateStream(this, this.parsedTemplate, context || {})
};
TemplateRenderer.prototype.getPublicPath = function getPublicPath (file) {
return path.posix.join(this.publicPath, file)
};
function normalizeFile (file) {
var withoutQuery = file.replace(/\?.*/, '');
var extension = path.extname(withoutQuery).slice(1);

View File

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

View File

@ -3687,13 +3687,15 @@
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -4184,9 +4186,7 @@
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip

View File

@ -3316,13 +3316,15 @@ var keyNames = {
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
// #9112: IE11 uses `Spacebar` for Space key name.
space: [' ', 'Spacebar'],
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
// #9112: IE11 uses `Del` for Delete key name.
'delete': ['Backspace', 'Delete', 'Del']
};
// #4868: modifiers that prevent the execution of the listener
@ -3816,9 +3818,7 @@ function genChildren (
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
// because el may be a functional component and return an Array instead of a single root.
// In this case, just a simple normalization is needed
var normalizationType = state.maybeComponent(el$1) ? ",1" : "";
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
}
var normalizationType$1 = checkSkip

View File

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