diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 07436031..d2508e3e 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -107,7 +107,7 @@ alert reverse '!tpircseeffoC'

Latest Version: - 0.5.0 + 0.5.1

@@ -152,7 +152,7 @@ alert reverse '!tpircseeffoC' Node.js, 0.1.30 or higher. Then clone the CoffeeScript source repository from GitHub, or download the latest - release: 0.5.0. + release: 0.5.1. To install the CoffeeScript compiler system-wide under /usr/local, open the directory and run:

@@ -744,6 +744,14 @@ coffee --print app/scripts/*.coffee > concatenation.js Change Log

+ +

+ 0.5.1 + Improvements to null soaking with the existential operator, including + soaks on indexed properties. Added conditions to while loops, + so you can use them as filters with when, in the same manner as + comprehensions. +

0.5.0 diff --git a/documentation/js/range_comprehensions.js b/documentation/js/range_comprehensions.js index 767d65e8..55bedd5c 100644 --- a/documentation/js/range_comprehensions.js +++ b/documentation/js/range_comprehensions.js @@ -2,7 +2,7 @@ var _a, _b, _c, _d, _e, countdown, egg_delivery, num; countdown = (function() { _a = []; _d = 10; _e = 1; - for (_c=0, num=_d; (_d <= _e ? num <= _e : num >= _e); (_d <= _e ? num += 1 : num -= 1), _c++) { + for (_c = 0, num=_d; (_d <= _e ? num <= _e : num >= _e); (_d <= _e ? num += 1 : num -= 1), _c++) { _a.push(num); } return _a; @@ -10,7 +10,7 @@ egg_delivery = function egg_delivery() { var _f, _g, _h, _i, _j, dozen_eggs, i; _f = []; _i = 0; _j = eggs.length; - for (_h=0, i=_i; (_i <= _j ? i < _j : i > _j); (_i <= _j ? i += 12 : i -= 12), _h++) { + for (_h = 0, i=_i; (_i <= _j ? i < _j : i > _j); (_i <= _j ? i += 12 : i -= 12), _h++) { _f.push((function() { dozen_eggs = eggs.slice(i, i + 12); return deliver(new egg_carton(dozen)); diff --git a/documentation/js/soaks.js b/documentation/js/soaks.js index 658c5764..8439ef6c 100644 --- a/documentation/js/soaks.js +++ b/documentation/js/soaks.js @@ -1,4 +1,4 @@ (function(){ var _a; - (_a = lottery.draw_winner()) == null ? undefined : _a.address == null ? undefined : _a.address.zipcode; + (_a = lottery.draw_winner()) == undefined ? undefined : _a.address == undefined ? undefined : _a.address.zipcode; })(); \ No newline at end of file diff --git a/index.html b/index.html index 91fd4ecb..d57d72a7 100644 --- a/index.html +++ b/index.html @@ -93,7 +93,7 @@ alert reverse '!tpircseeffoC'

Latest Version: - 0.5.0 + 0.5.1

@@ -249,7 +249,7 @@ cubed_list = (function() { Node.js, 0.1.30 or higher. Then clone the CoffeeScript source repository from GitHub, or download the latest - release: 0.5.0. + release: 0.5.1. To install the CoffeeScript compiler system-wide under /usr/local, open the directory and run:

@@ -854,7 +854,7 @@ _d = asteroids;
var _a, _b, _c, _d, _e, countdown, egg_delivery, num;
 countdown = (function() {
   _a = []; _d = 10; _e = 1;
-  for (_c=0, num=_d; (_d <= _e ? num <= _e : num >= _e); (_d <= _e ? num += 1 : num -= 1), _c++) {
+  for (_c = 0, num=_d; (_d <= _e ? num <= _e : num >= _e); (_d <= _e ? num += 1 : num -= 1), _c++) {
     _a.push(num);
   }
   return _a;
@@ -862,7 +862,7 @@ countdown = (function(
 egg_delivery = function egg_delivery() {
   var _f, _g, _h, _i, _j, dozen_eggs, i;
   _f = []; _i = 0; _j = eggs.length;
-  for (_h=0, i=_i; (_i <= _j ? i < _j : i > _j); (_i <= _j ? i += 12 : i -= 12), _h++) {
+  for (_h = 0, i=_i; (_i <= _j ? i < _j : i > _j); (_i <= _j ? i += 12 : i -= 12), _h++) {
     _f.push((function() {
       dozen_eggs = eggs.slice(i, i + 12);
       return deliver(new egg_carton(dozen));
@@ -873,7 +873,7 @@ egg_delivery = function

+ +

+ 0.5.1 + Improvements to null soaking with the existential operator, including + soaks on indexed properties. Added conditions to while loops, + so you can use them as filters with when, in the same manner as + comprehensions. +

0.5.0 diff --git a/lib/coffee-script.js b/lib/coffee-script.js index 5d4ad07e..098d3b72 100644 --- a/lib/coffee-script.js +++ b/lib/coffee-script.js @@ -32,7 +32,7 @@ return this.pos; } }; - exports.VERSION = '0.5.0'; + exports.VERSION = '0.5.1'; // Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler. exports.compile = function compile(code, options) { return (parser.parse(lexer.tokenize(code))).compile(options); diff --git a/package.json b/package.json index e5c8c289..ff1f6408 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,5 @@ "description": "Unfancy JavaScript", "keywords": ["javascript", "language"], "author": "Jeremy Ashkenas", - "version": "0.5.0" + "version": "0.5.1" } diff --git a/src/coffee-script.coffee b/src/coffee-script.coffee index 6b42be31..36500bec 100644 --- a/src/coffee-script.coffee +++ b/src/coffee-script.coffee @@ -24,7 +24,7 @@ parser.lexer: { showPosition: -> @pos } -exports.VERSION: '0.5.0' +exports.VERSION: '0.5.1' # Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler. exports.compile: (code, options) ->