Skip to content

Commit 869a819

Browse files
committed
build: build 2.6.8
1 parent 372d71c commit 869a819

19 files changed

+194
-150
lines changed

Diff for: dist/vue.common.dev.js

+21-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.7
2+
* Vue.js v2.6.8
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -477,7 +477,7 @@ var config = ({
477477
* using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
478478
* skipping \u10000-\uEFFFF due to it freezing up PhantomJS
479479
*/
480-
var unicodeLetters = 'a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD';
480+
var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
481481

482482
/**
483483
* Check if a string starts with $ or _
@@ -502,7 +502,7 @@ function def (obj, key, val, enumerable) {
502502
/**
503503
* Parse simple path.
504504
*/
505-
var bailRE = new RegExp(("[^" + unicodeLetters + ".$_\\d]"));
505+
var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
506506
function parsePath (path) {
507507
if (bailRE.test(path)) {
508508
return
@@ -1406,7 +1406,7 @@ function checkComponents (options) {
14061406
}
14071407

14081408
function validateComponentName (name) {
1409-
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + unicodeLetters + "]*$")).test(name)) {
1409+
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
14101410
warn(
14111411
'Invalid component name: "' + name + '". Component names ' +
14121412
'should conform to valid custom element name in html5 specification.'
@@ -3610,17 +3610,21 @@ function resolveAsyncComponent (
36103610
return factory.resolved
36113611
}
36123612

3613+
var owner = currentRenderingInstance;
3614+
if (isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
3615+
// already pending
3616+
factory.owners.push(owner);
3617+
}
3618+
36133619
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
36143620
return factory.loadingComp
36153621
}
36163622

3617-
var owner = currentRenderingInstance;
3618-
if (isDef(factory.owners)) {
3619-
// already pending
3620-
factory.owners.push(owner);
3621-
} else {
3623+
if (!isDef(factory.owners)) {
36223624
var owners = factory.owners = [owner];
3623-
var sync = true;
3625+
var sync = true
3626+
3627+
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
36243628

36253629
var forceRender = function (renderCompleted) {
36263630
for (var i = 0, l = owners.length; i < l; i++) {
@@ -5400,7 +5404,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
54005404
value: FunctionalRenderContext
54015405
});
54025406

5403-
Vue.version = '2.6.7';
5407+
Vue.version = '2.6.8';
54045408

54055409
/* */
54065410

@@ -9202,7 +9206,7 @@ var isNonPhrasingTag = makeMap(
92029206
// Regular Expressions for parsing tags and attributes
92039207
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
92049208
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9205-
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + unicodeLetters + "]*";
9209+
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
92069210
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
92079211
var startTagOpen = new RegExp(("^<" + qnameCapture));
92089212
var startTagClose = /^\s*(\/?)>/;
@@ -9464,7 +9468,7 @@ function parseHTML (html, options) {
94649468
) {
94659469
options.warn(
94669470
("tag <" + (stack[i].tag) + "> has no matching end tag."),
9467-
{ start: stack[i].start }
9471+
{ start: stack[i].start, end: stack[i].end }
94689472
);
94699473
}
94709474
if (options.end) {
@@ -9501,7 +9505,7 @@ var dynamicArgRE = /^\[.*\]$/;
95019505

95029506
var argRE = /:(.*)$/;
95039507
var bindRE = /^:|^\.|^v-bind:/;
9504-
var modifierRE = /\.[^.]+/g;
9508+
var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
95059509

95069510
var slotRE = /^v-slot(:|$)|^#/;
95079511

@@ -9678,7 +9682,7 @@ function parse (
96789682
shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
96799683
shouldKeepComment: options.comments,
96809684
outputSourceRange: options.outputSourceRange,
9681-
start: function start (tag, attrs, unary, start$1) {
9685+
start: function start (tag, attrs, unary, start$1, end) {
96829686
// check namespace.
96839687
// inherit parent ns if there is one
96849688
var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
@@ -9697,6 +9701,7 @@ function parse (
96979701
{
96989702
if (options.outputSourceRange) {
96999703
element.start = start$1;
9704+
element.end = end;
97009705
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
97019706
cumulated[attr.name] = attr;
97029707
return cumulated
@@ -11181,7 +11186,7 @@ function genScopedSlots (
1118111186
// components with only scoped slots to skip forced updates from parent.
1118211187
// but in some cases we have to bail-out of this optimization
1118311188
// for example if the slot contains dynamic names, has v-if or v-for on them...
11184-
var needsForceUpdate = Object.keys(slots).some(function (key) {
11189+
var needsForceUpdate = el.for || Object.keys(slots).some(function (key) {
1118511190
var slot = slots[key];
1118611191
return (
1118711192
slot.slotTargetDynamic ||

Diff for: dist/vue.common.prod.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue.esm.browser.js

+21-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.7
2+
* Vue.js v2.6.8
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -475,7 +475,7 @@ var config = ({
475475
* using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
476476
* skipping \u10000-\uEFFFF due to it freezing up PhantomJS
477477
*/
478-
const unicodeLetters = 'a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD';
478+
const unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
479479

480480
/**
481481
* Check if a string starts with $ or _
@@ -500,7 +500,7 @@ function def (obj, key, val, enumerable) {
500500
/**
501501
* Parse simple path.
502502
*/
503-
const bailRE = new RegExp(`[^${unicodeLetters}.$_\\d]`);
503+
const bailRE = new RegExp(`[^${unicodeRegExp.source}.$_\\d]`);
504504
function parsePath (path) {
505505
if (bailRE.test(path)) {
506506
return
@@ -1440,7 +1440,7 @@ function checkComponents (options) {
14401440
}
14411441

14421442
function validateComponentName (name) {
1443-
if (!new RegExp(`^[a-zA-Z][\\-\\.0-9_${unicodeLetters}]*$`).test(name)) {
1443+
if (!new RegExp(`^[a-zA-Z][\\-\\.0-9_${unicodeRegExp.source}]*$`).test(name)) {
14441444
warn(
14451445
'Invalid component name: "' + name + '". Component names ' +
14461446
'should conform to valid custom element name in html5 specification.'
@@ -3631,17 +3631,21 @@ function resolveAsyncComponent (
36313631
return factory.resolved
36323632
}
36333633

3634+
const owner = currentRenderingInstance;
3635+
if (isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
3636+
// already pending
3637+
factory.owners.push(owner);
3638+
}
3639+
36343640
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
36353641
return factory.loadingComp
36363642
}
36373643

3638-
const owner = currentRenderingInstance;
3639-
if (isDef(factory.owners)) {
3640-
// already pending
3641-
factory.owners.push(owner);
3642-
} else {
3644+
if (!isDef(factory.owners)) {
36433645
const owners = factory.owners = [owner];
3644-
let sync = true;
3646+
let sync = true
3647+
3648+
;(owner).$on('hook:destroyed', () => remove(owners, owner));
36453649

36463650
const forceRender = (renderCompleted) => {
36473651
for (let i = 0, l = owners.length; i < l; i++) {
@@ -5431,7 +5435,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
54315435
value: FunctionalRenderContext
54325436
});
54335437

5434-
Vue.version = '2.6.7';
5438+
Vue.version = '2.6.8';
54355439

54365440
/* */
54375441

@@ -9219,7 +9223,7 @@ const isNonPhrasingTag = makeMap(
92199223
// Regular Expressions for parsing tags and attributes
92209224
const attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
92219225
const dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9222-
const ncname = `[a-zA-Z_][\\-\\.0-9_a-zA-Z${unicodeLetters}]*`;
9226+
const ncname = `[a-zA-Z_][\\-\\.0-9_a-zA-Z${unicodeRegExp.source}]*`;
92239227
const qnameCapture = `((?:${ncname}\\:)?${ncname})`;
92249228
const startTagOpen = new RegExp(`^<${qnameCapture}`);
92259229
const startTagClose = /^\s*(\/?)>/;
@@ -9481,7 +9485,7 @@ function parseHTML (html, options) {
94819485
) {
94829486
options.warn(
94839487
`tag <${stack[i].tag}> has no matching end tag.`,
9484-
{ start: stack[i].start }
9488+
{ start: stack[i].start, end: stack[i].end }
94859489
);
94869490
}
94879491
if (options.end) {
@@ -9518,7 +9522,7 @@ const dynamicArgRE = /^\[.*\]$/;
95189522

95199523
const argRE = /:(.*)$/;
95209524
const bindRE = /^:|^\.|^v-bind:/;
9521-
const modifierRE = /\.[^.]+/g;
9525+
const modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
95229526

95239527
const slotRE = /^v-slot(:|$)|^#/;
95249528

@@ -9695,7 +9699,7 @@ function parse (
96959699
shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
96969700
shouldKeepComment: options.comments,
96979701
outputSourceRange: options.outputSourceRange,
9698-
start (tag, attrs, unary, start) {
9702+
start (tag, attrs, unary, start, end) {
96999703
// check namespace.
97009704
// inherit parent ns if there is one
97019705
const ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
@@ -9714,6 +9718,7 @@ function parse (
97149718
{
97159719
if (options.outputSourceRange) {
97169720
element.start = start;
9721+
element.end = end;
97179722
element.rawAttrsMap = element.attrsList.reduce((cumulated, attr) => {
97189723
cumulated[attr.name] = attr;
97199724
return cumulated
@@ -11240,7 +11245,7 @@ function genScopedSlots (
1124011245
// components with only scoped slots to skip forced updates from parent.
1124111246
// but in some cases we have to bail-out of this optimization
1124211247
// for example if the slot contains dynamic names, has v-if or v-for on them...
11243-
let needsForceUpdate = Object.keys(slots).some(key => {
11248+
let needsForceUpdate = el.for || Object.keys(slots).some(key => {
1124411249
const slot = slots[key];
1124511250
return (
1124611251
slot.slotTargetDynamic ||

Diff for: dist/vue.esm.browser.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue.esm.js

+21-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.7
2+
* Vue.js v2.6.8
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -475,7 +475,7 @@ var config = ({
475475
* using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
476476
* skipping \u10000-\uEFFFF due to it freezing up PhantomJS
477477
*/
478-
var unicodeLetters = 'a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD';
478+
var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
479479

480480
/**
481481
* Check if a string starts with $ or _
@@ -500,7 +500,7 @@ function def (obj, key, val, enumerable) {
500500
/**
501501
* Parse simple path.
502502
*/
503-
var bailRE = new RegExp(("[^" + unicodeLetters + ".$_\\d]"));
503+
var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
504504
function parsePath (path) {
505505
if (bailRE.test(path)) {
506506
return
@@ -1406,7 +1406,7 @@ function checkComponents (options) {
14061406
}
14071407

14081408
function validateComponentName (name) {
1409-
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + unicodeLetters + "]*$")).test(name)) {
1409+
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
14101410
warn(
14111411
'Invalid component name: "' + name + '". Component names ' +
14121412
'should conform to valid custom element name in html5 specification.'
@@ -3620,17 +3620,21 @@ function resolveAsyncComponent (
36203620
return factory.resolved
36213621
}
36223622

3623+
var owner = currentRenderingInstance;
3624+
if (isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
3625+
// already pending
3626+
factory.owners.push(owner);
3627+
}
3628+
36233629
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
36243630
return factory.loadingComp
36253631
}
36263632

3627-
var owner = currentRenderingInstance;
3628-
if (isDef(factory.owners)) {
3629-
// already pending
3630-
factory.owners.push(owner);
3631-
} else {
3633+
if (!isDef(factory.owners)) {
36323634
var owners = factory.owners = [owner];
3633-
var sync = true;
3635+
var sync = true
3636+
3637+
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
36343638

36353639
var forceRender = function (renderCompleted) {
36363640
for (var i = 0, l = owners.length; i < l; i++) {
@@ -5420,7 +5424,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
54205424
value: FunctionalRenderContext
54215425
});
54225426

5423-
Vue.version = '2.6.7';
5427+
Vue.version = '2.6.8';
54245428

54255429
/* */
54265430

@@ -9230,7 +9234,7 @@ var isNonPhrasingTag = makeMap(
92309234
// Regular Expressions for parsing tags and attributes
92319235
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
92329236
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9233-
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + unicodeLetters + "]*";
9237+
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
92349238
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
92359239
var startTagOpen = new RegExp(("^<" + qnameCapture));
92369240
var startTagClose = /^\s*(\/?)>/;
@@ -9493,7 +9497,7 @@ function parseHTML (html, options) {
94939497
) {
94949498
options.warn(
94959499
("tag <" + (stack[i].tag) + "> has no matching end tag."),
9496-
{ start: stack[i].start }
9500+
{ start: stack[i].start, end: stack[i].end }
94979501
);
94989502
}
94999503
if (options.end) {
@@ -9530,7 +9534,7 @@ var dynamicArgRE = /^\[.*\]$/;
95309534

95319535
var argRE = /:(.*)$/;
95329536
var bindRE = /^:|^\.|^v-bind:/;
9533-
var modifierRE = /\.[^.]+/g;
9537+
var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
95349538

95359539
var slotRE = /^v-slot(:|$)|^#/;
95369540

@@ -9707,7 +9711,7 @@ function parse (
97079711
shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
97089712
shouldKeepComment: options.comments,
97099713
outputSourceRange: options.outputSourceRange,
9710-
start: function start (tag, attrs, unary, start$1) {
9714+
start: function start (tag, attrs, unary, start$1, end) {
97119715
// check namespace.
97129716
// inherit parent ns if there is one
97139717
var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
@@ -9726,6 +9730,7 @@ function parse (
97269730
if (process.env.NODE_ENV !== 'production') {
97279731
if (options.outputSourceRange) {
97289732
element.start = start$1;
9733+
element.end = end;
97299734
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
97309735
cumulated[attr.name] = attr;
97319736
return cumulated
@@ -11215,7 +11220,7 @@ function genScopedSlots (
1121511220
// components with only scoped slots to skip forced updates from parent.
1121611221
// but in some cases we have to bail-out of this optimization
1121711222
// for example if the slot contains dynamic names, has v-if or v-for on them...
11218-
var needsForceUpdate = Object.keys(slots).some(function (key) {
11223+
var needsForceUpdate = el.for || Object.keys(slots).some(function (key) {
1121911224
var slot = slots[key];
1122011225
return (
1122111226
slot.slotTargetDynamic ||

0 commit comments

Comments
 (0)