vue 2.6.7 → 2.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/vue.common.dev.js +21 -16
- package/dist/vue.common.prod.js +2 -2
- package/dist/vue.esm.browser.js +21 -16
- package/dist/vue.esm.browser.min.js +2 -2
- package/dist/vue.esm.js +21 -16
- package/dist/vue.js +21 -16
- package/dist/vue.min.js +2 -2
- package/dist/vue.runtime.common.dev.js +15 -11
- package/dist/vue.runtime.common.prod.js +2 -2
- package/dist/vue.runtime.esm.js +15 -11
- package/dist/vue.runtime.js +15 -11
- package/dist/vue.runtime.min.js +2 -2
- package/package.json +1 -1
- package/src/compiler/codegen/index.js +1 -1
- package/src/compiler/parser/html-parser.js +3 -3
- package/src/compiler/parser/index.js +3 -2
- package/src/core/util/lang.js +2 -2
- package/src/core/util/options.js +2 -2
- package/src/core/vdom/helpers/resolve-async-component.js +11 -6
- package/src/server/write.js +1 -1
- package/types/vnode.d.ts +5 -1
- package/types/vue.d.ts +3 -3
package/dist/vue.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vue.js v2.6.
|
|
2
|
+
* Vue.js v2.6.8
|
|
3
3
|
* (c) 2014-2019 Evan You
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -475,7 +475,7 @@ var config = ({
|
|
|
475
475
|
* using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
|
|
476
476
|
* skipping \u10000-\uEFFFF due to it freezing up PhantomJS
|
|
477
477
|
*/
|
|
478
|
-
var
|
|
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/;
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* Check if a string starts with $ or _
|
|
@@ -500,7 +500,7 @@ function def (obj, key, val, enumerable) {
|
|
|
500
500
|
/**
|
|
501
501
|
* Parse simple path.
|
|
502
502
|
*/
|
|
503
|
-
var bailRE = new RegExp(("[^" +
|
|
503
|
+
var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
|
|
504
504
|
function parsePath (path) {
|
|
505
505
|
if (bailRE.test(path)) {
|
|
506
506
|
return
|
|
@@ -1406,7 +1406,7 @@ function checkComponents (options) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
function validateComponentName (name) {
|
|
1409
|
-
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" +
|
|
1409
|
+
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
|
|
1410
1410
|
warn(
|
|
1411
1411
|
'Invalid component name: "' + name + '". Component names ' +
|
|
1412
1412
|
'should conform to valid custom element name in html5 specification.'
|
|
@@ -3620,17 +3620,21 @@ function resolveAsyncComponent (
|
|
|
3620
3620
|
return factory.resolved
|
|
3621
3621
|
}
|
|
3622
3622
|
|
|
3623
|
+
var owner = currentRenderingInstance;
|
|
3624
|
+
if (isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
|
|
3625
|
+
// already pending
|
|
3626
|
+
factory.owners.push(owner);
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3623
3629
|
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
|
|
3624
3630
|
return factory.loadingComp
|
|
3625
3631
|
}
|
|
3626
3632
|
|
|
3627
|
-
|
|
3628
|
-
if (isDef(factory.owners)) {
|
|
3629
|
-
// already pending
|
|
3630
|
-
factory.owners.push(owner);
|
|
3631
|
-
} else {
|
|
3633
|
+
if (!isDef(factory.owners)) {
|
|
3632
3634
|
var owners = factory.owners = [owner];
|
|
3633
|
-
var sync = true
|
|
3635
|
+
var sync = true
|
|
3636
|
+
|
|
3637
|
+
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
|
|
3634
3638
|
|
|
3635
3639
|
var forceRender = function (renderCompleted) {
|
|
3636
3640
|
for (var i = 0, l = owners.length; i < l; i++) {
|
|
@@ -5420,7 +5424,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
|
|
5420
5424
|
value: FunctionalRenderContext
|
|
5421
5425
|
});
|
|
5422
5426
|
|
|
5423
|
-
Vue.version = '2.6.
|
|
5427
|
+
Vue.version = '2.6.8';
|
|
5424
5428
|
|
|
5425
5429
|
/* */
|
|
5426
5430
|
|
|
@@ -9230,7 +9234,7 @@ var isNonPhrasingTag = makeMap(
|
|
|
9230
9234
|
// Regular Expressions for parsing tags and attributes
|
|
9231
9235
|
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
9232
9236
|
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
9233
|
-
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" +
|
|
9237
|
+
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
|
|
9234
9238
|
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
|
|
9235
9239
|
var startTagOpen = new RegExp(("^<" + qnameCapture));
|
|
9236
9240
|
var startTagClose = /^\s*(\/?)>/;
|
|
@@ -9493,7 +9497,7 @@ function parseHTML (html, options) {
|
|
|
9493
9497
|
) {
|
|
9494
9498
|
options.warn(
|
|
9495
9499
|
("tag <" + (stack[i].tag) + "> has no matching end tag."),
|
|
9496
|
-
{ start: stack[i].start }
|
|
9500
|
+
{ start: stack[i].start, end: stack[i].end }
|
|
9497
9501
|
);
|
|
9498
9502
|
}
|
|
9499
9503
|
if (options.end) {
|
|
@@ -9530,7 +9534,7 @@ var dynamicArgRE = /^\[.*\]$/;
|
|
|
9530
9534
|
|
|
9531
9535
|
var argRE = /:(.*)$/;
|
|
9532
9536
|
var bindRE = /^:|^\.|^v-bind:/;
|
|
9533
|
-
var modifierRE = /\.[
|
|
9537
|
+
var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
|
|
9534
9538
|
|
|
9535
9539
|
var slotRE = /^v-slot(:|$)|^#/;
|
|
9536
9540
|
|
|
@@ -9707,7 +9711,7 @@ function parse (
|
|
|
9707
9711
|
shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
|
|
9708
9712
|
shouldKeepComment: options.comments,
|
|
9709
9713
|
outputSourceRange: options.outputSourceRange,
|
|
9710
|
-
start: function start (tag, attrs, unary, start$1) {
|
|
9714
|
+
start: function start (tag, attrs, unary, start$1, end) {
|
|
9711
9715
|
// check namespace.
|
|
9712
9716
|
// inherit parent ns if there is one
|
|
9713
9717
|
var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
|
|
@@ -9726,6 +9730,7 @@ function parse (
|
|
|
9726
9730
|
if (process.env.NODE_ENV !== 'production') {
|
|
9727
9731
|
if (options.outputSourceRange) {
|
|
9728
9732
|
element.start = start$1;
|
|
9733
|
+
element.end = end;
|
|
9729
9734
|
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
|
|
9730
9735
|
cumulated[attr.name] = attr;
|
|
9731
9736
|
return cumulated
|
|
@@ -11215,7 +11220,7 @@ function genScopedSlots (
|
|
|
11215
11220
|
// components with only scoped slots to skip forced updates from parent.
|
|
11216
11221
|
// but in some cases we have to bail-out of this optimization
|
|
11217
11222
|
// 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) {
|
|
11219
11224
|
var slot = slots[key];
|
|
11220
11225
|
return (
|
|
11221
11226
|
slot.slotTargetDynamic ||
|
package/dist/vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vue.js v2.6.
|
|
2
|
+
* Vue.js v2.6.8
|
|
3
3
|
* (c) 2014-2019 Evan You
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
* using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
|
|
482
482
|
* skipping \u10000-\uEFFFF due to it freezing up PhantomJS
|
|
483
483
|
*/
|
|
484
|
-
var
|
|
484
|
+
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/;
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* Check if a string starts with $ or _
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
/**
|
|
507
507
|
* Parse simple path.
|
|
508
508
|
*/
|
|
509
|
-
var bailRE = new RegExp(("[^" +
|
|
509
|
+
var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
|
|
510
510
|
function parsePath (path) {
|
|
511
511
|
if (bailRE.test(path)) {
|
|
512
512
|
return
|
|
@@ -1410,7 +1410,7 @@
|
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
1412
|
function validateComponentName (name) {
|
|
1413
|
-
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" +
|
|
1413
|
+
if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
|
|
1414
1414
|
warn(
|
|
1415
1415
|
'Invalid component name: "' + name + '". Component names ' +
|
|
1416
1416
|
'should conform to valid custom element name in html5 specification.'
|
|
@@ -3614,17 +3614,21 @@
|
|
|
3614
3614
|
return factory.resolved
|
|
3615
3615
|
}
|
|
3616
3616
|
|
|
3617
|
+
var owner = currentRenderingInstance;
|
|
3618
|
+
if (isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
|
|
3619
|
+
// already pending
|
|
3620
|
+
factory.owners.push(owner);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3617
3623
|
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
|
|
3618
3624
|
return factory.loadingComp
|
|
3619
3625
|
}
|
|
3620
3626
|
|
|
3621
|
-
|
|
3622
|
-
if (isDef(factory.owners)) {
|
|
3623
|
-
// already pending
|
|
3624
|
-
factory.owners.push(owner);
|
|
3625
|
-
} else {
|
|
3627
|
+
if (!isDef(factory.owners)) {
|
|
3626
3628
|
var owners = factory.owners = [owner];
|
|
3627
|
-
var sync = true
|
|
3629
|
+
var sync = true
|
|
3630
|
+
|
|
3631
|
+
;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
|
|
3628
3632
|
|
|
3629
3633
|
var forceRender = function (renderCompleted) {
|
|
3630
3634
|
for (var i = 0, l = owners.length; i < l; i++) {
|
|
@@ -5404,7 +5408,7 @@
|
|
|
5404
5408
|
value: FunctionalRenderContext
|
|
5405
5409
|
});
|
|
5406
5410
|
|
|
5407
|
-
Vue.version = '2.6.
|
|
5411
|
+
Vue.version = '2.6.8';
|
|
5408
5412
|
|
|
5409
5413
|
/* */
|
|
5410
5414
|
|
|
@@ -9206,7 +9210,7 @@
|
|
|
9206
9210
|
// Regular Expressions for parsing tags and attributes
|
|
9207
9211
|
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
9208
9212
|
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
|
|
9209
|
-
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" +
|
|
9213
|
+
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
|
|
9210
9214
|
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
|
|
9211
9215
|
var startTagOpen = new RegExp(("^<" + qnameCapture));
|
|
9212
9216
|
var startTagClose = /^\s*(\/?)>/;
|
|
@@ -9468,7 +9472,7 @@
|
|
|
9468
9472
|
) {
|
|
9469
9473
|
options.warn(
|
|
9470
9474
|
("tag <" + (stack[i].tag) + "> has no matching end tag."),
|
|
9471
|
-
{ start: stack[i].start }
|
|
9475
|
+
{ start: stack[i].start, end: stack[i].end }
|
|
9472
9476
|
);
|
|
9473
9477
|
}
|
|
9474
9478
|
if (options.end) {
|
|
@@ -9505,7 +9509,7 @@
|
|
|
9505
9509
|
|
|
9506
9510
|
var argRE = /:(.*)$/;
|
|
9507
9511
|
var bindRE = /^:|^\.|^v-bind:/;
|
|
9508
|
-
var modifierRE = /\.[
|
|
9512
|
+
var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
|
|
9509
9513
|
|
|
9510
9514
|
var slotRE = /^v-slot(:|$)|^#/;
|
|
9511
9515
|
|
|
@@ -9682,7 +9686,7 @@
|
|
|
9682
9686
|
shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
|
|
9683
9687
|
shouldKeepComment: options.comments,
|
|
9684
9688
|
outputSourceRange: options.outputSourceRange,
|
|
9685
|
-
start: function start (tag, attrs, unary, start$1) {
|
|
9689
|
+
start: function start (tag, attrs, unary, start$1, end) {
|
|
9686
9690
|
// check namespace.
|
|
9687
9691
|
// inherit parent ns if there is one
|
|
9688
9692
|
var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
|
|
@@ -9701,6 +9705,7 @@
|
|
|
9701
9705
|
{
|
|
9702
9706
|
if (options.outputSourceRange) {
|
|
9703
9707
|
element.start = start$1;
|
|
9708
|
+
element.end = end;
|
|
9704
9709
|
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
|
|
9705
9710
|
cumulated[attr.name] = attr;
|
|
9706
9711
|
return cumulated
|
|
@@ -11185,7 +11190,7 @@
|
|
|
11185
11190
|
// components with only scoped slots to skip forced updates from parent.
|
|
11186
11191
|
// but in some cases we have to bail-out of this optimization
|
|
11187
11192
|
// for example if the slot contains dynamic names, has v-if or v-for on them...
|
|
11188
|
-
var needsForceUpdate = Object.keys(slots).some(function (key) {
|
|
11193
|
+
var needsForceUpdate = el.for || Object.keys(slots).some(function (key) {
|
|
11189
11194
|
var slot = slots[key];
|
|
11190
11195
|
return (
|
|
11191
11196
|
slot.slotTargetDynamic ||
|