Skip to content

Releases: Sage/streamlinejs

0.3.7

21 Sep 17:08
Compare
Choose a tag to compare

Bug fixes:

#92: filename missing in compile error message
#93: added registration module for mocha
#96: numeric keys in object initializers
#100: several improvements to coffeescript support (details in #100)
#101: cakefile support
#95: _node not working when node installed with NVM
#97: --fibers option broken with coffeescript

Special thanks to Aseem for his contributions to improve to the CoffeeScript support (#100 and #101).

Unless something bad crept in at the last minute, I'm going to promote this version to 0.4.0. This will be a stable branch. And I'm going to start a 0.5.0 for future features.

0.3.6

21 Sep 17:09
Compare
Choose a tag to compare

Bug fixes:
#77: _node dir looks for dir/index.js if dir/index._js is not found. Same with _coffee. Also, _coffee compiles *.coffee files in addition to *.coffee files.
#83: better error message if HOME env var is not set when using cache option.
#85: unhandled exceptions are rethrown in callback mode, instead of being just logged.
#86: for (;;) failed to transform in fibers mode
#87: Automatic semicolon insertion could lead to incorrect code in fibers mode.
#88: fibers transform did not bail out if foo(
) was inside a sync function (one without _ parameter).
#89: fixed built-in array functions for sparse arrays
#90: switch statements caused havoc in line numbers (callbacks mode)
#91: improved indentation in callback line preserve mode + made line preserve the default.

I also added a third mode (generators). Unfortunately node (V8) does not yet support JavaScript generators but you can play with it in Firefox. Should be pretty robust as it passes all unit tests. I just had to loosen the stack-test because I'm lacking API to generate full stack traces.

I'm planning to be a bit more rigorous with versioning in the future. I'm starting to tag (0.3.6 for this one) and I'm going to be serious about semver. So, unless something is very wrong with this version, I'll promote it to 0.4.0 and I'll create a 0.5 branch for future stuff.

I would like to stop supporting the old file compilation schemes (foo_.js naming convention and maybe also the require('streamline/module') hack) in the 0.5 branch. This will allow me to clean up the register/compile logic which is getting really ugly. Let me know if you have problems with this.

0.2.1

21 Sep 17:11
Compare
Choose a tag to compare

Mostly small bug fixes but the windows version
was a bit broken and should be in better shape now.

  • Repaired the automatic compilation (node foo.js) on windows.
  • Added bin/node-streamline.cmd and bin/coffee-streamline.cmd for
    windows.
  • Fixed a bug with fn.call(obj, _) in fibers mode.
  • Reenabled an optimization in fibers transform that I had left
    disabled by mistake.
  • Improved narcissus to get line numbers on syntax errors.
  • fixed a bug in the streams read method.
  • fixed strict mode for client-side require.
  • fixed docTool on windows.

I'm doing most of my work on mac and with Javascript. So there may
still be some "environmental" issues on windows and coffeescript but
the basics should work now. Don't hesitate to file an issue if you
find something that does not work.