Skip to content

Commit

Permalink
In BundleTransformer.CoffeeScript added support of the CoffeeScript v…
Browse files Browse the repository at this point in the history
…ersion 2.6.1
  • Loading branch information
Taritsyn committed Oct 8, 2021
1 parent e018240 commit b2e03de
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
<Import Project="../../build/nuget-for-dotnet-lib.props" />

<PropertyGroup>
<Description>BundleTransformer.CoffeeScript contains one translator-adapter - `CoffeeScriptTranslator` (supports the CoffeeScript (http://coffeescript.org) version 2.6.0). This adapter makes translation of CoffeeScript code to JS code. Also contains the `CoffeeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated CoffeeScript asset.
<Description>BundleTransformer.CoffeeScript contains one translator-adapter - `CoffeeScriptTranslator` (supports the CoffeeScript (http://coffeescript.org) version 2.6.1). This adapter makes translation of CoffeeScript code to JS code. Also contains the `CoffeeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated CoffeeScript asset.

As a JS engine is used the JavaScript Engine Switcher library (https://github.com/Taritsyn/JavaScriptEngineSwitcher). For correct working of this module, you need to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie, JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.ChakraCore.</Description>
<PackageIconUrl>https://raw.githubusercontent.com/Taritsyn/BundleTransformer/master/images/icons/128/BundleTransformer_CoffeeScript_Logo_128x128.png</PackageIconUrl>
<PackageIconFullPath>../../images/icons/128/BundleTransformer_CoffeeScript_Logo_128x128.png</PackageIconFullPath>
<PackageTags>$(PackageCommonTags);JavaScript;JS;Bundling;CoffeeScript;Translation;Translator;Compilation;Compiler</PackageTags>
<PackageReleaseNotes>Added support of CoffeeScript version 2.6.0.</PackageReleaseNotes>
<PackageReleaseNotes>Added support of CoffeeScript version 2.6.1.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (!Object.hasOwnProperty('assign')) {
}

/*!
* CoffeeScript Compiler v2.6.0
* CoffeeScript Compiler v2.6.1
* http://coffeescript.org
*
* Copyright 2009-2018 Jeremy Ashkenas
Expand Down Expand Up @@ -5741,11 +5741,12 @@ var CoffeeScript = (function(){
// has special awareness of how to handle comments within its output.
Base.prototype.includeCommentFragments = NO;

// `jumps` tells you if an expression, or an internal part of an expression
// has a flow control construct (like `break`, or `continue`, or `return`,
// or `throw`) that jumps out of the normal flow of control and can’t be
// used as a value. This is important because things like this make no sense;
// we have to disallow them.
// `jumps` tells you if an expression, or an internal part of an expression,
// has a flow control construct (like `break`, `continue`, or `return`)
// that jumps out of the normal flow of control and can’t be used as a value.
// (Note that `throw` is not considered a flow control construct.)
// This is important because flow control in the middle of an expression
// makes no sense; we have to disallow it.
Base.prototype.jumps = NO;

// If `node.shouldCache() is false`, it is safe to use `node` more than once.
Expand Down Expand Up @@ -5847,7 +5848,7 @@ var CoffeeScript = (function(){
// better not to generate them in the first place, but for now, clean up
// obvious double-parentheses.
compileNode(o) {
var fragments, parts;
var fragments, functionKeyword;
o.indent = o.bare ? '' : TAB;
o.level = LEVEL_TOP;
o.compiling = true;
Expand All @@ -5856,15 +5857,8 @@ var CoffeeScript = (function(){
if (o.bare) {
return fragments;
}
parts = [];
parts.push(this.makeCode('('));
if (this.isAsync) {
parts.push(this.makeCode('async '));
}
parts.push(this.makeCode('function() {\n'));
parts.push(...fragments);
parts.push(this.makeCode('\n}).call(this);\n'));
return [].concat(...parts);
functionKeyword = `${this.isAsync ? 'async ' : ''}function`;
return [].concat(this.makeCode(`(${functionKeyword}() {\n`), fragments, this.makeCode("\n}).call(this);\n"));
}

initializeScope(o) {
Expand Down Expand Up @@ -14325,7 +14319,7 @@ var CoffeeScript = (function(){
*/

// The current CoffeeScript version number.
exports.VERSION = /*BT- packageJson.version*/'2.6.0';
exports.VERSION = /*BT- packageJson.version*/'2.6.1';

/*BT-
exports.FILE_EXTENSIONS = FILE_EXTENSIONS = ['.coffee', '.litcoffee', '.coffee.md'];
Expand Down
4 changes: 2 additions & 2 deletions src/BundleTransformer.CoffeeScript/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
===========
BundleTransformer.CoffeeScript contains one translator-adapter -
`CoffeeScriptTranslator` (supports the CoffeeScript (http://coffeescript.org)
version 2.6.0). This adapter makes translation of CoffeeScript code to JS code.
version 2.6.1). This adapter makes translation of CoffeeScript code to JS code.
Also contains the `CoffeeScriptAssetHandler` debugging HTTP handler, which is
responsible for text output of translated CoffeeScript asset.

Expand All @@ -23,7 +23,7 @@
=============
RELEASE NOTES
=============
Added support of CoffeeScript version 2.6.0.
Added support of CoffeeScript version 2.6.1.

====================
POST-INSTALL ACTIONS
Expand Down

0 comments on commit b2e03de

Please sign in to comment.