Skip to content

Commit 8ec10fa

Browse files
committed
1.12.6 changelog; update NPM module in documentation to be coffeescript instead of coffee-script; update installation to add note about global vs local coffee command
1 parent d0288c7 commit 8ec10fa

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ CoffeeScript is a little language that compiles into JavaScript.
2222

2323
## Installation
2424

25-
If you have the node package manager, npm, installed:
25+
Once you have Node.js installed:
2626

2727
```shell
28-
npm install --global coffee-script
28+
npm install --global coffeescript
2929
```
3030

3131
Leave off the `--global` if you don’t wish to install globally.

documentation/examples/modules.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'local-file.coffee'
2-
import 'coffee-script'
2+
import 'coffeescript'
33

44
import _ from 'underscore'
55
import * as underscore from 'underscore'

documentation/sections/changelog.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
## Change Log
22

3+
```
4+
releaseHeader('2017-05-15', '1.12.6', '1.12.5')
5+
```
6+
7+
* The `return` and `export` keywords can now accept implicit objects (defined by indentation, without needing braces).
8+
* Support Unicode code point escapes (e.g. `\u{1F4A9}`).
9+
* The `coffee` command now first looks to see if CoffeeScript is installed under `node_modules` in the current folder, and executes the `coffee` binary there if so; or otherwise it runs the globally installed one. This allows you to have one version of CoffeeScript installed globally and a different one installed locally for a particular project. (Likewise for the `cake` command.)
10+
* Bugfixes for chained function calls not closing implicit objects or ternaries.
11+
* Bugfixes for incorrect code generated by the `?` operator within a termary `if` statement.
12+
* Now `cake build:browser` just creates the browser build, without also running tests on it. New task `cake build:browser:full` creates the browser build and then tests it.
13+
* Failing tests now result in a nonzero exit code.
14+
* Fixed a too-permissive “reserved words” test, and fixed a REPL test that was broken in Node < 6.
15+
316
```
417
releaseHeader('2017-04-10', '1.12.5', '1.12.4')
518
```

documentation/sections/installation.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ The command-line version of `coffee` is available as a [Node.js](https://nodejs.
55
To install, first make sure you have a working copy of the latest stable version of [Node.js](https://nodejs.org/). You can then install CoffeeScript globally with [npm](https://www.npmjs.com/):
66

77
```bash
8-
npm install --global coffee-script
8+
npm install --global coffeescript
99
```
1010

11+
This will make the `coffee` and `cake` commands available globally.
12+
1113
When you need CoffeeScript as a dependency of a project, within that project’s folder you can install it locally:
1214

1315
```bash
14-
npm install --save coffee-script
16+
npm install --save coffeescript
1517
```
18+
19+
The `coffee` and `cake` commands will first look in the current folder to see if CoffeeScript is installed locally, and use that version if so. This allows different versions of CoffeeScript to be installed globally and locally.

documentation/sections/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The CoffeeScript compiler goes to great lengths to generate output JavaScript th
77
**Latest Version:** [<%= fullVersion %>](https://github.com/jashkenas/coffeescript/tarball/<%= fullVersion %>)
88

99
```bash
10-
npm install -g coffee-script
10+
npm install -g coffeescript
1111
```
1212

1313
**CoffeeScript 2 is coming!** It adds support for [ES2015 classes](/v2/#classes), [`async`/`await`](/v2/#fat-arrow), and generates JavaScript using ES2015+ syntax. <a href="/v2/">Learn more</a>.</p>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"compiler"
99
],
1010
"author": "Jeremy Ashkenas",
11-
"version": "1.12.5",
11+
"version": "1.12.6",
1212
"license": "MIT",
1313
"engines": {
1414
"node": ">=0.8.0"

0 commit comments

Comments
 (0)