瀏覽代碼

[build] 2.3.0

Evan You 9 年之前
父節點
當前提交
87b0d5d5a4

+ 8 - 3
dist/vue.common.js

@@ -1,5 +1,5 @@
 /*!
- * Vue.js v2.3.0-beta.1
+ * Vue.js v2.3.0
  * (c) 2014-2017 Evan You
  * Released under the MIT License.
  */
@@ -4384,7 +4384,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
   get: isServerRendering
 });
 
-Vue$3.version = '2.3.0-beta.1';
+Vue$3.version = '2.3.0';
 
 /*  */
 
@@ -8170,7 +8170,7 @@ function parse (
       }
       var children = currentParent.children;
       text = inPre || text.trim()
-        ? decodeHTMLCached(text)
+        ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
         // only preserve whitespace if its not right after a starting tag
         : preserveWhitespace && children.length ? ' ' : '';
       if (text) {
@@ -8462,6 +8462,11 @@ function makeAttrsMap (attrs) {
   return map
 }
 
+// for script (e.g. type="x/template") or style, do not decode content
+function isTextTag (el) {
+  return el.tag === 'script' || el.tag === 'style'
+}
+
 function isForbiddenTag (el) {
   return (
     el.tag === 'style' ||

+ 8 - 3
dist/vue.esm.js

@@ -1,5 +1,5 @@
 /*!
- * Vue.js v2.3.0-beta.1
+ * Vue.js v2.3.0
  * (c) 2014-2017 Evan You
  * Released under the MIT License.
  */
@@ -4382,7 +4382,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
   get: isServerRendering
 });
 
-Vue$3.version = '2.3.0-beta.1';
+Vue$3.version = '2.3.0';
 
 /*  */
 
@@ -8168,7 +8168,7 @@ function parse (
       }
       var children = currentParent.children;
       text = inPre || text.trim()
-        ? decodeHTMLCached(text)
+        ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
         // only preserve whitespace if its not right after a starting tag
         : preserveWhitespace && children.length ? ' ' : '';
       if (text) {
@@ -8460,6 +8460,11 @@ function makeAttrsMap (attrs) {
   return map
 }
 
+// for script (e.g. type="x/template") or style, do not decode content
+function isTextTag (el) {
+  return el.tag === 'script' || el.tag === 'style'
+}
+
 function isForbiddenTag (el) {
   return (
     el.tag === 'style' ||

+ 8 - 3
dist/vue.js

@@ -1,5 +1,5 @@
 /*!
- * Vue.js v2.3.0-beta.1
+ * Vue.js v2.3.0
  * (c) 2014-2017 Evan You
  * Released under the MIT License.
  */
@@ -4376,7 +4376,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
   get: isServerRendering
 });
 
-Vue$3.version = '2.3.0-beta.1';
+Vue$3.version = '2.3.0';
 
 /*  */
 
@@ -8162,7 +8162,7 @@ function parse (
       }
       var children = currentParent.children;
       text = inPre || text.trim()
-        ? decodeHTMLCached(text)
+        ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
         // only preserve whitespace if its not right after a starting tag
         : preserveWhitespace && children.length ? ' ' : '';
       if (text) {
@@ -8454,6 +8454,11 @@ function makeAttrsMap (attrs) {
   return map
 }
 
+// for script (e.g. type="x/template") or style, do not decode content
+function isTextTag (el) {
+  return el.tag === 'script' || el.tag === 'style'
+}
+
 function isForbiddenTag (el) {
   return (
     el.tag === 'style' ||

File diff suppressed because it is too large
+ 1 - 1
dist/vue.min.js


+ 2 - 2
dist/vue.runtime.common.js

@@ -1,5 +1,5 @@
 /*!
- * Vue.js v2.3.0-beta.1
+ * Vue.js v2.3.0
  * (c) 2014-2017 Evan You
  * Released under the MIT License.
  */
@@ -4380,7 +4380,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
   get: isServerRendering
 });
 
-Vue$3.version = '2.3.0-beta.1';
+Vue$3.version = '2.3.0';
 
 /*  */
 

+ 2 - 2
dist/vue.runtime.esm.js

@@ -1,5 +1,5 @@
 /*!
- * Vue.js v2.3.0-beta.1
+ * Vue.js v2.3.0
  * (c) 2014-2017 Evan You
  * Released under the MIT License.
  */
@@ -4378,7 +4378,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
   get: isServerRendering
 });
 
-Vue$3.version = '2.3.0-beta.1';
+Vue$3.version = '2.3.0';
 
 /*  */
 

+ 2 - 2
dist/vue.runtime.js

@@ -1,5 +1,5 @@
 /*!
- * Vue.js v2.3.0-beta.1
+ * Vue.js v2.3.0
  * (c) 2014-2017 Evan You
  * Released under the MIT License.
  */
@@ -4372,7 +4372,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
   get: isServerRendering
 });
 
-Vue$3.version = '2.3.0-beta.1';
+Vue$3.version = '2.3.0';
 
 /*  */
 

File diff suppressed because it is too large
+ 1 - 1
dist/vue.runtime.min.js


+ 6 - 1
packages/vue-server-renderer/build.js

@@ -3156,7 +3156,7 @@ function parse (
       }
       var children = currentParent.children;
       text = inPre || text.trim()
-        ? decodeHTMLCached(text)
+        ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
         // only preserve whitespace if its not right after a starting tag
         : preserveWhitespace && children.length ? ' ' : '';
       if (text) {
@@ -3448,6 +3448,11 @@ function makeAttrsMap (attrs) {
   return map
 }
 
+// for script (e.g. type="x/template") or style, do not decode content
+function isTextTag (el) {
+  return el.tag === 'script' || el.tag === 'style'
+}
+
 function isForbiddenTag (el) {
   return (
     el.tag === 'style' ||

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

@@ -1,6 +1,6 @@
 {
   "name": "vue-server-renderer",
-  "version": "2.3.0-beta.1",
+  "version": "2.3.0",
   "description": "server renderer for Vue 2.0",
   "main": "index.js",
   "repository": {

+ 6 - 1
packages/vue-template-compiler/build.js

@@ -1638,7 +1638,7 @@ function parse (
       }
       var children = currentParent.children;
       text = inPre || text.trim()
-        ? decodeHTMLCached(text)
+        ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
         // only preserve whitespace if its not right after a starting tag
         : preserveWhitespace && children.length ? ' ' : '';
       if (text) {
@@ -1930,6 +1930,11 @@ function makeAttrsMap (attrs) {
   return map
 }
 
+// for script (e.g. type="x/template") or style, do not decode content
+function isTextTag (el) {
+  return el.tag === 'script' || el.tag === 'style'
+}
+
 function isForbiddenTag (el) {
   return (
     el.tag === 'style' ||

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

@@ -1,6 +1,6 @@
 {
   "name": "vue-template-compiler",
-  "version": "2.3.0-beta.1",
+  "version": "2.3.0",
   "description": "template compiler for Vue 2.0",
   "main": "index.js",
   "repository": {

File diff suppressed because it is too large
+ 669 - 399
packages/weex-template-compiler/build.js


File diff suppressed because it is too large
+ 496 - 195
packages/weex-vue-framework/factory.js


Some files were not shown because too many files changed in this diff