Comparing version 2.0.0 to 2.0.1
@@ -0,8 +1,18 @@ | ||
## v2.0.1 - February 10, 2014 | ||
- Upgrade from `esprima-harmony` to `esprima-fb` v10001.1.0 (#343) | ||
- Fix multiple unary operators not being spaced properly (eg: `a - - - b`) (#339) | ||
- Fix nesting minus operators (eg: `a - (b - c)`) (#347) | ||
- Fix nesting ternary operators (eg: `a ? (b ? c : d) e`) (#345) | ||
## v2.0.0 - February 2, 2014 | ||
Full rewrite that features the Esprima parser. Check the [migration | ||
guide](notes/Migration_guide.md) for information on what's changed from v0 to | ||
v2.0. | ||
Full rewrite that features the Esprima parser. This release resolves a lot of issues, | ||
a lot of which are tracked with the ["fixed in 2.0"][fixed] label. | ||
Check the [migration guide](notes/Migration_guide.md) for information on what's | ||
changed from v0 to v2.0. | ||
[fixed]: https://github.com/js2coffee/js2coffee/issues?q=label%3A%22fixed+in+2.0%22+is%3Aclosed | ||
---- | ||
@@ -9,0 +19,0 @@ |
@@ -1,12 +0,56 @@ | ||
## Builds | ||
## Setting up a local instance | ||
Browserify builds (`dist/js2coffee.js`) are invoked via `npm prepublish`. | ||
All you need is Node.js. | ||
## Tests | ||
```sh | ||
git clone https://github.com/js2coffee/js2coffee | ||
cd js2coffee | ||
npm install | ||
``` | ||
Tests are still plain files (text files in `specs/*`) but invoked with a Mocha | ||
test runner. | ||
## Running tests | ||
## How it works | ||
Once you start hacking, periodically run tests. | ||
npm test | ||
If you want to run pending specs as well: | ||
ALL=1 npm test | ||
If you'd like to isolate a spec, edit the spec file to add `only: true`: | ||
# specs/xxx/yyy.txt | ||
only: true | ||
--- | ||
x() | ||
--- | ||
x() | ||
## Building distribution | ||
The file `dist/js2coffee.js` is automatically built. Use `make` to build it. | ||
make | ||
It is also ran as a pre-publish hook. | ||
## New versions | ||
vim History.md | ||
bump *.json Readme.md | ||
npm publish && git release v0.1.2 | ||
## References | ||
- [Esprima docs] | ||
- [Parser API spec] | ||
- [Esprima demo] | ||
[Esprima docs]: http://esprima.org/doc/index.html#ast | ||
[Parser API spec]: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API | ||
[Esprima demo]: http://esprima.org/demo/parse.html# | ||
# How it works | ||
Check out comments in `js2coffee.js` for an overiew. | ||
@@ -13,0 +57,0 @@ |
{ | ||
"name": "js2coffee", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "JavaScript to CoffeeScript compiler", | ||
@@ -33,3 +33,3 @@ "homepage": "http://js2.coffee", | ||
"escodegen": "^1.6.0", | ||
"esprima-harmony": "^7001.1.0-dev-harmony-fb", | ||
"esprima-fb": "^10001.1.0-dev-harmony-fb", | ||
"estraverse": "^1.9.1", | ||
@@ -36,0 +36,0 @@ "minimist": "^1.1.0", |
@@ -5,7 +5,10 @@ # <img src="http://js2.coffee/assets/logo-white.svg" width="250"> | ||
[![](http://js2.coffee/assets/preview.png)](http://js2coffee.github.io/js2coffee-redux) | ||
[![](http://js2.coffee/assets/screenshots/js2coffee.png)](http://js2.coffee) | ||
[![Status](https://travis-ci.org/js2coffee/js2coffee.svg?branch=master)](https://travis-ci.org/js2coffee/js2coffee) | ||
This 2.0 release is a complete rewrite featuring a better parser ([Esprima]). See the [migration guide](notes/Migration_guide.md) for instructions on how to update from 0.x. | ||
This 2.0 release is a complete rewrite featuring a better parser ([Esprima]). | ||
See **[what's new in 2.0](notes/New_in_2.0.md)** for an overview of new features | ||
and consult the [migration guide](notes/Migration_guide.md) for info on | ||
updating from 0.x. | ||
@@ -27,3 +30,3 @@ <br> | ||
> [](#version) `http://cdn.rawgit.com/js2coffee/js2coffee/v2.0.0/dist/js2coffee.js` | ||
> [](#version) `http://cdn.rawgit.com/js2coffee/js2coffee/v2.0.1/dist/js2coffee.js` | ||
@@ -37,4 +40,4 @@ <br> | ||
```sh | ||
$ js2c file.js [file2.js ...] | ||
$ cat file.js | js2c | ||
$ js2coffee file.js [file2.js ...] | ||
$ cat file.js | js2coffee | ||
``` | ||
@@ -86,6 +89,4 @@ | ||
- [Goals](notes/Goals.md) - outline of the project's goals. | ||
- [Hacking guide](notes/Hacking.md) - want to contribute? here are tips to get you started. | ||
- [Specs](notes/Specs.md) - examples of how JavaScript compiles to CoffeeScript. | ||
- [AST format](notes/AST.md) - technical description of the CoffeeScript AST format. | ||
@@ -95,2 +96,8 @@ | ||
- [Compatibility mode](notes/Special_cases.md#compatibilitymode) - list of tweaks that compatibility mode (`--compat`) addresses. | ||
- [Goals](notes/Goals.md) - outline of the project's goals. | ||
- [Specs](notes/Specs.md) - examples of how JavaScript compiles to CoffeeScript. | ||
<br> | ||
@@ -116,2 +123,1 @@ | ||
[Esprima]: http://esprima.org/ | ||
[js2coffee/js2coffee]: https://github.com/js2coffee/js2coffee |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
552984
366
972
118
0
+ Addedesprima-fb@10001.1.0-dev-harmony-fb(transitive)
- Removedesprima-harmony@7001.1.0-dev-harmony-fb(transitive)