Przeglądaj źródła

build: build 2.5.21

Evan You 7 lat temu
rodzic
commit
b449e17eef

+ 11 - 8
dist/vue.common.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * Vue.js v2.5.20
+ * Vue.js v2.5.21
  * (c) 2014-2018 Evan You
  * (c) 2014-2018 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -2903,7 +2903,7 @@ function mountComponent (
   // component's mounted hook), which relies on vm._watcher being already defined
   // component's mounted hook), which relies on vm._watcher being already defined
   new Watcher(vm, updateComponent, noop, {
   new Watcher(vm, updateComponent, noop, {
     before: function before () {
     before: function before () {
-      if (vm._isMounted) {
+      if (vm._isMounted && !vm._isDestroyed) {
         callHook(vm, 'beforeUpdate');
         callHook(vm, 'beforeUpdate');
       }
       }
     }
     }
@@ -3844,9 +3844,10 @@ function renderList (
       ret[i] = render(val[key], key, i);
       ret[i] = render(val[key], key, i);
     }
     }
   }
   }
-  if (isDef(ret)) {
-    (ret)._isVList = true;
+  if (!isDef(ret)) {
+    ret = [];
   }
   }
+  (ret)._isVList = true;
   return ret
   return ret
 }
 }
 
 
@@ -5188,7 +5189,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
   value: FunctionalRenderContext
   value: FunctionalRenderContext
 });
 });
 
 
-Vue.version = '2.5.20';
+Vue.version = '2.5.21';
 
 
 /*  */
 /*  */
 
 
@@ -6846,7 +6847,7 @@ function genComponentModel (
 
 
   el.model = {
   el.model = {
     value: ("(" + value + ")"),
     value: ("(" + value + ")"),
-    expression: ("\"" + value + "\""),
+    expression: JSON.stringify(value),
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
   };
   };
 }
 }
@@ -9467,7 +9468,7 @@ function processKey (el) {
         var parent = el.parent;
         var parent = el.parent;
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           warn$2(
           warn$2(
-            "Do not use v-for index as key on <transtion-group> children, " +
+            "Do not use v-for index as key on <transition-group> children, " +
             "this is the same as not using keys."
             "this is the same as not using keys."
           );
           );
         }
         }
@@ -10584,7 +10585,9 @@ function genChildren (
       el$1.tag !== 'template' &&
       el$1.tag !== 'template' &&
       el$1.tag !== 'slot'
       el$1.tag !== 'slot'
     ) {
     ) {
-      var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+      var normalizationType = checkSkip
+        ? state.maybeComponent(el$1) ? ",1" : ",0"
+        : "";
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
     }
     }
     var normalizationType$1 = checkSkip
     var normalizationType$1 = checkSkip

+ 11 - 8
dist/vue.esm.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * Vue.js v2.5.20
+ * Vue.js v2.5.21
  * (c) 2014-2018 Evan You
  * (c) 2014-2018 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -2901,7 +2901,7 @@ function mountComponent (
   // component's mounted hook), which relies on vm._watcher being already defined
   // component's mounted hook), which relies on vm._watcher being already defined
   new Watcher(vm, updateComponent, noop, {
   new Watcher(vm, updateComponent, noop, {
     before: function before () {
     before: function before () {
-      if (vm._isMounted) {
+      if (vm._isMounted && !vm._isDestroyed) {
         callHook(vm, 'beforeUpdate');
         callHook(vm, 'beforeUpdate');
       }
       }
     }
     }
@@ -3842,9 +3842,10 @@ function renderList (
       ret[i] = render(val[key], key, i);
       ret[i] = render(val[key], key, i);
     }
     }
   }
   }
-  if (isDef(ret)) {
-    (ret)._isVList = true;
+  if (!isDef(ret)) {
+    ret = [];
   }
   }
+  (ret)._isVList = true;
   return ret
   return ret
 }
 }
 
 
@@ -5186,7 +5187,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
   value: FunctionalRenderContext
   value: FunctionalRenderContext
 });
 });
 
 
-Vue.version = '2.5.20';
+Vue.version = '2.5.21';
 
 
 /*  */
 /*  */
 
 
@@ -6844,7 +6845,7 @@ function genComponentModel (
 
 
   el.model = {
   el.model = {
     value: ("(" + value + ")"),
     value: ("(" + value + ")"),
-    expression: ("\"" + value + "\""),
+    expression: JSON.stringify(value),
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
   };
   };
 }
 }
