Skip to content

Commit

Permalink
In BundleTransformer.TypeScript added support of the TypeScript versi…
Browse files Browse the repository at this point in the history
…on 4.9.4
  • Loading branch information
Taritsyn committed Dec 10, 2022
1 parent e442f05 commit 6c44204
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<Import Project="../../build/nuget-for-dotnet-lib.props" />

<PropertyGroup>
<Description>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript (https://www.typescriptlang.org) version 4.9 RTM). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.
<Description>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript (https://www.typescriptlang.org) version 4.9.4). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.

BundleTransformer.TypeScript does not support external modules (CommonJS, AMD, SystemJS, UMD and ES6 modules).

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 (only in the Chakra “Edge” JsRT mode), JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.ChakraCore.</Description>
<PackageIconUrl>https://raw.githubusercontent.com/Taritsyn/BundleTransformer/master/images/icons/128/BundleTransformer_TypeScript_Logo_128x128.png</PackageIconUrl>
<PackageIconFullPath>../../images/icons/128/BundleTransformer_TypeScript_Logo_128x128.png</PackageIconFullPath>
<PackageTags>$(PackageCommonTags);JavaScript;JS;Bundling;TypeScript;Translation;Translator;Compilation;Compiler</PackageTags>
<PackageReleaseNotes>Added support of the TypeScript version 4.9 RTM (please note: The 4.9 RTM release is also called '4.9.3').</PackageReleaseNotes>
<PackageReleaseNotes>Added support of the TypeScript version 4.9.4.</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
var ts;
(function (ts) {
ts.versionMajorMinor = "4.9";
ts.version = "".concat(ts.versionMajorMinor, ".3");
ts.version = "".concat(ts.versionMajorMinor, ".4");
var NativeCollections;
(function (NativeCollections) {
var globals = typeof globalThis !== "undefined" ? globalThis :
Expand Down Expand Up @@ -53334,7 +53334,8 @@ var ts;
return !!(type.flags & 109440);
}
function isUnitLikeType(type) {
return isUnitType(getBaseConstraintOrType(type));
var t = getBaseConstraintOrType(type);
return t.flags & 2097152 ? ts.some(t.types, isUnitType) : isUnitType(t);
}
function extractUnitType(type) {
return type.flags & 2097152 ? ts.find(type.types, isUnitType) || type : type;
Expand Down Expand Up @@ -62034,11 +62035,11 @@ var ts;
}
function checkSatisfiesExpression(node) {
checkSourceElement(node.type);
var exprType = checkExpression(node.expression);
var targetType = getTypeFromTypeNode(node.type);
if (isErrorType(targetType)) {
return targetType;
}
var exprType = checkExpression(node.expression);
checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, node.type, node.expression, ts.Diagnostics.Type_0_does_not_satisfy_the_expected_type_1);
return exprType;
}
Expand Down Expand Up @@ -73394,8 +73395,8 @@ var ts;
_a[302] = function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
return context.factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));
},
_a[308] = function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context, undefined, undefined, nodesVisitor));
_a[308] = function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
return context.factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));
},
_a[353] = function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
return context.factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));
Expand Down
5 changes: 2 additions & 3 deletions src/BundleTransformer.TypeScript/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
===========
BundleTransformer.TypeScript contains one translator-adapter -
`TypeScriptTranslator` (supports the TypeScript (https://www.typescriptlang.org)
version 4.9 RTM). This adapter makes translation of TypeScript code to JS code.
version 4.9.4). This adapter makes translation of TypeScript code to JS code.
Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is
responsible for text output of translated TypeScript asset.

Expand All @@ -26,8 +26,7 @@
=============
RELEASE NOTES
=============
Added support of the TypeScript version 4.9 RTM (please note: The 4.9 RTM
release is also called '4.9.3').
Added support of the TypeScript version 4.9.4.

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

0 comments on commit 6c44204

Please sign in to comment.