YUICompressor 2.4.8 Released

By Joey SmithMay 16th, 2013

We are pleased to announce the the immediate availability of version 2.4.8 of YUICompressor. The first YUICompressor release to come forward since the project moved to the new Contributor Model, 2.4.8 includes a number of improvements submitted by members of the YUICompressor community.

Special Thanks

In addition to the community at large, special thanks goes out to following individuals for sticking with us during this period of transition and shepherding their pull requests through the new process: @danbeam (Dan Beam), @faisalman (Faisal Salman), @killsaw (Steven Bredenberg), @ademey (Andrew Demey), @sbertrang (Simon Bertrang), @danielbeardsley (Daniel Beardsley), @bmouw, @bandesz, @ryansully (Ryan Sullivan), @apm (Adam Moore), @nlalevee (Nicolas Lalevée), and @tml (Joey Smith).

Changes

  • Fixes for “important” and conditional comment processing
  • Fixes a bug in the support for JS 1.7 style getters/setters
  • Better compliance and improved compression in CSS results
  • Many improvements to parameter parsing and batch mode

Join the YUICompressor Community

As we continue to expand our adoption of the new Contributor Model, we invite any who are interested in the progress of YUICompressor to join us on the mailing list, file issues or PRs on the GitHub repo, or just help us spread the word: YUICompressor lives!

If you know of systems that have integrated YUICompressor into their projects or codebases, please drop us a line or add a comment here so we can help push new versions of YUICompressor deeper into the community.

Release Links

14 Comments

  1. Is it possible to use this version inside maven?

  2. Joey Smith said:
    May 17, 2013 at 7:15 am

    I wasn’t even aware previous versions were listed in maven until now; I’ve started to process of filing a ticket with Sonatype OSSRH. Thanks for pointing it out, Marc!

  3. [...] YUICompressor 2.4.8 Released – Joey Smith announces the latest release of the YUICompressor, and the first since they shifted to a contributor model. As a result this release contains contributions from over 10 individuals, and includes updates to both CSS and JavaScript minification [...]

  4. Nice to see the YUI Compressor community stepping up!

  5. Lots of problems…

    1)Download link from yuicompressor page at http://yui.github.io/yuicompressor/ does not bring you to a location where tool can be downloaded from. Search found this page…

    2)Trying to use new version fails with:

    “no main manifest attribute, in yuicompressor-2.4.8.jar”
    where old version used to work just fine. Running it using:
    java -jar yuicompressor-2.4.8.jar fileName.css -o fileName.min.css

  6. Joey Smith said:
    May 31, 2013 at 2:38 pm

    sl: Thanks for your input!

    1) Yes, this issue has been filed via github and I’m getting it fixed;

    2) The version of ant I had on my machine appears to have let me down – I’ve fixed the JAR and pushed the new version to the URL linked to in this post; there are no differences from the tagged release, it was just built with a newer version of ant (I double checked the generated MANIFEST.MF file this time and it now has the correct “Main-Class” entry.)

  7. New version 2.4.8 fails to parse Windows filename in quotes correctly. 2.4.7 works fine. Eg, command java -jar yuicompressor-2.4.8.jar “d:\work\common_source.js” –charset utf-8 –disableoptimizations -v -o “d:\work\common.js” gives error java.io.FileNotFoundException: workcommon.js:\work\coomon_source.js (The filename, directory name, or volume label syntax is incorrect). Unfortunately, this renders it entirely unusable.

  8. Kevin: Thanks for your feedback – this issue is known and has an open ticket on our Github page (https://github.com/yui/yuicompressor/issues/78) – I think we have the issue identified, if you’d be willing to help us test a pre-release we could use the assistance. Just drop by our mailing list (https://groups.google.com/forum/?fromgroups=#!forum/yuicompressor) and let us know.

  9. Kevin: Thanks for the feedback; this is a known issue with a proposed patch already queued up at our Github issues page. I don’t use Windows much myself, so if you’d be welling to test future releases on the Windows platform, please join us on the mailing list!

  10. Sorry for typo when typing the above post, …coomon… should read …common… – the command that failed was typed correctly with no spelling error. I have since investigated and the issue that causes the errors isn’t the quotes or the slashes, it is the presence of a Windows drive spec, d:. It is that which the file name parsing fails to cope with. Hope that helps to resolve. Also, sorry for posting here rather than at Github but, when I clicked the link (supposedly) to it on the YUI pages, it just gave a 404 error, so no way of getting there!

  11. Any progress on getting this version into maven?

  12. We would really like to have 2.4.8 available in the maven central repo. I see that this has already been requested, but… if this is an issue for some reason, please let me know and I’m sure I can find someone to help. Thanks.

  13. Also, are you considering/planning on a port to Nashorn on JDK8? I have no idea how much work this would be, but it would really be useful, not to mention smaller :-).

  14. Bryan: There is not currently a pom.xml file for YUICompressor, and creating one has not been a high priority for me. I would love to see a PR to the github repo that would allow us to publish the project in Maven!

    I have not given any thought to Nashorn, but will take a look at how it might be useful. I expect it would require a pretty large refit of the internals, given the tight coupling we have to Rhino today, but am not completely closed to the idea.

    Thanks for your input!

Leave a Comment