Skip to content

Commit 92f69b2

Browse files
Release 2.4.1 (#5195)
* Fix #5133: Document that braces are required for object shorthand. * Changelog for 2.4.1 * Update output
1 parent 7422244 commit 92f69b2

File tree

26 files changed

+47
-31
lines changed

26 files changed

+47
-31
lines changed

docs/v2/browser-compiler-legacy/coffeescript.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v2/browser-compiler-modern/coffeescript.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v2/index.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@
693693
<section id="introduction">
694694
<p><strong>CoffeeScript is a little language that compiles into JavaScript.</strong> Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.</p>
695695
<p>The golden rule of CoffeeScript is: <em>“It’s just JavaScript.”</em> The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript.</p>
696-
<p><strong>Latest Version:</strong> <a href="https://github.com/jashkenas/coffeescript/tarball/2.4.0">2.4.0</a></p>
696+
<p><strong>Latest Version:</strong> <a href="https://github.com/jashkenas/coffeescript/tarball/2.4.1">2.4.1</a></p>
697697
<blockquote class="uneditable-code-block"><pre><code class="language-bash"><span class="comment"># Install locally for a project:</span>
698698
npm install --save-dev coffeescript
699699

@@ -1399,7 +1399,7 @@ <h2>Objects and Arrays</h2>
13991399
</div>
14001400

14011401
</aside>
1402-
<p>CoffeeScript has a shortcut for creating objects when you want the key to be set with a variable of the same name.</p>
1402+
<p>CoffeeScript has a shortcut for creating objects when you want the key to be set with a variable of the same name. Note that the <code>{</code> and <code>}</code> are required for this shorthand.</p>
14031403
<aside class="code-example container-fluid bg-ribbed-dark" data-example="objects_shorthand">
14041404
<div class="row">
14051405
<div class="col-md-6 coffeescript-input-column">
@@ -4834,7 +4834,7 @@ <h2>Cake, and Cakefiles</h2>
48344834
</section>
48354835
<section id="scripts">
48364836
<h2><code>&quot;text/coffeescript&quot;</code> Script Tags</h2>
4837-
<p>While it’s not recommended for serious use, CoffeeScripts may be included directly within the browser using <code>&lt;script type=&quot;text/coffeescript&quot;&gt;</code> tags. The source includes a compressed and minified version of the compiler (<a href="/v2/browser-compiler-legacy/coffeescript.js">Download current version here, 51k when gzipped</a>) as <code>docs/v2/browser-compiler-legacy/coffeescript.js</code>. Include this file on a page with inline CoffeeScript tags, and it will compile and evaluate them in order.</p>
4837+
<p>While it’s not recommended for serious use, CoffeeScripts may be included directly within the browser using <code>&lt;script type=&quot;text/coffeescript&quot;&gt;</code> tags. The source includes a compressed and minified version of the compiler (<a href="/v2/browser-compiler-legacy/coffeescript.js">Download current version here, 77k when gzipped</a>) as <code>docs/v2/browser-compiler-legacy/coffeescript.js</code>. Include this file on a page with inline CoffeeScript tags, and it will compile and evaluate them in order.</p>
48384838
<p>The usual caveats about CoffeeScript apply — your inline scripts will run within a closure wrapper, so if you want to expose global variables or functions, attach them to the <code>window</code> object.</p>
48394839

48404840
</section>
@@ -4901,7 +4901,7 @@ <h2>Web Chat (IRC)</h2>
49014901
</section>
49024902
<section id="annotated-source">
49034903
<h2>Annotated Source</h2>
4904-
<p>You can browse the CoffeeScript 2.4.0 source in readable, annotated form <a href="annotated-source/">here</a>. You can also jump directly to a particular source file:</p>
4904+
<p>You can browse the CoffeeScript 2.4.1 source in readable, annotated form <a href="annotated-source/">here</a>. You can also jump directly to a particular source file:</p>
49054905
<ul>
49064906
<li><a href="annotated-source/grammar.html">Grammar Rules — src/grammar</a></li>
49074907
<li><a href="annotated-source/lexer.html">Lexing Tokens — src/lexer</a></li>
@@ -5579,6 +5579,14 @@ <h3>Argument parsing and shebang (<code>#!</code>) lines</h3>
55795579
<section id="changelog">
55805580
<h2>Changelog</h2>
55815581

5582+
<section id="2.4.1">
5583+
<h3><a href="https://github.com/jashkenas/coffeescript/compare/2.4.0...2.4.1">2.4.1</a>
5584+
<span class="timestamp"> &mdash; <time datetime="2019-04-08">2019-04-08</time></span>
5585+
</h3><ul>
5586+
<li>Both the <a href="/browser-compiler-legacy/coffeescript.js">traditional ES5</a> and <a href="/browser-compiler-modern/coffeescript.js">modern ES module</a> versions of the CoffeeScript broswer compiler are now published to NPM, enabling the browser compilers’ use via services that provide NPM modules’ code available via public CDN. The traditional version is referenced via the <code>package.json</code> <code>&quot;browser&quot;</code> field, and the ES module version via the <code>&quot;module&quot;</code> field.</li>
5587+
</ul>
5588+
5589+
</section>
55825590
<section id="2.4.0">
55835591
<h3><a href="https://github.com/jashkenas/coffeescript/compare/2.3.2...2.4.0">2.4.0</a>
55845592
<span class="timestamp"> &mdash; <time datetime="2019-03-29">2019-03-29</time></span>

docs/v2/test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12464,7 +12464,7 @@ <h2>Another heading</h2>
1246412464
spawnOptions =
1246512465
cwd: coffeeBinFolder
1246612466
encoding: 'utf8'
12467-
env:
12467+
env: Object.assign {}, process.env,
1246812468
PATH: coffeeBinFolder + (if isWindows() then ';' else ':') + process.env.PATH
1246912469
shell: isWindows()
1247012470

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
```
2+
releaseHeader('2019-04-08', '2.4.1', '2.4.0')
3+
```
4+
5+
* Both the [traditional ES5](/browser-compiler-legacy/coffeescript.js) and [modern ES module](/browser-compiler-modern/coffeescript.js) versions of the CoffeeScript broswer compiler are now published to NPM, enabling the browser compilers’ use via services that provide NPM modules’ code available via public CDN. The traditional version is referenced via the `package.json` `"browser"` field, and the ES module version via the `"module"` field.

documentation/sections/objects_and_arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The CoffeeScript literals for objects and arrays look very similar to their Java
66
codeFor('objects_and_arrays', 'song.join(" … ")')
77
```
88

9-
CoffeeScript has a shortcut for creating objects when you want the key to be set with a variable of the same name.
9+
CoffeeScript has a shortcut for creating objects when you want the key to be set with a variable of the same name. Note that the `{` and `}` are required for this shorthand.
1010

1111
```
1212
codeFor('objects_shorthand')

documentation/site/body.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@
207207
</section>
208208
<section id="changelog">
209209
<%= htmlFor('changelog') %>
210+
<section id="2.4.1">
211+
<%= htmlFor('changelog/2.4.1') %>
212+
</section>
210213
<section id="2.4.0">
211214
<%= htmlFor('changelog/2.4.0') %>
212215
</section>

lib/coffeescript-browser-compiler-legacy/coffeescript.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript-browser-compiler-modern/coffeescript.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coffeescript/browser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)