Skip to content

Releases: Sage/streamlinejs

v0.10.1

21 Sep 16:58
Compare
Choose a tag to compare

No new features but bug fixes on 0.10.0

#133: register extensions before starting the REPL
#168, #171 and #172: callbacks getting called twice
#174: compiled flows._js
#175: compilation fails with sourcemap if file does not contain async calls
#177: client side examples and unit tests broken by recent changes

I strongly recommend upgrading to 0.10.1 because it fixes an important bug introduced by 0.10.0 (callbacks getting called twice). You should also upgrade if you used the master branch between 0.10.0 and 0.10.1 because some unit tests were broken and only fixed by #177

v0.10.0

21 Sep 16:59
Compare
Choose a tag to compare

WARNING: The "futures" syntax has changed!!! You can activate the old syntax with the --old-style-futures option. See issue #164 for details.

#111 Support non empty case clause that flows into next clause
#115 Compile to JS without further dependencies
#133 Streamline REPL!
#164 Enforce explicit syntax for futures
#165 Support options to require 'streamline/register' via opts file
#166 New source map options: --map
#168 Bug: callback gets called twice on error in callbacks mode
#169 command.getOptions() API (for coffeeCoverage)
#170 Bug: fibers mode not preserving line numbers when invoking non-streamline functions, if the call spans multiple lines

I did not much have time to test the last features (REPL, --standalone option) but please try them out and submit issues. I'll release a 0.10.1 with bug fixes.

v0.8.1

21 Sep 17:00
Compare
Choose a tag to compare

#157: fixed generators mode for CoffeeScript
#158: _node did not work on linux because of --harmony flag
#159: this incorrectly set in fibers-fast futures
#160: performance problem with array functions in fibers modes.
#161: --version command line option (Seth Pollack)

v0.8.0

21 Sep 17:01
Compare
Choose a tag to compare

I just created a new stable branch and published 0.8.0 to NPM.

List is not very long but there are some nice features:

  • sourcemap support (special thanks to Geoffry Song)
  • fast mode (see https://github.com/Sage/streamlinejs/wiki/Fast-mode)
  • [_] syntax to handle callbacks with multiple results (see README).
  • cacheDir option to configure location of cache directory
  • warning on modules that contain top-level async calls (only active in verbose mode)

I moved a few modules to separate packages:

  • streams wrappers -> streamline-streams
  • doctool utility -> streamline-doctool

I also did a bit of cleanup and removed some obsolete features:

  • the require('streamline/module')(module) hack to enable streamline in *.js files
  • the *_.js syntax for streamline source files.
    In short, you have to switch to the *._js and *._coffee extensions if you were using older ways to activate streamline on *.js files.

v0.6.0

21 Sep 17:02
Compare
Choose a tag to compare

This is the beginning of a new stable branch. I reviewed all the diffs between the v0.4 branch and master and I merged all the fixes from both into 0.6.0.

I moved the "futures timeout and cancellation API" experiment to a separate branch. So all the experimental features (*) are now in feature branches and the master is aligned on 0.6.0 (except for the version number which is bumped to 0.7.0 in the master). There is no guarantee that any of these experiments will ever get published in a stable version.

(*) except for the --generators option that I am now including by default because it passes all unit tests and seems pretty solid.

This version fixes some recently reported issues:

#149 streamline-express broken with fibers; works with callbacks (Brian Downing)
#148 _getEncoding() should be less aggressive in returning utf8 (Anurag Biyani)
#147 Support harmony generators
#146 Different behavior with and without fibers, at least in mocha (Brian Downing)

I have also done some cleanup and debugging on the stacktrace feature. In callbacks and generators modes, the stack string now contains both the reconstructed stack and the raw stack and they are clearly delimited. In fibers mode, I fixed a bug which caused incomplete stacktrace when execeptions were thrown from futures. The "stack-test" unit tests now pass in the 3 modes.

0.4.5

21 Sep 17:03
Compare
Choose a tag to compare

Two bug fixes:

#122: problem with sync try/catch inside another construct
#123: version check was broken in cache logic

0.4.4

21 Sep 17:04
Compare
Choose a tag to compare

Two bug fixes:

#118: exceptions thrown by init script did not reach unhandledException handler
#120: fully sync try/catch incorrectly transformed in async context

0.4.3

21 Sep 17:04
Compare
Choose a tag to compare

Just one bug fix:

#116: regression in last chance exception handler. Some code could be executed twice after an unhandled exception.

v0.4.2

21 Sep 17:05
Compare
Choose a tag to compare

Two minor bug fixes only:

#113: line numbers are incorrect if source contains multiline string: #113
#114: _node gives wrong line numbers in stack traces

Workaround for #114 was to run _node with -lp option.

Note: the tutorial is in the master branch but not in the 0.4 branch.

0.4.1

21 Sep 17:07
Compare
Choose a tag to compare

Just 2 small fixes:

#109: callback transform was not rejecting invalid use of _
#112: node 0.8.0 compatibility: use fs.exists instead of path.exists