home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / dhtmlxMenu.exe / dhtmlxMenu / libCompiler / yui / yuicompressor-2.3.5 / doc / CHANGELOG next >
Encoding:
Text File  |  2008-07-21  |  8.4 KB  |  194 lines

  1. YUI Compressor 2.3.5, 2008-02-08
  2. --------------------------------
  3.  
  4. + Added a warning when more than one 'var' statement is used in a single scope.
  5.   Automatic coalescence is extremely complicated, and would be unsafe if not
  6.   done properly.
  7.  
  8. YUI Compressor 2.3.4, 2008-02-07
  9. --------------------------------
  10.  
  11. + Expanded the list of reserved words used by isValidIdentifier()
  12.  
  13. YUI Compressor 2.3.3, 2008-02-04
  14. --------------------------------
  15.  
  16. + C-style comments starting with /*! are preserved. This is especially
  17.   useful with comments containing copyright/license information.
  18.  
  19. YUI Compressor 2.3.2, 2008-02-01
  20. --------------------------------
  21.  
  22. + Compressing an empty JS file throws an error [SourceForge bug #1884207]
  23. + When a string is the first token in a function body, it was removed from
  24.   the compressed file [SourceForge bug #1884314]
  25.  
  26. YUI Compressor 2.3.1, 2008-01-30
  27. --------------------------------
  28.  
  29. + Added test against list of reserved words in method isValidIdentifier.
  30.  
  31. YUI Compressor 2.3, 2008-01-28
  32. ------------------------------
  33.  
  34. + Always output a ';' at the end of a minified JavaScript file. This allows
  35.   the concatenating of several minified files without the fear of introducing
  36.   a syntax error.
  37. + Removed all System.exit() statements. Throw exceptions instead. This is
  38.   especially useful when running the compressor from within a J2EE container.
  39.   [SourceForge bug #1834750]
  40. + Transform obj["foo"] into obj.foo whenever possible, saving 3 bytes.
  41. + Transform 'foo': ... into foo: ... whenever possible, saving 2 bytes.
  42. + Added support for multi-line string literals [SourceForge bug #1871453]
  43. + Added support for unescaped slashes inside character classes in regexp.
  44. + Minor performance improvements.
  45. + Preserve the escaping for an octal representation of a character in string
  46.   literals [SourceForge bug #1844894]
  47.  
  48.     var a = '\001';
  49.  
  50. + CSS: Preserve comments that hide CSS rules from IE Mac:
  51.  
  52.     /* Hides from IE-mac \*/
  53.     ...
  54.     /* End hide from IE-mac */
  55.  
  56. + CSS: Added support for box model hack [SourceForge bug #1862107]
  57.  
  58.     div.content {
  59.       width:400px;
  60.       voice-family: "\"}\"";
  61.       voice-family:inherit;
  62.       width:300px;
  63.     }
  64.  
  65. YUI Compressor 2.2.5, 2007-10-09
  66. --------------------------------
  67.  
  68. + Remove line terminator after escape in string literals.
  69.  
  70. YUI Compressor 2.2.4, 2007-10-01
  71. --------------------------------
  72.  
  73. + Fixed the way quote characters are counted in string literals
  74.   [SourceForge bug #1804576]
  75. + Do not use a regular expression using non-greedy matching to remove CSS
  76.   comments (if the comment is more than 800 characters long or so, a stack
  77.   overflow exception gets thrown) Instead, use good old parsing...
  78. + Fix unnecessary quote escaping in string literals.
  79.  
  80. YUI Compressor 2.2.3, 2007-09-28
  81. --------------------------------
  82.  
  83. + Transform </script into <\/script instead of replacing all </ into <\/.
  84. + Fixed bug related to the shortening of hexadecimal color codes (the string
  85.   "1px solid #aabbcc" became "1px solid#abc", missing a required white space)
  86. + Added --preserve-strings option to specify that concatenated string literals
  87.   should never be merged.
  88. + Do not convert \uXXXX and \xXX escape sequences to their unicode equivalent.
  89.  
  90. YUI Compressor 2.2.2, 2007-09-27
  91. --------------------------------
  92.  
  93. + Fixed regression related to the optimization of the amount of escaping
  94.   in string literals and the concatenation of string literals.
  95. + Modified the Rhino tokenizer to handle JScript conditional comments
  96.   natively (instead of hacking around the fact that Rhino is not keeping
  97.   track of comments)
  98. + Transform </ into <\/ in string literals. This is especially useful if the
  99.   code is written to a script block in an HTML document. This renders the old
  100.   hack '<scr'+'ipt ...><'+'/script>' completely useless.
  101. + When converting decimal rgb color values to hexadecimal color values,
  102.   prepend a '0' if the value is less than 16. Otherwise, rgb(0,124,114)
  103.   for instance becomes #07c72, which is incorrect.
  104. + In CSS files, do not change color names into their corresponding color
  105.   codes (and vice-versa) due to the high potential of introducing bugs
  106.   (rolled back from 2.2.1)
  107.  
  108. YUI Compressor 2.2.1, 2007-09-25
  109. --------------------------------
  110.  
  111. + Optimize quote escaping in JavaScript string literals by using the best quote
  112.   character (' or " depending on the occurrence of this character in the string)
  113. + Fixed minor bug in the CSS compressor. Colors should not be shortened in
  114.       filter: chroma(color="#FFFFFF");
  115.   Otherwise, it makes the filter break in Internet Explorer.
  116. + In CSS files, change color names into their corresponding color codes
  117.   (and vice-versa) if that change yields any savings.
  118.  
  119. YUI Compressor 2.2, 2007-09-18
  120. ------------------------------
  121.  
  122. + Don't obfuscate function argument named $super if it is the first function
  123.   argument listed. This is to support Prototype 1.6's heretic implementation.
  124. + Added support for stdin/stdout (see README for more info)
  125. + Shorten colors from rgb(51,102,153) to #336699 in CSS files.
  126. + Shorten values from 0.8em to .8em in CSS files.
  127. + Added support for Internet Explorer's conditional comments in JavaScript
  128.   files. Note that the presence of a conditional comment inside a function
  129.   (i.e. not in the global scope) will reduce the level of compression for the
  130.   same reason  the use of 'eval' or 'with' reduces the level of compression
  131.   (conditional comments, which do not get parsed, may refer to local variables,
  132.   which get obfuscated) In any case, the use of Internet Explorer's conditional
  133.   comment is to be avoided.
  134.  
  135. YUI Compressor 2.1.2, 2007-08-31
  136. --------------------------------
  137.  
  138. + Added --preserve-semi option
  139. + Modified --line-break option
  140.  
  141. YUI Compressor 2.1.1, 2007-08-30
  142. --------------------------------
  143.  
  144. + Fixed missing space in CSS background:url('foo.png')no-repeat
  145.   causing a background not to appear on Internet Explorer.
  146.  
  147. YUI Compressor 2.1, 2007-08-29
  148. ------------------------------
  149.  
  150. + Pass the --line-break option to the CSS compressor.
  151. + Allow the output file to overwrite the input file (with version 2.0,
  152.   in this case, the output file was always empty)
  153. + Remove spaces before and after '(' and ')' as in background:url('xxx');
  154. + Merge (if possible) string literals that are appended in JavaScript files.
  155.   This not only makes the code smaller, it makes the code faster,
  156.   but allows you to maintain some readability in your source code.
  157. + Handle constructs such as a + ++ b or a + + "1" (in which case the
  158.   space between the operators must be kept!) and other similar cases...
  159. + Pass ErrorReporter instance to the constructor of class JavaScriptCompressor
  160.   (as suggested by David Bernard for his integration  of the YUI Compressor
  161.   as a maven plugin)
  162.  
  163. YUI Compressor 2.0, 2007-08-27
  164. ------------------------------
  165.  
  166. + Switched from Rhino 1.6R6 to Rhino 1.6R7
  167. + Integrated Isaac Schlueter's CSS compressor.
  168. + Refactored code to make it easier to use the compressor from a servlet
  169.   environment or another Java app (no need to pass in file names anymore)
  170. + Output a white-space character after 'throw' only when necessary.
  171. + Output a white-space character after 'break' and 'continue' when followed
  172.   by a label.
  173.  
  174. YUI Compressor 1.1, 2007-08-20
  175. ------------------------------
  176.  
  177. + Java source now in package com.yahoo.platform.yui.compressor
  178. + Added --line-break option that adds a line feed character after each
  179.   semi-colon character (may help debugging with the MS Script debugger)
  180. + Added support for missing JavaScript features (get, set, const)
  181. + Do not show the entire stack trace when the input file cannot be found.
  182. + Removed the randomization of obfuscated symbols. When compressed code is
  183.   checked in CVS, unchanged files would otherwise end up being versioned.
  184. + Added web-based front-end to the YUI Compressor as part of the dist package.
  185. + Added a public entry point that makes the YUI Compressor easy to integrate
  186.   with an already existing Java application.
  187. + Simplified code by using the same parsing routines used to build the symbol
  188.   tree while looking for undeclared symbols.
  189. + Count how many times each identifier is used, and display a warning when an
  190.   identifier seems to be unused (code cannot safely be removed automatically)
  191. + Remove ';' when followed by a '}'. This yields an additional ~1.5% savings
  192.   on yahoo-dom-event.js compared to the JSMin version.
  193. + Output a white-space character after 'return' and 'case' only when necessary.
  194.