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 CHANGED
@@ -168,7 +168,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
168
168
  </a>
169
169
  </td>
170
170
  <td align="center" valign="middle">
171
- <a href="https://syncfusion.com/products/vue" target="_blank">
171
+ <a href="http://www.syncfusion.com/?utm_source=vuejs&utm_medium=list&utm_campaign=vuejsjslistcy19" target="_blank">
172
172
  <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/syncfusion.png">
173
173
  </a>
174
174
  </td>
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.6.7
2
+ * Vue.js v2.6.8
3
3
  * (c) 2014-2019 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -477,7 +477,7 @@ var config = ({
477
477
  * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
478
478
  * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
479
479
  */
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/;
481
481
 
482
482
  /**
483
483
  * Check if a string starts with $ or _
@@ -502,7 +502,7 @@ function def (obj, key, val, enumerable) {
502
502
  /**
503
503
  * Parse simple path.
504
504
  */
505
- var bailRE = new RegExp(("[^" + unicodeLetters + ".$_\\d]"));
505
+ var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
506
506
  function parsePath (path) {
507
507
  if (bailRE.test(path)) {
508
508
  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_" + unicodeLetters + "]*$")).test(name)) {
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.'
@@ -3610,17 +3610,21 @@ function resolveAsyncComponent (
3610
3610
  return factory.resolved
3611
3611
  }
3612
3612
 
3613
+ var owner = currentRenderingInstance;
3614
+ if (isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
3615
+ // already pending
3616
+ factory.owners.push(owner);
3617
+ }
3618
+
3613
3619
  if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
3614
3620
  return factory.loadingComp
3615
3621
  }
3616
3622
 
3617
- var owner = currentRenderingInstance;
3618
- if (isDef(factory.owners)) {
3619
- // already pending
3620
- factory.owners.push(owner);
3621
- } else {
3623
+ if (!isDef(factory.owners)) {
3622
3624
  var owners = factory.owners = [owner];
3623
- var sync = true;
3625
+ var sync = true
3626
+
3627
+ ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
3624
3628
 
3625
3629
  var forceRender = function (renderCompleted) {
3626
3630
  for (var i = 0, l = owners.length; i < l; i++) {
@@ -5400,7 +5404,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
5400
5404
  value: FunctionalRenderContext
5401
5405
  });
5402
5406
 
5403
- Vue.version = '2.6.7';
5407
+ Vue.version = '2.6.8';
5404
5408
 
5405
5409
  /* */
5406
5410
 
@@ -9202,7 +9206,7 @@ var isNonPhrasingTag = makeMap(
9202
9206
  // Regular Expressions for parsing tags and attributes
9203
9207
  var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9204
9208
  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) + "]*";
9206
9210
  var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
9207
9211
  var startTagOpen = new RegExp(("^<" + qnameCapture));
9208
9212
  var startTagClose = /^\s*(\/?)>/;
@@ -9464,7 +9468,7 @@ function parseHTML (html, options) {
9464
9468
  ) {
9465
9469
  options.warn(
9466
9470
  ("tag <" + (stack[i].tag) + "> has no matching end tag."),
9467
- { start: stack[i].start }
9471
+ { start: stack[i].start, end: stack[i].end }
9468
9472
  );
9469
9473
  }
9470
9474
  if (options.end) {
@@ -9501,7 +9505,7 @@ var dynamicArgRE = /^\[.*\]$/;
9501
9505
 
9502
9506
  var argRE = /:(.*)$/;
9503
9507
  var bindRE = /^:|^\.|^v-bind:/;
9504
- var modifierRE = /\.[^.]+/g;
9508
+ var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
9505
9509
 
9506
9510
  var slotRE = /^v-slot(:|$)|^#/;
9507
9511
 
@@ -9678,7 +9682,7 @@ function parse (
9678
9682
  shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
9679
9683
  shouldKeepComment: options.comments,
9680
9684
  outputSourceRange: options.outputSourceRange,
9681
- start: function start (tag, attrs, unary, start$1) {
9685
+ start: function start (tag, attrs, unary, start$1, end) {
9682
9686
  // check namespace.
9683
9687
  // inherit parent ns if there is one
9684
9688
  var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
@@ -9697,6 +9701,7 @@ function parse (
9697
9701
  {
9698
9702
  if (options.outputSourceRange) {
9699
9703
  element.start = start$1;
9704
+ element.end = end;
9700
9705
  element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9701
9706
  cumulated[attr.name] = attr;
9702
9707
  return cumulated
@@ -11181,7 +11186,7 @@ function genScopedSlots (
11181
11186
  // components with only scoped slots to skip forced updates from parent.
11182
11187
  // but in some cases we have to bail-out of this optimization
11183
11188
  // 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) {
11185
11190
  var slot = slots[key];
11186
11191
  return (
11187
11192
  slot.slotTargetDynamic ||