@@ -9465,7 +9466,7 @@ function processKey (el) {
         var parent = el.parent;
         var parent = el.parent;
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           warn$2(
           warn$2(
-            "Do not use v-for index as key on <transtion-group> children, " +
+            "Do not use v-for index as key on <transition-group> children, " +
             "this is the same as not using keys."
             "this is the same as not using keys."
           );
           );
         }
         }
@@ -10582,7 +10583,9 @@ function genChildren (
       el$1.tag !== 'template' &&
       el$1.tag !== 'template' &&
       el$1.tag !== 'slot'
       el$1.tag !== 'slot'
     ) {
     ) {
-      var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+      var normalizationType = checkSkip
+        ? state.maybeComponent(el$1) ? ",1" : ",0"
+        : "";
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
     }
     }
     var normalizationType$1 = checkSkip
     var normalizationType$1 = checkSkip

+ 11 - 8
dist/vue.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * Vue.js v2.5.20
+ * Vue.js v2.5.21
  * (c) 2014-2018 Evan You
  * (c) 2014-2018 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -2899,7 +2899,7 @@
     // component's mounted hook), which relies on vm._watcher being already defined
     // component's mounted hook), which relies on vm._watcher being already defined
     new Watcher(vm, updateComponent, noop, {
     new Watcher(vm, updateComponent, noop, {
       before: function before () {
       before: function before () {
-        if (vm._isMounted) {
+        if (vm._isMounted && !vm._isDestroyed) {
           callHook(vm, 'beforeUpdate');
           callHook(vm, 'beforeUpdate');
         }
         }
       }
       }
@@ -3833,9 +3833,10 @@
         ret[i] = render(val[key], key, i);
         ret[i] = render(val[key], key, i);
       }
       }
     }
     }
-    if (isDef(ret)) {
-      (ret)._isVList = true;
+    if (!isDef(ret)) {
+      ret = [];
     }
     }
+    (ret)._isVList = true;
     return ret
     return ret
   }
   }
 
 
@@ -5170,7 +5171,7 @@
     value: FunctionalRenderContext
     value: FunctionalRenderContext
   });
   });
 
 
-  Vue.version = '2.5.20';
+  Vue.version = '2.5.21';
 
 
   /*  */
   /*  */
 
 
@@ -6826,7 +6827,7 @@
 
 
     el.model = {
     el.model = {
       value: ("(" + value + ")"),
       value: ("(" + value + ")"),
-      expression: ("\"" + value + "\""),
+      expression: JSON.stringify(value),
       callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
       callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     };
     };
   }
   }
@@ -9441,7 +9442,7 @@
           var parent = el.parent;
           var parent = el.parent;
           if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
             warn$2(
             warn$2(
-              "Do not use v-for index as key on <transtion-group> children, " +
+              "Do not use v-for index as key on <transition-group> children, " +
               "this is the same as not using keys."
               "this is the same as not using keys."
             );
             );
           }
           }
@@ -10553,7 +10554,9 @@
         el$1.tag !== 'template' &&
         el$1.tag !== 'template' &&
         el$1.tag !== 'slot'
         el$1.tag !== 'slot'
       ) {
       ) {
-        var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+        var normalizationType = checkSkip
+          ? state.maybeComponent(el$1) ? ",1" : ",0"
+          : "";
         return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
         return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       }
       }
       var normalizationType$1 = checkSkip
       var normalizationType$1 = checkSkip

Plik diff jest za duży
+ 1 - 1
dist/vue.min.js


+ 6 - 5
dist/vue.runtime.common.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * Vue.js v2.5.20
+ * Vue.js v2.5.21
  * (c) 2014-2018 Evan You
  * (c) 2014-2018 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -2894,7 +2894,7 @@ function mountComponent (
   // component's mounted hook), which relies on vm._watcher being already defined
   // component's mounted hook), which relies on vm._watcher being already defined
   new Watcher(vm, updateComponent, noop, {
   new Watcher(vm, updateComponent, noop, {
     before: function before () {
     before: function before () {
-      if (vm._isMounted) {
+      if (vm._isMounted && !vm._isDestroyed) {
         callHook(vm, 'beforeUpdate');
         callHook(vm, 'beforeUpdate');
       }
       }
     }
     }
@@ -3835,9 +3835,10 @@ function renderList (
       ret[i] = render(val[key], key, i);
       ret[i] = render(val[key], key, i);
     }
     }
   }
   }
-  if (isDef(ret)) {
-    (ret)._isVList = true;
+  if (!isDef(ret)) {
+    ret = [];
   }
   }
+  (ret)._isVList = true;
   return ret
   return ret
 }
 }
 
 
@@ -5179,7 +5180,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
   value: FunctionalRenderContext
   value: FunctionalRenderContext
 });
 });
 
 
-Vue.version = '2.5.20';
+Vue.version = '2.5.21';
 
 
 /*  */
 /*  */
 
 

+ 6 - 5
dist/vue.runtime.esm.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * Vue.js v2.5.20
+ * Vue.js v2.5.21
  * (c) 2014-2018 Evan You
  * (c) 2014-2018 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -2892,7 +2892,7 @@ function mountComponent (
   // component's mounted hook), which relies on vm._watcher being already defined
   // component's mounted hook), which relies on vm._watcher being already defined
   new Watcher(vm, updateComponent, noop, {
   new Watcher(vm, updateComponent, noop, {
     before: function before () {
     before: function before () {
-      if (vm._isMounted) {
+      if (vm._isMounted && !vm._isDestroyed) {
         callHook(vm, 'beforeUpdate');
         callHook(vm, 'beforeUpdate');
       }
       }
     }
     }
@@ -3833,9 +3833,10 @@ function renderList (
       ret[i] = render(val[key], key, i);
       ret[i] = render(val[key], key, i);
     }
     }
   }
   }
-  if (isDef(ret)) {
-    (ret)._isVList = true;
+  if (!isDef(ret)) {
+    ret = [];
   }
   }
+  (ret)._isVList = true;
   return ret
   return ret
 }
 }
 
 
@@ -5177,7 +5178,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
   value: FunctionalRenderContext
   value: FunctionalRenderContext
 });
 });
 
 
-Vue.version = '2.5.20';
+Vue.version = '2.5.21';
 
 
 /*  */
 /*  */
 
 

+ 6 - 5
dist/vue.runtime.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * Vue.js v2.5.20
+ * Vue.js v2.5.21
  * (c) 2014-2018 Evan You
  * (c) 2014-2018 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -2890,7 +2890,7 @@
     // component's mounted hook), which relies on vm._watcher being already defined
     // component's mounted hook), which relies on vm._watcher being already defined
     new Watcher(vm, updateComponent, noop, {
     new Watcher(vm, updateComponent, noop, {
       before: function before () {
       before: function before () {
-        if (vm._isMounted) {
+        if (vm._isMounted && !vm._isDestroyed) {
           callHook(vm, 'beforeUpdate');
           callHook(vm, 'beforeUpdate');
         }
         }
       }
       }
@@ -3824,9 +3824,10 @@
         ret[i] = render(val[key], key, i);
         ret[i] = render(val[key], key, i);
       }
       }
     }
     }
-    if (isDef(ret)) {
-      (ret)._isVList = true;
+    if (!isDef(ret)) {
+      ret = [];
     }
     }
+    (ret)._isVList = true;
     return ret
     return ret
   }
   }
 
 
@@ -5161,7 +5162,7 @@
     value: FunctionalRenderContext
     value: FunctionalRenderContext
   });
   });
 
 
-  Vue.version = '2.5.20';
+  Vue.version = '2.5.21';
 
 
   /*  */
   /*  */
 
 

Plik diff jest za duży
+ 1 - 1
dist/vue.runtime.min.js


+ 8 - 5
packages/vue-server-renderer/basic.js

@@ -3467,7 +3467,7 @@
 
 
     el.model = {
     el.model = {
       value: ("(" + value + ")"),
       value: ("(" + value + ")"),
-      expression: ("\"" + value + "\""),
+      expression: JSON.stringify(value),
       callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
       callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     };
     };
   }
   }
@@ -3909,7 +3909,7 @@
           var parent = el.parent;
           var parent = el.parent;
           if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
             warn$1(
             warn$1(
-              "Do not use v-for index as key on <transtion-group> children, " +
+              "Do not use v-for index as key on <transition-group> children, " +
               "this is the same as not using keys."
               "this is the same as not using keys."
             );
             );
           }
           }
@@ -5058,7 +5058,9 @@
         el$1.tag !== 'template' &&
         el$1.tag !== 'template' &&
         el$1.tag !== 'slot'
         el$1.tag !== 'slot'
       ) {
       ) {
-        var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+        var normalizationType = checkSkip
+          ? state.maybeComponent(el$1) ? ",1" : ",0"
+          : "";
         return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
         return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       }
       }
       var normalizationType$1 = checkSkip
       var normalizationType$1 = checkSkip
@@ -6884,9 +6886,10 @@
         ret[i] = render(val[key], key, i);
         ret[i] = render(val[key], key, i);
       }
       }
     }
     }
-    if (isDef(ret)) {
-      (ret)._isVList = true;
+    if (!isDef(ret)) {
+      ret = [];
     }
     }
+    (ret)._isVList = true;
     return ret
     return ret
   }
   }
 
 

+ 8 - 5
packages/vue-server-renderer/build.js

@@ -3228,7 +3228,7 @@ function genComponentModel (
 
 
   el.model = {
   el.model = {
     value: ("(" + value + ")"),
     value: ("(" + value + ")"),
-    expression: ("\"" + value + "\""),
+    expression: JSON.stringify(value),
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
   };
   };
 }
 }
@@ -3670,7 +3670,7 @@ function processKey (el) {
         var parent = el.parent;
         var parent = el.parent;
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           warn$1(
           warn$1(
-            "Do not use v-for index as key on <transtion-group> children, " +
+            "Do not use v-for index as key on <transition-group> children, " +
             "this is the same as not using keys."
             "this is the same as not using keys."
           );
           );
         }
         }
@@ -4824,7 +4824,9 @@ function genChildren (
       el$1.tag !== 'template' &&
       el$1.tag !== 'template' &&
       el$1.tag !== 'slot'
       el$1.tag !== 'slot'
     ) {
     ) {
-      var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+      var normalizationType = checkSkip
+        ? state.maybeComponent(el$1) ? ",1" : ",0"
+        : "";
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
     }
     }
     var normalizationType$1 = checkSkip
     var normalizationType$1 = checkSkip
@@ -6656,9 +6658,10 @@ function renderList (
       ret[i] = render(val[key], key, i);
       ret[i] = render(val[key], key, i);
     }
     }
   }
   }
-  if (isDef(ret)) {
-    (ret)._isVList = true;
+  if (!isDef(ret)) {
+    ret = [];
   }
   }
+  (ret)._isVList = true;
   return ret
   return ret
 }
 }
 
 

+ 1 - 1
packages/vue-server-renderer/package.json

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

+ 5 - 3
packages/vue-template-compiler/browser.js

@@ -2464,7 +2464,7 @@
 
 
     el.model = {
     el.model = {
       value: ("(" + value + ")"),
       value: ("(" + value + ")"),
-      expression: ("\"" + value + "\""),
+      expression: JSON.stringify(value),
       callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
       callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     };
     };
   }
   }
@@ -2906,7 +2906,7 @@
           var parent = el.parent;
           var parent = el.parent;
           if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
             warn$1(
             warn$1(
-              "Do not use v-for index as key on <transtion-group> children, " +
+              "Do not use v-for index as key on <transition-group> children, " +
               "this is the same as not using keys."
               "this is the same as not using keys."
             );
             );
           }
           }
@@ -4182,7 +4182,9 @@
         el$1.tag !== 'template' &&
         el$1.tag !== 'template' &&
         el$1.tag !== 'slot'
         el$1.tag !== 'slot'
       ) {
       ) {
-        var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+        var normalizationType = checkSkip
+          ? state.maybeComponent(el$1) ? ",1" : ",0"
+          : "";
         return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
         return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       }
       }
       var normalizationType$1 = checkSkip
       var normalizationType$1 = checkSkip

+ 5 - 3
packages/vue-template-compiler/build.js

@@ -2084,7 +2084,7 @@ function genComponentModel (
 
 
   el.model = {
   el.model = {
     value: ("(" + value + ")"),
     value: ("(" + value + ")"),
-    expression: ("\"" + value + "\""),
+    expression: JSON.stringify(value),
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
     callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
   };
   };
 }
 }
@@ -2526,7 +2526,7 @@ function processKey (el) {
         var parent = el.parent;
         var parent = el.parent;
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
         if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
           warn$1(
           warn$1(
-            "Do not use v-for index as key on <transtion-group> children, " +
+            "Do not use v-for index as key on <transition-group> children, " +
             "this is the same as not using keys."
             "this is the same as not using keys."
           );
           );
         }
         }
@@ -3814,7 +3814,9 @@ function genChildren (
       el$1.tag !== 'template' &&
       el$1.tag !== 'template' &&
       el$1.tag !== 'slot'
       el$1.tag !== 'slot'
     ) {
     ) {
-      var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : "";
+      var normalizationType = checkSkip
+        ? state.maybeComponent(el$1) ? ",1" : ",0"
+        : "";
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
       return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
     }
     }
     var normalizationType$1 = checkSkip
     var normalizationType$1 = checkSkip

+ 1 - 1
packages/vue-template-compiler/package.json

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

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików